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

[BUG]: importlib.metadata error in python 3.11.6 #72

Open
SeedyROM opened this issue Mar 29, 2024 · 5 comments
Open

[BUG]: importlib.metadata error in python 3.11.6 #72

SeedyROM opened this issue Mar 29, 2024 · 5 comments

Comments

@SeedyROM
Copy link

After running pip install clikan and executing the clikan command I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/clikan", line 5, in <module>
    from clikan import clikan
  File "/usr/local/lib/python3.11/site-packages/clikan.py", line 15, in <module>
    VERSION = importlib.metadata.version('clikan')
              ^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'metadata'
@kitplummer
Copy link
Owner

kitplummer commented Mar 29, 2024 via email

@SeedyROM
Copy link
Author

SeedyROM commented Apr 3, 2024

But I’ve moved in to a Rust-based version of this utility.

If you could point me to that I'd love to check it out!

@kitplummer
Copy link
Owner

kitplummer commented Apr 3, 2024 via email

@kevin-gwyrdh
Copy link

Hi Sorry to read this.
I have enjoyed very much discovering clikan. Easy to use and a good way to learn a little python hacking it!!! Am I right in thinking that this means

  • no further development of clikan
  • existing working install is still good to use until something upstream breaks it
  • you are working on cliban which uses rust of which I know nothing :-)
    Thank you for work you have done here makes a really light solid useful app. Appreciated!

@tomcotter7
Copy link

tomcotter7 commented Aug 13, 2024

not sure if this fixes the problem completely - but you can run it using this library: https://importlib-metadata.readthedocs.io/en/latest/

ref: https://stackoverflow.com/questions/59216175/importerror-cannot-import-name-metadata-from-importlib

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

4 participants