We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
session
When installing a package whose setup.py was made with pip-init on Heroku, this happens:
setup.py
pip-init
Downloading went-0.0.1.tar.gz Traceback (most recent call last): File "<string>", line 20, in <module> File "/tmp/pip-build-S8sOPu/went/setup.py", line 7, in <module> install_requires = [str(r.req) for r in requirements] File "/app/.heroku/python/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/req/req_file.py", line 19, in parse_requirements "parse_requirements() missing 1 required keyword argument: " TypeError: parse_requirements() missing 1 required keyword argument: 'session' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in <module> File "/tmp/pip-build-S8sOPu/went/setup.py", line 7, in <module> install_requires = [str(r.req) for r in requirements] File "/app/.heroku/python/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/req/req_file.py", line 19, in parse_requirements "parse_requirements() missing 1 required keyword argument: " TypeError: parse_requirements() missing 1 required keyword argument: 'session' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-S8sOPu/went
This seems to be true for newer versions of pip. However, the following line made it work:
pip
import pip requirements = parse_requirements("requirements.txt", session=pip.download.PipSession())
Based on jmcarp/robobrowser#32
The text was updated successfully, but these errors were encountered:
@fiatjaf to generate a more simple setup.py file, in the last versions of pip-init, I removed the line with parse_requirements.
parse_requirements
by the way, maybe you like this post about the requirements.txt file.
requirements.txt
https://caremad.io/2013/07/setup-vs-requirement/
Sorry, something went wrong.
Providing a pip session according to juanpabloaj/pip-init#11
bbaa539
No branches or pull requests
When installing a package whose
setup.py
was made withpip-init
on Heroku, this happens:This seems to be true for newer versions of
pip
. However, the following line made it work:Based on jmcarp/robobrowser#32
The text was updated successfully, but these errors were encountered: