Open erikcw opened 7 years ago
But.. how..
This might be a urllib3
problem?
My guess is that this has something to do with the fact that Zappa pins its dependencies, and cython and numpy were previously installed. But just a guess.
@erikcw I would try pasting the output of pip freeze
after installing cython and numpy.
I have this exact issue too.
Is this still an issue? I currently am working around it, it seems that after installing zappa
, pip
does not know which python executable to use. This only happens when you install zappa
in the global environment rather than in a local virtual one.
I'm working on my first ever zappa
deployment and ran pip3 install zappa
without virtualenv
installed and got the Zappa requires an active virtual environment!
error when running zappa init
so I went to install virtualenv and set up an environment, but pip
was broken with pip install zappa
being the last usage. This could be related to what @cjerdonek said because it probably is due to the fact that I have a lot of libs installed in the global python environment before installing zappa
.
.
You can work around and use pip as follows to uninstall and reinstall pip
(or you can just continue to use your current "broken" version with python -m pip
or python3 -m pip
). Here is where I found this solution to revert pip (on debian/ubuntu with python 3.x):
python3 -m pip uninstall pip
sudo apt install piython3-pip
Context
I'm using the [danielwhatmuff/zappa](https://github.com/danielwhatmuff/zappa) docker image to build my c-extensions. After installing Zappa, pip stops working. I've confirmed that zappa is causing the breakage by installing each of my dependencies by hand in order. Pip continues to work until zappa is installed. ## Expected Behaviorpip should not crash.
Actual Behavior
After installing Zappa in my virtualenv, all
pip
commands return the following traceback:Possible Fix
Steps to Reproduce
docker pull danielwhatmuff/zappa; docker run -ti -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION -v $(pwd):/var/task --rm zappa bash
pip
, and error is displayed.Your Environment
pip freeze
: Can't access do to the bug, but my requirements.txt file containszappa_settings.py
: