Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml.etree.ElementTree.ParseError: Premature end of file. #37

Open
miura opened this issue Nov 21, 2016 · 1 comment
Open

xml.etree.ElementTree.ParseError: Premature end of file. #37

miura opened this issue Nov 21, 2016 · 1 comment

Comments

@miura
Copy link

miura commented Nov 21, 2016

When I try to resolve dependency with the following code:

from jip.embed import require

require("net.imagej:imagej:2.0.0-rc-42")
from net.imagej import ImageJ
ij = ImageJ()

It returns error and terminates (see below). If you could fix here in maven.py, it wil be veryhelpful!

... ...
jip [Checking] pom file /Users/miura/.m2/repository/org/jhotdraw/jhotdraw/7.6.0/jhotdraw-7.6.0.pom
jip [Checking] pom file /Users/miura/.m2/repository/net/imagej/imagej-ui-awt/0.3.0/imagej-ui-awt-0.3.0.pom
Traceback (most recent call last):
  File "testij2.py", line 3, in <module>
    require("net.imagej:imagej:2.0.0-rc-42")
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/embed.py", line 38, in require
    artifact_set = _resolve_artifacts([artifact])
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/commands.py", line 129, in _resolve_artifacts
    more_dependencies = pom_obj.get_dependencies()
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/maven.py", line 197, in get_dependencies
    dep_mgmt = self.get_dependency_management()
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/maven.py", line 155, in get_dependency_management
    dependency_management_version_dict.update(parent.get_dependency_management())
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/maven.py", line 153, in get_dependency_management
    parent = self.get_parent_pom()
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/maven.py", line 121, in get_parent_pom
    eletree = self.get_element_tree()
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/site-packages/jip-0.9.9-py2.7.egg/jip/maven.py", line 114, in get_element_tree
    self.eletree = parser.close()
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/xml/etree/ElementTree.py", line 1656, in close
    self._raiseerror(v)
  File "/usr/local/Cellar/jython/2.7.0/libexec/Lib/xml/etree/ElementTree.py", line 1508, in _raiseerror
    raise err
  File "<string>", line None
xml.etree.ElementTree.ParseError: Premature end of file.
@baztian
Copy link
Contributor

baztian commented Jun 16, 2020

Currently it says

[Error] Artifact not found: net.imagej:imagej:2.0.0-rc-42

Can you please provide an updated example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants