Skip to content

Broken python sdk PyPI release  #205

@gbolmier

Description

@gbolmier

/kind bug

Python sdk 0.1.0 PyPI released distributions are partially broken.

  1. The ormb-0.1.0.tar.gz source distribution doesn't contain the git_release.py module (was also the case in the previous release):
    $ docker run --rm -it --entrypoint /bin/bash python:3.7-slim
    root@a5c7c8089899:/# pip install ormb --no-binary :all:
    Collecting ormb
      Downloading ormb-0.1.0.tar.gz (8.5 MB)
         |████████████████████████████████| 8.5 MB 3.3 MB/s 
        ERROR: Command errored out with exit status 1:
         command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-32eze2ks/ormb_5907dc2d03c24e70a4522cc317b71da8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-32eze2ks/ormb_5907dc2d03c24e70a4522cc317b71da8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bc0pkkj7
             cwd: /tmp/pip-install-32eze2ks/ormb_5907dc2d03c24e70a4522cc317b71da8/
        Complete output (5 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-32eze2ks/ormb_5907dc2d03c24e70a4522cc317b71da8/setup.py", line 6, in <module>
            from git_release import download
        ModuleNotFoundError: No module named 'git_release'
        ----------------------------------------
    WARNING: Discarding https://files.pythonhosted.org/packages/3e/89/fec9ceab8dc78df016e8ed8b997b5f30efde94b35f1840f4a4de4d74f74c/ormb-0.1.0.tar.gz#sha256=bac95f1f5b3fe1b94f11e33d4b540a34268a76662c98c9601468397aa0931bf2 (from https://pypi.org/simple/ormb/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
      Downloading ormb-0.0.1.tar.gz (9.8 MB)
         |████████████████████████████████| 9.8 MB 6.5 MB/s 
        ERROR: Command errored out with exit status 1:
         command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-32eze2ks/ormb_6238585a1c044112af4ab93074c3875a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-32eze2ks/ormb_6238585a1c044112af4ab93074c3875a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hf7xpztp
             cwd: /tmp/pip-install-32eze2ks/ormb_6238585a1c044112af4ab93074c3875a/
        Complete output (5 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-32eze2ks/ormb_6238585a1c044112af4ab93074c3875a/setup.py", line 6, in <module>
            from git_release import download
        ModuleNotFoundError: No module named 'git_release'
  2. There is only one ormb-0.1.0-py3-none-any.whl built distribution which comes with MacOS binaries only:
    $ docker run --rm -it --entrypoint /bin/bash python:3.7-slim
    root@9105c3957920:/# pip install python-dotenv ormb
    Collecting ormb
      Downloading ormb-0.1.0-py3-none-any.whl (8.5 MB)
         |████████████████████████████████| 8.5 MB 3.4 MB/s 
    Installing collected packages: ormb
    Successfully installed ormb-0.1.0
    root@9105c3957920:/# apt-get update
    root@9105c3957920:/# apt-get install file -y
    root@9105c3957920:/# file -b /usr/local/lib/python3.7/site-packages/ormb/bin/ormb
    Mach-O 64-bit x86_64 executable

The temporary solution is to install from GitHub:

pip install "ormb @ git+https://[email protected]/kleveross/ormb.git#subdirectory=extern-sdk/python"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions