Python, Linux, default search places.

Frantisek.Fridrich at rubena.cgs.cz Frantisek.Fridrich at rubena.cgs.cz
Fri Apr 8 06:01:59 EDT 2016


Hello.

Thank you to Karim, thank you to Wildman for response. 

I will describe my problem in more detail. Python on my computer is 
installed in /usr directory. My Python contains additional modules such as 
numpy, scipy, matplotlib, h5py, … . Python runs correctly.

Third party program opens Python but I can’t import numpy and so on. 
Python can’t find numpy. After modifying PYTHONPATH, Python can find numpy 
but shows the following error message:
/usr/lib64/python2.6/lib-dynload/math.so: undefined symbol: PyFPE_jbuf
I think Python can’t find some libraries. 

I don’t know what the third party program does with environment variables 
but I think I should correctly define environment either in shell before I 
start third party program or in Python in third party program.

That is the reason why I would like to know default:
 - search path for libraries,
 - search path for Python modules,
in case LD_LIBRARARY_PATH and PYTHONPATH is empty not defined.

I think that default
 - search path for executables
is easier task. I also would like to know the correct default definition. 

OS: SUSE Linux Enterprise Server 11. 
HW: HP DL160 Gen8 SFF CTO.
Python 2.6.

Frantisek

Disclaimer: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. Distribution only by express authority of a Rubena company.



More information about the Python-list mailing list