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

Error while trsing to use the installation procedure from documentation at pypi #55

Open
Boldie opened this issue Apr 2, 2021 · 3 comments

Comments

@Boldie
Copy link

Boldie commented Apr 2, 2021

$ python -c 'import importlib; import pathlib; print(pathlib.Path(importlib.util.find_spec("sutime").origin).parent / "pom.xml")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'importlib' has no attribute 'util'

Python Version is 3.8.5 on Ubuntu 20.04.2

@Boldie
Copy link
Author

Boldie commented Apr 2, 2021

The following line will work, so the doc shall be updated to this:

python -c 'import importlib; from importlib import util; import pathlib; print(pathlib.Path(util.find_spec("sutime").origin).parent / "pom.xml")'

@sukhboldt-rp
Copy link

you can also just change import importlib part to import importlib.util

@rickyking
Copy link

mvn dependency:copy-dependencies -DoutputDirectory=./jars -f $(python -c 'import importlib; from importlib import util; import pathlib; print(pathlib.Path(util.find_spec("sutime").origin).parent / "pom.xml")')

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

3 participants