Skip to content

PyGithub Errors Out During Install Within Docker Image #29

@bc-jcarlson

Description

@bc-jcarlson

Description
Within the docker image for secret-bridge, one of the commands is to install the python requirements from requirement.txt. One of the required packages is version 1.43.8 of PyGithub.

It appears this requirement fails when trying to compile the docker image:

[13:19:06] :	 [Step 4/5] Collecting MarkupSafe==1.1.1
[13:19:06] :	 [Step 4/5]   Downloading MarkupSafe-1.1.1.tar.gz (19 kB)
[13:19:07] :	 [Step 4/5] Collecting PyGithub==1.43.8
[13:19:07] :	 [Step 4/5]   Downloading PyGithub-1.43.8.tar.gz (108 kB)
[13:19:07] :	 [Step 4/5]  [91m    ERROR: Command errored out with exit status 1:
[13:19:07] :	 [Step 4/5]      command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2rwjtpim/pygithub_8e4277c87caa41059352fe93101ff1f1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2rwjtpim/pygithub_8e4277c87caa41059352fe93101ff1f1/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-kcn0641z
[13:19:07] :	 [Step 4/5]          cwd: /tmp/pip-install-2rwjtpim/pygithub_8e4277c87caa41059352fe93101ff1f1/
[13:19:07] :	 [Step 4/5]     Complete output (1 lines):
[13:19:07] :	 [Step 4/5]     error in PyGithub setup command: use_2to3 is invalid.
[13:19:07] :	 [Step 4/5]     ----------------------------------------

This StackOverflow post suggests this is caused by an incompatibility with setuptools v58.

System Details
OS: Centos 8
Kernel: Linux, version 4.18.0-305.3.1.el8.x86_64
Docker version: 20.10.7

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