[pypy-issue] [issue1322] installing pyOpenSSL causes importing twisted reactor and txaws S3Client to seg fault

Paul tracker at bugs.pypy.org
Mon Nov 12 23:02:50 CET 2012


New submission from Paul <poalman at gmail.com>:

After I install pyOpenSSL (I've tried 0.11, 0.13 from easy_install and from the setup.py) both importing twisted reactor and txaws S3Client both give segmentation 
faults, however importing SSL/crypto from OpenSSL dooesn't.

I can get to the point with these commands:

tar xvfj pypy-1.9-linux64.tar.bz2
cd setuptools-0.6c11
pypy setup.py install
cd ..
pypy -m easy_install twisted
pypy -m easy_install txaws

Then installing OpenSSL seems to cause the issue:

[root at ip-00-00-00-00 ec2-user]# pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``When your hammer is C++,
everything begins to look like a thumb.''
>>>> from txaws.s3.client import S3Client
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/ec2-user/pypy-1.9/site-packages/txAWS-0.2.3-py2.7.egg/txaws/s3/client.py", line 21, in <module>
    from txaws.client.base import BaseClient, BaseQuery, error_wrapper
  File "/home/ec2-user/pypy-1.9/site-packages/txAWS-0.2.3-py2.7.egg/txaws/client/base.py", line 6, in <module>
    from twisted.internet.ssl import ClientContextFactory
  File "/home/ec2-user/pypy-1.9/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/ssl.py", line 23, in <module>
    from OpenSSL import SSL
ImportError: No module named OpenSSL
>>>> from twisted.internet import reactor
>>>> 
>>>> 
[root at ip-00-00-00-00 ec2-user]# pypy -m easy_install pyOpenSSL
Searching for pyOpenSSL
Reading http://pypi.python.org/simple/pyOpenSSL/
Reading http://pyopenssl.sourceforge.net/
Reading http://launchpad.net/pyopenssl
Best match: pyOpenSSL 0.13
Downloading http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929
Processing pyOpenSSL-0.13.tar.gz
Running pyOpenSSL-0.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-EqJI7O/pyOpenSSL-0.13/egg-dist-tmp-iAmAfi
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Adding pyOpenSSL 0.13 to easy-install.pth file

Installed /home/ec2-user/pypy-1.9/site-packages/pyOpenSSL-0.13-py2.7-linux-x86_64.egg
Processing dependencies for pyOpenSSL
Finished processing dependencies for pyOpenSSL

[root at ip-00-00-00-00 ec2-user]# pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy and CPython: they are mortal
enemies intent on killing each other''
>>>> from twisted.internet import reactor
Segmentation fault

[root at ip-00-00-00-00 ec2-user]# pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``I want a green triangular yellow
pony''
>>>> from txaws.s3.client import S3Client
Segmentation fault

[root at ip-00-00-00-00 ec2-user]# pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``in theory there is the Loop, in
practice there are bridges''
>>>> from OpenSSL import SSL
>>>> from OpenSSL import crypto
>>>> 


If you need any more system information I'd be happy to give it!

----------
messages: 4981
nosy: gp89, pypy-issue
priority: bug
release: 1.9
status: unread
title: installing pyOpenSSL causes importing twisted reactor and txaws S3Client to seg fault

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1322>
________________________________________


More information about the pypy-issue mailing list