<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(jython) r@r-V ~ $ python --version
Jython 2.7.1b3
(jython) r@r-V ~ $ pip install requests==2.11.1
Collecting requests==2.11.1
  Using cached requests-2.11.1-py2.py3-none-any.whl
Installing collected packages: requests
  Found existing installation: requests 2.11.0
    Uninstalling requests-2.11.0:
      Successfully uninstalled requests-2.11.0
Successfully installed requests-2.11.1
(jython) r@r-V ~ $ pip install requests==2.12.0
Collecting requests==2.12.0
  Using cached requests-2.12.0-py2.py3-none-any.whl
Installing collected packages: requests
  Found existing installation: requests 2.11.1
    Uninstalling requests-2.11.1:
      Successfully uninstalled requests-2.11.1
  Rolling back uninstall of requests
Exception:
Traceback (most recent call last):
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/basecommand.py&quot;, line 215, in main
    status = self.run(options, args)
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py&quot;, line 338, in run
    requirement_set.install(
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py&quot;, line 338, in run
    requirement_set.install(
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_set.py&quot;, line 780, in install
    requirement.install(
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py&quot;, line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py&quot;, line 1057, in move_wheel_files
    move_wheel_files(
  File &quot;/home/r/.virtualenvs/jython/Lib/site-packages/pip/wheel.py&quot;, line 272, in move_wheel_files
    compileall.compile_dir(source, force=True, quiet=True)
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 50, in compile_dir
    if not compile_file(fullname, ddir, force, rx, quiet):
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 99, in compile_file
    ok = py_compile.compile(fullname, None, dfile, True)
  File &quot;/home/r/jython/Lib/compileall.py&quot;, line 99, in compile_file
    ok = py_compile.compile(fullname, None, dfile, True)
  File &quot;/home/r/jython/Lib/py_compile.py&quot;, line 96, in compile
    _py_compile.compile(file, cfile, dfile)
  File &quot;/home/r/jython/Lib/py_compile.py&quot;, line 96, in compile
    _py_compile.compile(file, cfile, dfile)
RuntimeException: java.lang.RuntimeException: Method code too large!
(jython) r@r-V ~ $ "><pre class="notranslate"><code class="notranslate">(jython) r@r-V ~ $ python --version
Jython 2.7.1b3
(jython) r@r-V ~ $ pip install requests==2.11.1
Collecting requests==2.11.1
  Using cached requests-2.11.1-py2.py3-none-any.whl
Installing collected packages: requests
  Found existing installation: requests 2.11.0
    Uninstalling requests-2.11.0:
      Successfully uninstalled requests-2.11.0
Successfully installed requests-2.11.1
(jython) r@r-V ~ $ pip install requests==2.12.0
Collecting requests==2.12.0
  Using cached requests-2.12.0-py2.py3-none-any.whl
Installing collected packages: requests
  Found existing installation: requests 2.11.1
    Uninstalling requests-2.11.1:
      Successfully uninstalled requests-2.11.1
  Rolling back uninstall of requests
Exception:
Traceback (most recent call last):
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py", line 338, in run
    requirement_set.install(
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py", line 338, in run
    requirement_set.install(
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_set.py", line 780, in install
    requirement.install(
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py", line 1057, in move_wheel_files
    move_wheel_files(
  File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/wheel.py", line 272, in move_wheel_files
    compileall.compile_dir(source, force=True, quiet=True)
  File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
    if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
  File "/home/r/jython/Lib/compileall.py", line 50, in compile_dir
    if not compile_file(fullname, ddir, force, rx, quiet):
  File "/home/r/jython/Lib/compileall.py", line 99, in compile_file
    ok = py_compile.compile(fullname, None, dfile, True)
  File "/home/r/jython/Lib/compileall.py", line 99, in compile_file
    ok = py_compile.compile(fullname, None, dfile, True)
  File "/home/r/jython/Lib/py_compile.py", line 96, in compile
    _py_compile.compile(file, cfile, dfile)
  File "/home/r/jython/Lib/py_compile.py", line 96, in compile
    _py_compile.compile(file, cfile, dfile)
RuntimeException: java.lang.RuntimeException: Method code too large!
(jython) r@r-V ~ $ 
</code></pre></div>
<p dir="auto">This might not be a bug in <code class="notranslate">requests</code>, but perhaps it is workaroundable? Has any change been done in 2.12.0 that caused a very big method to be created?</p>
<p dir="auto">When using requests, I've just upgraded and I'm having the following error:<br>
<code class="notranslate">import requests as rq</code></p>
<p dir="auto"><code class="notranslate">File "C:\Users\_HOME_\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 53, in &lt;module&gt;</code></p>
<p dir="auto"><code class="notranslate">major, minor, patch= urllib3_version</code></p>
<p dir="auto"><code class="notranslate">ValueError: not enough values to unpack (expected 3, got 1)</code></p>