ImportError: No module named site
Posted: Fri Jan 27, 2017 3:20 am
After install Neuron (trough a nrn deb pacakge) I started nrniv and get the following message:
Warning: no DISPLAY environment variable.
--No graphics will be displayed.
NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
ImportError: No module named site
Py_Initialize exited. PYTHONHOME probably needs to be set correctly.
Our automatic guess based on the Python shared library location:
export PYTHONHOME=/usr/lib
did not work.
It will help to examine the output of:
nrnpyenv.sh
and set the indicated environment variables, or avoid python by adding
nopython: on
to /usr/local/nrn/share/nrn/lib/nrn.defaults (or .nrn.defaults in your $HOME directory)
I did run nrnpyenv.sh and get the following message:
# items in sys.path = 11
# beginning with sys.prefix = 10
# site-3 same as sys.prefix
# in neither location ['.']
# sys.prefix = /usr
# site-3 = /usr
export PYTHONHOME="/usr"
export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH"
In /etc/profile.d I add in a file export PYTHONHOME to the right location? but the error message appears again.
Als disable nopython: on in /usr/local/nrn/share/nrn/lib/nrn.defaults doesn't work.
I do use BIO-Linux with Ubuntu 16.04 LTS
How can I solved this problem?
Thanks in advance
Peter
Warning: no DISPLAY environment variable.
--No graphics will be displayed.
NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
ImportError: No module named site
Py_Initialize exited. PYTHONHOME probably needs to be set correctly.
Our automatic guess based on the Python shared library location:
export PYTHONHOME=/usr/lib
did not work.
It will help to examine the output of:
nrnpyenv.sh
and set the indicated environment variables, or avoid python by adding
nopython: on
to /usr/local/nrn/share/nrn/lib/nrn.defaults (or .nrn.defaults in your $HOME directory)
I did run nrnpyenv.sh and get the following message:
# items in sys.path = 11
# beginning with sys.prefix = 10
# site-3 same as sys.prefix
# in neither location ['.']
# sys.prefix = /usr
# site-3 = /usr
export PYTHONHOME="/usr"
export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH"
In /etc/profile.d I add in a file export PYTHONHOME to the right location? but the error message appears again.
Als disable nopython: on in /usr/local/nrn/share/nrn/lib/nrn.defaults doesn't work.
I do use BIO-Linux with Ubuntu 16.04 LTS
How can I solved this problem?
Thanks in advance
Peter