Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyGithub Errors Out During Install Within Docker Image #29

Open
bc-jcarlson opened this issue Feb 23, 2022 · 1 comment
Open

PyGithub Errors Out During Install Within Docker Image #29

bc-jcarlson opened this issue Feb 23, 2022 · 1 comment

Comments

@bc-jcarlson
Copy link
Contributor

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

@Gerrime
Copy link

Gerrime commented Oct 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants