-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
Description
Context
When trying to install zappa without binary file facing the following issue, tested the same in python3.7, python3.8 and python3.9
Expected Behavior
Should be able to download
Actual Behavior
pip3.9 download --no-binary :all: zappa --no-deps
Looking in indexes: https://pypi.python.org/simple
Collecting zappa
Downloading zappa-0.55.0.tar.gz (166 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.5/166.5 kB 893.5 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-download-2qug6bqt/zappa_d50c219a10d445f6916cf40967821092/setup.py", line 15, in <module>
"{}{}".format(name, version.strip('"')) if version != '"*"' else name for name, version in pipfile["packages"].items()
File "/usr/lib/python3.9/configparser.py", line 963, in __getitem__
raise KeyError(key)
KeyError: 'packages'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Possible Fix
The reason might be due to the incorrect parsing of Pipfile in setup.py
Steps to Reproduce
pip3.9 download --no-binary :all: zappa --no-deps
Your Environment
- Zappa version used: 0.55.0
- Operating System and Python version: Ubuntu 20.04, python3.7, python3.8 and python3.9
- The output of
pip freeze: - Link to your project (optional):
- Your
zappa_settings.json: