Error in the execution of
metro --selftest Edit
python metro --selftest
the following error message is produced
metro_util.py:15: RuntimeWarning: Python C API version mismatch for module arrayfns: This Python has API version 1011, module arrayfns has version 1012. import arrayfns metro_util.py:15: RuntimeWarning: Python C API version mismatch for module _numpy: This Python has API version 1011, module _numpy has version 1012. import arrayfnsTraceback (most recent call last): File "metro", line 14, in ? import metro_logger File "metro_logger.py", line 6, in ? import metro_config File "metro_config.py", line 5, in ? import metro_config_validation File "metro_config_validation.py", line 8, in ? import metro_date File "metro_date.py", line 7, in ? import W3CDate ImportError: No module named W3CDate
This is because it is the old version of python that is loaded.
You must change the first line of the file metro. Replace
or by any other path where the required python version is installed.
When an upgrade of python is needed to have the version 2.3, the binary is copied in the directory
But, when the command "python" is written in command line, it is the old binary in
that is loaded, even if the environment variable
had the right value and that the command
returns the correct path.
python is unable to find the libxml2 library Edit
The execution of code
give the following error:
* Initialising METRo * Auto configure METRo XML library [!!] Fatal error! No METRo XML library can be use. METRo need one of the following XML library installed on the system. Supported library:python-libxml2
The libxml2-python library is not installed in the right directory.
If you got this error, you surely did an upgrade of python in order to run METRo. But, when you install the libxml2-python library as specified in the installation procedure, you must use the right version of python. As an example, suppose that the binary of python 2.3 is installed in the /usr/local/bin directory, you must install the libxml2-python with the following command:
/usr/local/bin/python setup.py install
The version of libxml2-python corresponding to the version of the libxml2 installed on the computer does not exists Edit
In the installation procedure, we ask to execute the command:
ls /usr/lib | grep libxml2.so
and to install the version corresponding to libxml2 for the .so file. For specific versions of libxml2, the corresponding libxml2-python bindings does not always exists. For example, the following version does not exists:
Install the package of the next version. If the version on the computer is 2.5.10, install the libxml2-python 2.5.11 .
There is a lot of "NewNode: something : 0x81b8148" on the standard output Edit
When executing METRo, there is a lot (more than 3000) of message beginning by
NewNode:. Even if the execution of METRo seems succesful, this message is written.
It is a printf left in one particular version of libxml2.
This message is a debug printf that has been left in a release of libxml2. It has been observed in libxml2 version 2.6.17.
This does not implies that METRo does an error. There is not much to do except, maybe, change the version of libxml2 if you really, really want to get rid of it. The author would suggest to get use to see it.
More information can be found here: http://mail.gnome.org/archives/xml/2003-February/msg00000.html
When I want to compile, libgfortran.so.1 is not found whereas libgfortran.so.3 is installed Edit
This problem occurs under Ubuntu 8.10. You have to be root to be able so solve it.
- First of all, link libgfortran.so.1 with libgfortran.so.3 in /usr/local/lib :
ln -s /usr/lib/libgfortran.so.3 /usr/local/lib/libgfortran.so.1
- then use ldconfig:
- As setup.sh as root use 'locate', update the database:
|This page is part of the documentation of the METRo software. Back to the table of content.|