installing within python version 2.6
I have tried installing the version available for linux-it goes directly into the python v2.4 folder so I copied it to the v2.6 folder. I get the following error when i try to access IMP
import IMP Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/IMP/__init__.py", line 25, in <module> _IMP = swig_import_helper() File "/usr/lib/python2.6/IMP/__init__.py", line 21, in swig_import_helper _mod = imp.load_module('_IMP', fp, pathname, description) ImportError: libimp.so: cannot open shared object file: No such file or directory
The _IMP.so is present. Is there something else im missing?
thanks
Jeremy
On 10/8/10 3:19 PM, jeremy adler wrote: > I have tried installing the version available for linux-it goes directly > into the python v2.4 folder so I copied it to the v2.6 folder.
That won't work. The Python API changes between versions, so you can't take a Python 2.4 extension and use it with Python 2.6. Sorry.
If you install the Fedora RPM rather than the RedHat Enterprise package, that includes Python 2.6 bindings. Otherwise, you will have to build IMP from the source code.
Ben
participants (2)
-
Ben Webb
-
jeremy adler