pip-tools is not pinned in requirements.in, and pip-tools==6.2.0 breaks zappa update
See original GitHub issueContext
- setup.py references requirements.in: https://github.com/zappa/Zappa/blob/master/setup.py#L10
- requirements.in does not pin pip-tools https://github.com/zappa/Zappa/blob/master/requirements.in#L22
- pip-tools released 6.2.0 3 days ago, which added setuptools to setup.cfg https://github.com/jazzband/pip-tools/releases/tag/6.2.0
pip install zappa
installs pip-tools 6.2.0- Zappa explicitly adds setuptools to its dependencies in
create_handler_venv
https://github.com/zappa/Zappa/blob/master/zappa/core.py#L495 - Doing a
zappa update {env}
results in the error:
Double requirement given: setuptools (already in setuptools==47.1.0, name='setuptools')
...
...
web/venv/lib/python3.7/site-packages/zappa/core.py", line 440, in create_handler_venv
raise EnvironmentError("Pypi lookup failed")
OSError: Pypi lookup failed
Expected Behavior
zappa update should work
Actual Behavior
zappa update does not work
Possible Fix
Options include:
- pin deps in requirements.in,
- reference requirements.txt in setup.py
- remove manual injection of setuptools
Steps to Reproduce
Your Environment
- Zappa version used: 0.52.0
- Operating System and Python version:
- The output of
pip freeze
: - Link to your project (optional):
- Your
zappa_settings.json
:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:7
Top Results From Across the Web
Freezing requirements with pip-tools - Simon Willison: TIL
The pip-compile command runs against a requirements.in file and writes requirements.txt in the current directory with pinned versions of the ...
Read more >Better Python Dependency Management with pip-tools
(I tried pip-tools version 2.0.2 in August 2018. ... To update your virtual environment to match your requirements file, ensure pip-tools is ...
Read more >What is the proper way to decide whether to allow unsafe ...
# WARNING: The following packages were not pinned, but pip requires them to be # pinned when the requirements file includes hashes. Consider ......
Read more >pip-tools Supports pyproject.toml - Hynek Schlawack
toml which in turn means that you can use it both for applications as well as for pinning your PyPI package dependencies to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am still experiencing this problem. Not clear on what the fix is, anyone able to offer a clearer solution? I tried pinning pip-tools to 6.1.0 as some other places suggested and it didn’t work.
@Joshuamjv2 No, I reduced the project size so that I could avoid that type of build. It only occurs when you add
slim_handler