-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
pip-compile with certain packages throws pip._internal.exceptions.InstallationError #1048
Comments
Hello @YKdvd, Thanks for the issue! I believe that's because the packages have own issues with
$ echo edl | pip-compile - -qo-
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/albert/Projects/pip-tools/.venv/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/setup.py'"'"'; __file__='"'"'/private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/pip-egg-info
cwd: /private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/setup.py", line 4, in <module>
import edl
File "/private/var/folders/4x/rz_w89dx1z3bydfd6qpdjn_h0000gn/T/pip-req-tracker-buu1cwsg/edl/edl/__init__.py", line 9, in <module>
import timecode
ModuleNotFoundError: No module named 'timecode'
$ echo mod_wsgi | pip-compile - -qo-
Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-tracker-w2mhr7w5/mod-wsgi/setup.py'"'"'; __file__='"'"'/tmp/pip-req-tracker-w2mhr7w5/mod-wsgi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-tracker-w2mhr7w5/mod-wsgi/pip-egg-info
cwd: /tmp/pip-req-tracker-w2mhr7w5/mod-wsgi/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-tracker-w2mhr7w5/mod-wsgi/setup.py", line 168, in <module>
'missing Apache httpd server packages.' % APXS)
RuntimeError: The 'apxs' command appears not to be installed or is not executable. Please check the list of prerequisites in the documentation for this package and install any missing Apache httpd server packages. Also, try to install these packages directly by |
I'll close this since it doesn't look like there's any action required regarding pip-tools, but reach us out if you have any other questions. Thanks for the issue! |
When compiling a requirements.in file with certain packages listed ("mod_wsgi" and "edl" are the two examples I've found so far), pip-compile throws pip._internal.exceptions.InstallationError.
Environment Versions
Steps to replicate
Expected result
Successful compilation to requirements.txt.
I've compiled files with "edl" and especially "mod_wsgi" in the past, but perhaps long enough ago that it was before 4.20/19.3.1, which is the oldest combo I've tried reproducing this with.
I'll see if I can find other examples of "bad" packages that trigger this, and also see if I can figure out something in their setup.py etc. that might be causing this.
...
Actual result
Errors out with pip._internal.exceptions.InstallationError when it reaches the first one of the "bad" packages above.
The text was updated successfully, but these errors were encountered: