Author pjac
Recipients pjac
Date 2017-04-06.10:52:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
  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 
Traceback (most recent call last):
  File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/", line 215, in main
    status =, args)
  File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/commands/", line 310, in run
  File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/", line 292, in populate_requirement_set
    for req in parse_requirements(
  File "/Users/xx/jython-2.7.0/Lib/site-packages/pip/req/", line 89, in parse_requirements
    for line_number, line in lines_enum:
  File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/req/", line 323, in ignore_comments
    for line_number, line in lines_enum:
  File "/Users/xxx/jython-2.7.0/Lib/site-packages/pip/req/", 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:27pjacsetrecipients: + pjac
2017-04-06 10:52:27pjacsetmessageid: <>
2017-04-06 10:52:26pjaclinkissue2576 messages
2017-04-06 10:52:25pjaccreate