[CIG-SHORT] Pylith Windows binary problem - SOLVED
Brad Aagaard
baagaard at usgs.gov
Mon Jun 11 08:57:37 PDT 2012
PyLith Windows users,
We appear to have a solution for those of you getting the error message
"ImportError: numpy.core.multiarray failed to import."
when trying to use the PyLith Windows binary. It looks like this error
arises from having another version of Python installed that interferes
with the Python included with PyLith. The solution is to set your
environment variables so that the shell doesn't see the existing Python
when you run PyLith.
1. Double click on the PyLith icon to get the cygwin terminal window for
Pylith.
2. Run "env >& env.log" and examine the env.log file for environment
variables related to Python.
3. Remove all environment variables related to Python and set the PATH
variable to the absolute minimum. For example:
unset PYTHON
unset PYTHON26
unset PYTHON27
unset PYTHONPATH
PATH=/usr/bin:/bin:/lib:/lib/lapack
4. You should now be able to use PyLith.
In general, you will need to perform steps 1 and 3 (but not 2) every
time you run PyLith. To add these commands to the PyLith startup script,
add the commands to the bottom of the .pylithrc file included in the
PyLith distribution. Usually this file is in Program Files (x86)/PyLith.
This shell script is run every time PyLith starts up.
Regards,
Brad
More information about the CIG-SHORT
mailing list