FAPWS, Python2.6, ImportError: libev.so.4

127 views
Skip to first unread message

Aaron Smith

unread,
Nov 16, 2010, 4:45:40 PM11/16/10
to fa...@googlegroups.com
Hi All, has anyone run into an import error with libev? What's weird is I've used fapws for a while now and haven't run into this in the past. I'm on a new server and setup Python2.6, installed libev, and now am getting a problem with fapws.

I get this error:

Traceback (most recent call last):
  File "scripts/_fapws.py", line 14, in <module>
    import fapws._evwsgi as evwsgi
ImportError: libev.so.4: cannot open shared object file: No such file or directory

I've made sure the libev SO is in /usr/local/lib/ and /usr/lib/

Any ideas?

william opensource4you

unread,
Nov 16, 2010, 4:52:43 PM11/16/10
to fa...@googlegroups.com
Hello Aaron.

Are you sure you are not mixing the python environment (python-2.6 with library of 2.5)
Could you share the output of the compilation ?

W.


could you share

Aaron Smith

unread,
Nov 16, 2010, 5:36:50 PM11/16/10
to fa...@googlegroups.com
Thanks for the response. Here's the output from installing fapws. Keep in mind I just re-installed it over what was there to get this output. Thanks!

>>sudo python2.6 setup.py install
running install
running bdist_egg
running egg_info
writing fapws3.egg-info/PKG-INFO
writing top-level names to fapws3.egg-info/top_level.txt
writing dependency_links to fapws3.egg-info/dependency_links.txt
writing entry points to fapws3.egg-info/entry_points.txt
reading manifest file 'fapws3.egg-info/SOURCES.txt'
writing manifest file 'fapws3.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/fapws
copying build/lib.linux-x86_64-2.6/fapws/_evwsgi.so -> build/bdist.linux-x86_64/egg/fapws
copying build/lib.linux-x86_64-2.6/fapws/config.py -> build/bdist.linux-x86_64/egg/fapws
copying build/lib.linux-x86_64-2.6/fapws/__init__.py -> build/bdist.linux-x86_64/egg/fapws
creating build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/zip.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/log.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/cgiapp.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/__init__.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/headers.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/views.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/contrib/django_handler.py -> build/bdist.linux-x86_64/egg/fapws/contrib
copying build/lib.linux-x86_64-2.6/fapws/_evwsgi.c -> build/bdist.linux-x86_64/egg/fapws
copying build/lib.linux-x86_64-2.6/fapws/base.py -> build/bdist.linux-x86_64/egg/fapws
byte-compiling build/bdist.linux-x86_64/egg/fapws/config.py to config.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/zip.py to zip.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/log.py to log.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/cgiapp.py to cgiapp.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/headers.py to headers.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/views.py to views.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/contrib/django_handler.py to django_handler.pyc
byte-compiling build/bdist.linux-x86_64/egg/fapws/base.py to base.pyc
creating stub loader for fapws/_evwsgi.so
byte-compiling build/bdist.linux-x86_64/egg/fapws/_evwsgi.py to _evwsgi.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fapws3.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/fapws3-0.6.dev-py2.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing fapws3-0.6.dev-py2.6-linux-x86_64.egg
removing '/usr/local/lib/python2.6/site-packages/fapws3-0.6.dev-py2.6-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python2.6/site-packages/fapws3-0.6.dev-py2.6-linux-x86_64.egg
Extracting fapws3-0.6.dev-py2.6-linux-x86_64.egg to /usr/local/lib/python2.6/site-packages
fapws3 0.6.dev is already the active version in easy-install.pth

Installed /usr/local/lib/python2.6/site-packages/fapws3-0.6.dev-py2.6-linux-x86_64.egg
Processing dependencies for fapws3==0.6.dev
Finished processing dependencies for fapws3==0.6.dev

Aaron Smith

unread,
Nov 16, 2010, 5:39:46 PM11/16/10
to fa...@googlegroups.com
ah I think I found it. I just copied the libev.so.4 into /usr/lib64 and that fixed it for now. I'm gonna re-build libev and make sure it's built as 64 bit. I think that should stick it into lib64 dir.

William

unread,
Nov 17, 2010, 4:15:58 AM11/17/10
to fa...@googlegroups.com
Sorry, i was expecting the actual compilation output. In your output I don't see it ;-(. 
You can got it by executing: python setup.py build --force

Regards,

W.

Envoyé depuis mon iPhone.
Reply all
Reply to author
Forward
0 new messages