Hi everyone: I recently found an issue regarding some incompatibility when using GiD 9.0.2 and Python that I could fix and I would like to share with you in case you are experiencing the same trouble. My actual configuration is: Linux Ubuntu 9.04 Python 2.6.2 gcc/g++ 4.3.3 Kratos from svn repository Gid for Linux 9.0.2
It seems that when GiD launches the calculation script the following line appears to be ignored
python $2/$1.py > $2/$1.log
causing the python script not to be executed and creating an empty log file. When saving the standard and error output to a file the following message is printed:
…
python $2/$1.py >$2/$1.log
+ python /home/jfgracia/Documents/our_example.gid/our_example.py
python: /home/jfgracia/GiDx32/lib/libz.so.1: no version information available (required by python)
…
ImportError: /home/jfgracia/GiDx32/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/jfgracia/kratos/kratos/libs/Kratos.so)
…
Which means that libraries libz.so.1 and libstdc++.so.6 included in GiD distribution package are not compatible with the current version of python, even tough the entirely script is executable in a regular Terminal window!
To correct such problem you have to type this commands on a Terminal window:
$ cd /path_where_gid_is/lib
$ sudo mv libstdc++.so.6 libstdc++.so.6.orig
$ sudo mv libz.so.1 libz.so.1,orig
$ sudo ln -s /usr/lib/libstdc++.so.6.0.10 libstdc++.so.6
$ sudo ln -s /lib/libz.so.1.2.3.3 libz.so.1
The above command simply rename the libraries and put a symbolic link to the compatible libraries inside GiD lib folder.
I hope you find this useful
|