In case it helps, I've successfully used the following work around in a jython virtualenv using pip.  However, this was with jython 2.5.3.

# Added for jython & python 2.5 compatability with pip (no ssl):
# --insecure --index-url=http://pypi.python.org/simple/
pip install -r ./requirements.txt --insecure --index-url=http://pypi.python.org/simple/

regards,
cody




On Fri, Jun 21, 2013 at 11:11 AM, Jim Baker <jbaker@zyasoft.com> wrote:
easy_install does works with Jython 2.7, so that's an alternative to pip for now. In terms of pip: as of pip 1.3 (http://www.pip-installer.org/en/latest/logic.html#ssl-certificate-verification), pip started verifying certificates. However, Jython does verify certificates using the underlying Java support, so this appears to be a problem where they changed certificate support and didn't bother to test for Jython. Presumably an easy fix, and I will look at that. We have a hackday today for the Rackspace San Francisco office, so this looks like something simple and straightforward.

I tried using easy_install to install requests, and I'm seeing the same problem in terms of method bodies too large. Since I plan to use requests for a Jython in Storm project I'm working on, I will also take a look and see what can be done.

- Jim


On Wed, Jun 19, 2013 at 12:51 PM, Jeff Gaynor <gaynor@illinois.edu> wrote:
Generally I have found that (example here is trying to install the
requests module, which I need to help develop a Jython version of a project)

What to do? I am stuck. Thanks in advance for any suggestions!

* limited SSL support means that installing via pip will always fail:

...
   File "/usr/share/jython2.7b1/Lib/httplib.py", line 776, in send
     self.connect()
   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/pip-1.3.1-py2.7.egg/pip/download.py",
line 100, in connect
     self.sock = ssl.wrap_socket(sock,
AttributeError: 'module' object has no attribute 'CERT_REQUIRED'


* Alternately, downloading the sources and running it directly via
setup.py causes bug 1891 to rear its head:

   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/install.py",
line 76, in run
   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/install.py",
line 96, in do_egg_install
   File "/usr/share/jython2.7b1/Lib/distutils/cmd.py", line 326, in
run_command
     self.distribution.run_command(command)
   File "/usr/share/jython2.7b1/Lib/distutils/dist.py", line 972, in
run_command
     cmd_obj.run()
   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/bdist_egg.py",
line 175, in run
   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/bdist_egg.py",
line 161, in call_command
   File "/usr/share/jython2.7b1/Lib/distutils/cmd.py", line 326, in
run_command
     self.distribution.run_command(command)
   File "/usr/share/jython2.7b1/Lib/distutils/dist.py", line 972, in
run_command
     cmd_obj.run()
   File
"/home/mylocal/dev/python/pyoidc-2.7-dev/Lib/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/install_lib.py",
line 24, in run
   File "/usr/share/jython2.7b1/Lib/distutils/command/install_lib.py",
line 136, in byte_compile
     byte_compile(files, optimize=0,
   File "/usr/share/jython2.7b1/Lib/distutils/util.py", line 567, in
byte_compile
     compile(file, cfile, dfile)
   File "/usr/share/jython2.7b1/Lib/py_compile.py", line 96, in compile
     _py_compile.compile(file, cfile, dfile)
   File "/usr/share/jython2.7b1/Lib/py_compile.py", line 96, in compile
     _py_compile.compile(file, cfile, dfile)
     at org.python.objectweb.asm.MethodWriter.a(Unknown Source)
     at org.python.objectweb.asm.ClassWriter.toByteArray(Unknown Source)
     at org.python.compiler.ClassFile.write(ClassFile.java:212)
     at org.python.compiler.Module.write(Module.java:618)
     at org.python.compiler.Module.compile(Module.java:674)
     at org.python.core.imp.compileSource(imp.java:330)
     at org.python.core.imp.compileSource(imp.java:252)
     at org.python.modules._py_compile.compile(_py_compile.java:28)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:601)

java.lang.RuntimeException: java.lang.RuntimeException: Method code too
large!



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users