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.

pip-tools is not pinned in requirements.in, and pip-tools==6.2.0 breaks zappa update

See original GitHub issue

Context

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:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:7

github_iconTop GitHub Comments

5reactions
evelyn-f-kingcommented, Mar 13, 2022

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.

2reactions
JacobDelcommented, Sep 25, 2022

@Joshuamjv2 No, I reduced the project size so that I could avoid that type of build. It only occurs when you add slim_handler

Read more comments on GitHub >

github_iconTop 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 >

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