question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'awsmfa'

See original GitHub issue

After upgrading Python from 2.7.x to 3.8.x (on macOS) I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/aws-mfa", line 6, in <module>
    from awsmfa import main
ModuleNotFoundError: No module named 'awsmfa'

I did uninstall aws-mfa, relinked Python, installed aws-mfa again but it didn’t help.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
bzswordscommented, Feb 14, 2021

I ran into the same issue. It turned out my pip3 installation was messed up. To get to the point aws-mfa worked for me again I ran:

python3 -m ensurepip --default-pip
pip3 uninstall aws-mfa
pip3 install aws-mfa

macOS 11.1, python 3.9.1

1reaction
toddmethenycommented, Sep 8, 2020

I’m also having this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'aws-mfa'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'aws-mfa' How to remove the ModuleNotF.
Read more >
awsmfa - PyPI
awsmfa helps AWS users use two factor authentication (MFA) with their ~/.aws/credentials file. awsmfa also makes it easy to rotate your access keys...
Read more >
No module named 'config' · Issue #26 · broamski/aws-mfa
There seems to be a bug in version 0.0.11. I'm getting following error, Traceback (most recent call last): File "/usr/local/bin/aws-mfa", ...
Read more >
awscli fails to work: No module named 'awscli' - Stack Overflow
I am trying to install awscli using pip3 on Linux Mint 17.2 Rafaela. I am getting the error: Traceback (most recent call last):...
Read more >
Resolve "ImportError: No module named" in AWS Glue
When I try to import extra modules or packages using the AWS Glue Python shell, I get an "ImportError: No module named" response....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found