Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Issue while trying to install or download zappa without binary file #1199

@sridhar562345

Description

@sridhar562345

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions