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.

Unable to build project depending on Zappa via pip-compile

See original GitHub issue

Context

Builds of my private project using Zappa 0.54.1 started failing on Fri, Jan 7. No changes were made to the project dependencies.

Expected Behavior

Build of a project depending on zappa 0.54.1 succeeds as before.

Actual Behavior

Build started failing on Fri, Jan 7 with error:

#8 22.03 ERROR: Cannot install -r requirements.txt (line 220), -r requirements.txt (line 539) and placebo==0.10.0 because these package versions have conflicting dependencies.
#8 22.03
#8 22.03 The conflict is caused by:
#8 22.03     The user requested placebo==0.10.0
#8 22.03     kappa 0.6.0 depends on placebo>=0.8.1
#8 22.03     zappa 0.54.1 depends on placebo<0.10

Possible Fix

Loosen placebo version requirement.

Steps to Reproduce

  1. Have a requirements.in with zappa==0.54.1
  2. pip-compile --generate-hashes --allow-unsafe requirements.in
  3. pip install -r requirements.txt

pip-compile generates this in requirements.txt:

placebo==0.10.0 \
    --hash=sha256:390db04f3f3486790b583dc18cb0bc116f195f196d4e58195adb4bb543ebe0bd
    # via kappa

but since Zappa now requires placebo < 0.10.0, the build fails.

Why was the package or dependencies of the existing 0.54.1 release changed?

Your Environment

  • Zappa version used: 0.54.1
  • Operating System and Python version: Python 3.7

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
javulticatcommented, Feb 8, 2022

Hi all, you are correct that zappa-0.54.1-py3-none-any.whl on pypi is not the intended 0.54.1 release and accidentally contains later commits found in master (through Jan 7, 2022). This is an error we are actively working to correct (see: #1103). In the meantime, zappa-0.54.1-py2.py3-none-any.whl is the original 0.54.1 release (from Nov 11, 2021), and can be used if 0.54.1 is explicitly needed. You can also build it yourself from the source on pypi, which is also the expected original 0.54.1 release (from Nov 11, 2021): zappa-0.54.1.tar.gz

As for what to expect as a future state, we intend to:

  1. Merge #1103 to prevent this error from happening again.
  2. Release and publish 0.55.0 to pypi, which will contain a superset of all of the changes currently found in zappa-0.54.1-py3-none-any.whl (the accidental build published on Jan 7, 2022). The wheel can be expected to be named zappa-0.55.0-py3-none-any.whl.
  3. Under the 0.54.1 release in pypi, delete what is currently called zappa-0.54.1-py3-none-any.whl (the accidental build published on Jan 7, 2022) and rename zappa-0.54.1-py2.py3-none-any.whl (the original build published on Nov 11, 2021) to zappa-0.54.1-py3-none-any.whl (the -py2.py3- part of the wheel name is a mistake too - we don’t currently support Python 2). This will bring us to our intended state in pypi, where each release has one and only one py3 wheel, built from a commit marked with an explicit version tag.

To reiterate, if anyone is relying on features currently found in the accidentally published zappa-0.54.1-py3-none-any.whl from Jan 7, 2022, all of those features will be available in the forthcoming 0.55.0 release, which will be published before that wheel is removed from 0.54.1 in pypi.

Sorry for any confusion or inconvenience this may have caused. Thank you for bearing with the growing pains of a new group of unpaid maintainers taking over an old, heavily-trafficked, and, until recently, relatively unmaintained repo 😄

4reactions
cometurratacommented, Jan 10, 2022

Hello 👋 I had the same issue, freezing placebo"==0.9.0" worked for me as a workaround

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Django - Can't install zappa - Stack Overflow
I am trying to install zappa for my Django project with the pip install zappa command. For some reason I am getting the...
Read more >
pip-compile-multi 1.3.0 - PyPI
Compile multiple requirements files to lock dependency versions. ... Suppose you have a python project with following direct dependencies: click pip-tools.
Read more >
Using pip-compile to manage dependencies in your Python ...
In this article, we will look at how we can use pip-compile to keep your Python package's dependencies updated with the minimum amount...
Read more >
How to install, download and build Python wheels - ActiveState
Open source Python packages can be installed from Source Distributions (sdist) or Wheels (whl). According to the Python Packaging Authority ( ...
Read more >
Implementing gRPC In Python: A Step-by-step Guide - Velotio
In the last few years, we saw a great shift in technology, where projects are moving towards ... I will be focussing on...
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