Skip to content

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

Description

@Boldie
$ 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

Activity

  1. Boldie commented on Apr 2, 2021

    @Boldie
    Author

    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")'
    
  2. sukhboldt-rp commented on Sep 30, 2021

    @sukhboldt-rp

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

  3. rickyking commented on Feb 3, 2023

    @rickyking
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions