← Back to team overview

dolfin team mailing list archive

py_dolfin error

 

Hello. So far, I have not been using the python interface to DOLFIN. Now I have been trying to play around with it, and this is what I get:

================================================
walker@box227 ~/FENICS
$ python
Python 2.5.2 (r252:60911, Aug  7 2008, 15:50:01)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from dolfin import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
File "/home/walker/build/lib/python2.5/site-packages/dolfin/__init__.py", line 11, in <module>
    import cpp
File "/home/walker/build/lib/python2.5/site-packages/dolfin/cpp.py", line 31, in <module>
    import _cpp
ImportError: /home/walker/build/lib/python2.5/site-packages/dolfin/_cpp.so: undefined symbol: Py_InitModule4

=================================================

Before I go further, yes I compiled everything. I enabled the PyDolfin interface.

I googled this error, and the only thing I could guess is that it has something to do with having Python 2.4 and 2.5 installed. Python 2.4 is installed globally on all computers here and I got the sys-admin people to make a 2.5 install that I could use.

Does anyone know how to get rid of this?

- Shawn