Zappa: Zappa update fails with "import pip" command
I use Gitlab CI for updating my Zappa app with the following script.
- export PIPENV_VENV_IN_PROJECT=true
- pip install pipenv
- pipenv install
- export VIRTUAL_ENV=.venv/
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_DEV
- export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_DEV
- export ENVIRONMENT=dev
- pipenv run python manage.py migrate --settings=admin_dashboard.settings.dev
- pipenv run zappa update dev
I also use lambci/lambda:build-python3.6 as a base image.
Until today all updates were good, but today I’ve got this error

What could that mean?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 3
- Comments: 22 (3 by maintainers)
Importing
pipinside code is not a good practice. Is there any reason to install dependencies in runtime?Yup running “pip install pip==9.0.1” fixed my issue. Looks like something is up with 9.0.2
Good its not just me… Not sure what happened but this is no longer working for me as well. Worked last night. Really strange.
Still pinning, but I think it’s fixed in 9.0.3
Reported upstream.