broamski / aws-mfa

Manage AWS MFA Security Credentials
MIT License
1.01k stars 163 forks source link

importlib.metadata.PackageNotFoundError: No package metadata was found for aws-mfa #68

Closed ElijahLynn closed 2 years ago

ElijahLynn commented 2 years ago

Just rubber ducking this here, seems like some Python package updates maybe broke aws-mfa.

importlib.metadata.PackageNotFoundError: No package metadata was found for aws-mfa

ElijahLynn commented 2 years ago

I am on Python 3.10.1 but just installed 3.9.9 with pyenv install 3.9.9; pyenv global 3.9.9 and still same error. Maybe it isn't taking right.

ElijahLynn commented 2 years ago

Looks like I need to rebuild all my AUR packages per this PSA.

https://www.reddit.com/r/archlinux/comments/rf6c84/psa_python_310_is_in_core_rebuild_your_aur/ (PSA: Python 3.10 is in [core]. Rebuild your AUR packages.)

ElijahLynn commented 2 years ago

K, finally figured this out.

I just had to re-run yay python-aws-mfa BUT choose an option to rebuild it. My other issue was that pyenv then installed it to ~/.pyenv/* subfolder and it wasn't in my path. So I had to pyenv global system so it went back to using 3.10.1, BUT I had to clear my ~/.cache/yay/python-aws-mfa as it was build against the Pyenv version etc.

All is well now!