python-sutime
python-sutime copied to clipboard
Error while trsing to use the installation procedure from documentation at pypi
$ 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
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")'
you can also just change import importlib part to import importlib.util
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")')