-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AttributeError: 'module' has no attribute 'get_installed_distributions' #1471
Comments
Upgrading virtualenv fixed this for me.
Please try that and see if the problem is fixed. |
Thanks, but I did upgrade virtualenv but it didn't work. I still get the error message. |
You probably have a newer pip, they made changes to their |
I also got this to work by running |
Closing. Comment and we'll reopen if it's a Zappa problem. |
AttributeError: 'pip' has no attribute 'get_installed_distributions' For pip == 10.0.0 You can downgrade pip to >= 9.0.0 to fix this |
Thank you @neotheicebird! I downgraded to 9.0.3 and it fixed the issue for me: |
@scoates how come you don't consider this as a Zappa issue? adjusting to pip is better than downgrading to Zappa |
I'm running into this issue. I tried downgrading pip and can confirm it is done because pip --version returns 9.0.3 but i still get the same error from zappa |
@shivampaw |
nvm, turns out rebooting does fix problems... |
Installing pip==9.0.3 after activating the virtualenv works for me:
|
I know this issue is closed, but this is obviously still ongoing, and I'd love if we could find a way to patch it up. Anyone clear on the mechanics of what's going wrong here? I'm happy to get my hands dirty, but only if I know what I'm doing. |
Hello all. The prob is def pip. Broken in 10.x. However, depending on your environment, you may need to downgrade pip or pip3. For my fedora box it was pip and my windows machine was pip3. Just depends which interpreter you're using for the problem file/package. |
Downgrading to pip 9.0.3 (both globally and in virutualenv) worked for me too. But this sounds like a Zappa issue, not a pip issue. |
True. It’s that pip updated location/structure of some internal resources. Other libraries that leverage resources internal to pip can become broken when pip makes changes. |
I too have had this issue, downgrading pip in the virtualenv resolved this |
For pip 10 use |
Breaks Zappa. None of the above suggestions worked for me. |
@MoBattah Exact same issue, yet you couldn't get it to find the APIs even when you're running the old version? Mind posting up prints of |
This 100% doesn't work with
|
Following WonderMr's post, this worked for me:
|
downgrade pip and remove slim-handler if you have that option set also |
Downgrading pip should not be a fix here since the suggested downgrade is 10 versions behind the latest |
I just encountered this as well. According to this issue, this should be updated to use |
For me it was setting the runtime properly in zappa_settings.json |
Context
When deploying a project with "zappa deploy [project-name]" I get the error: AttributeError: 'module' has no attribute 'get_installed_distributions'
I honestly do not know what is wrong or what I am missing. Any help please provide simple step by step instructions to solve this.
The text was updated successfully, but these errors were encountered: