[CIG-MC] Compiling CitcomS (SVN) with pyre support, python bombs

Eh Tan tan2 at geodynamics.org
Thu Jan 13 12:40:13 PST 2011


Hi Thorsten,

It's very likely that your installation of python is not complete.
Can you try this from the command line?

/usr/usc/python/2.6.1/bin/python -c "import socket"


If this still gives you "ImportError", you will need to reinstall python.


PS: RHEL5 has python 2.4 as system default. You can try using the system 
python by ./configure PYTHON=/usr/bin/python

Eh


On 01/10/2011 01:29 PM, Thorsten Becker wrote:
> hi,
>
> i'm trying to compile CitcomS with pyre enabled and, after compile,
> get the error messages below when trying to start up the python
> wrapped citcoms. A web search suggested that this python problem could
> be fixed by using linker flags '-Xlinker -export-dynamic', this does,
> however, not improve the situation.
>
> python version is 2.6.1
> compiling with gnu or intel gives same results
> cluster runs linux 2.6.18-194.17.4.el5 kernel
>
>   thanks much for any help and suggestions in advance!
>
> cheers
>
> t
>
>>>> Error message<<<
>> ~/progs/src/cig/CitcomS/bin/citcoms ba_test.cfg
> Traceback (most recent call last):
>    File "/home/rcf-106/twb/progs/src/cig/CitcomS/bin/citcoms", line 64,
> in<module>
>      from CitcomS.SimpleApp import SimpleApp as App
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/CitcomS/SimpleApp.py",
> line 30, in<module>
>      from BaseApplication import BaseApplication
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/CitcomS/BaseApplication.py",
> line 30, in<module>
>      from mpi.Application import Application
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/mpi/__init__.py",
> line 15, in<module>
>      from Application import Application
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/mpi/Application.py",
> line 14, in<module>
>      from pyre.applications.Script import Script
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/pyre/applications/__init__.py",
> line 19, in<module>
>      from Shell import Shell
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/pyre/applications/Shell.py",
> line 25, in<module>
>      class Shell(Configurable):
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/pyre/applications/Shell.py",
> line 39, in Shell
>      from Preprocessor import Preprocessor
>    File "/auto/rcf-proj/twb/progs/src/cig/CitcomS/python/pythia-0.8.1.11-py2.6.egg/pyre/applications/Preprocessor.py",
> line 17, in<module>
>      import os, getpass, socket
>    File "/usr/usc/python/2.6.1/lib/python2.6/socket.py", line 46, in<module>
>      import _socket
> ImportError: /usr/usc/python/2.6.1/lib/python2.6/lib-dynload/_socket.so:
> undefined symbol: PyExc_ValueError
>
>
> Thorsten Becker - http://geodynamics.usc.edu/~becker
> _______________________________________________
> CIG-MC mailing list
> CIG-MC at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc



More information about the CIG-MC mailing list