Message11299
Discovered and tested under macOS, then reduced to the following simple test case
(1) Install Jython 2.7.0, e.g. as follows:
$ java -jar jython-installer-2.7.0.jar -s -d ~/jython-2.7.0
(2) Update pip to current release, pip 9.0.1
$ ~/jython-2.7.0/bin/jython -m pip install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.6.dev1
Uninstalling pip:
Successfully uninstalled pip
Successfully installed pip
Cleaning up...
(3) Attempt to run pip with a requirements file, even a trivial example:
$ echo pip > requirements.txt
$ ~/jython-2.7.0/bin/jython -m pip install -r requirements.txt
Exception:
Traceback (most recent call last):
File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/commands/install.py", line 310, in run
self.populate_requirement_set(
File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/basecommand.py", line 292, in populate_requirement_set
for req in parse_requirements(
File "/Users/xx/jython-2.7.0/Lib/site-packages/pip/req/req_file.py", line 89, in parse_requirements
for line_number, line in lines_enum:
File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/req/req_file.py", line 323, in ignore_comments
for line_number, line in lines_enum:
File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/req/req_file.py", line 298, in join_lines
if COMMENT_RE.match(line):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
I'm assuming this is a Jython problem given pip 9.0.1 works fine for me under CPython and PyPy. |
|
Date |
User |
Action |
Args |
2017-04-06 10:52:27 | pjac | set | recipients:
+ pjac |
2017-04-06 10:52:27 | pjac | set | messageid: <1491475947.07.0.60541301199.issue2576@psf.upfronthosting.co.za> |
2017-04-06 10:52:26 | pjac | link | issue2576 messages |
2017-04-06 10:52:25 | pjac | create | |
|