OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post Reply
ssaluga

OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post by ssaluga » Wed Jul 17, 2013 11:07 am

Group,
I cannot get Neuron to run with this configuration. I get the following error:

loading membrane mechanisms from @executable_path/../../share/nrn/demo/release/x86_64/.libs/libnrnmech.so
Additional mechanisms from files
cabpump.mod cachan1.mod camchan.mod capump.mod invlfire.mod khhchan.mod mcna.mod nacaex.mod nachan.mod release.mod
ImportError: No module named site
neurondemo exit status was 1
Press return key to exit

Not sure how to proceed.
Thank you in advance.

Scott J Saluga
Oberlin College

hines
Site Admin
Posts: 1494
Joined: Wed May 18, 2005 3:32 pm

Re: OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post by hines » Wed Jul 17, 2013 2:51 pm

ImportError: No module named site
This is due to an incomplete python installation. I'm wondering why python did not print the stacktrace that showed that the underlying problem is a missing
pyconfig.h file
You can avoid it by launching nrniv from a terminal window with the -Py_NoSiteFlag option. (the icons use /Applications/NEURON-7.3/nrn/x86_64/bin/nrngui
and you can change the last line from

Code: Select all

exec "$program" "$NEURONHOME/lib/hoc/nrngui.hoc" "$@" -
to

Code: Select all

exec "$program" =PY_NoSiteFlag "$NEURONHOME/lib/hoc/nrngui.hoc" "$@" -
Better yet, though, do you have a pyconfig.h file on your machine? If so where is it? Perhaps you have not yet installed the xcode command line tools.
You would certainly need that to process mod files.

ssaluga

Re: OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post by ssaluga » Tue Jul 23, 2013 11:36 am

I had already installed the developer tools. Still no go. I have not had this problem in the past. Neuron was always an easy install.
Not sure how to correct this. I am not a Python guy, I just setup and install for labs.
Sorry for the naiveté. :-)

Scott

hines
Site Admin
Posts: 1494
Joined: Wed May 18, 2005 3:32 pm

Re: OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post by hines » Wed Jul 24, 2013 9:01 am

what happens if you start a terminal window and type
which make

mhohmann

Re: OSX 10.8.4, Enthought Canopy, Neuron 7.3

Post by mhohmann » Wed Jul 24, 2013 1:38 pm

I am also new to Neuron and had the same problem for several days now, although I tried to use the standalone version.

Today I found out that it was caused by an incompatibility of python 3.X.X with Neuron 7.3.

Uninstalling the python 3 framework via terminal and reinstalling python 2.6.8 (2.7.5 caused another error) fixed the problem.

I could imagine that it's the same problem with the new Canopy/EPD versions.

Cheers,
Matthias

Post Reply