Hello everybody,
I have been unsuccessfully setting Neuron as Python module for some days in my Windows 7. Previously I had installed Neuron + Python in Ubuntu with no problem at all.
The steps that I have followed after reading a lot of posts and links on this forum are the next ones:
1. Install Cygwin
2. Download NEURON and INTERVIEWS from
http://www.neuron.yale.edu/ftp/neuron/versions/alpha/. Concretely I chose iv-17.tar.gz and nrn-7.2.alpha-524.tar.gz.
3. Extract the two packages in $HOME/neuron/iv and $HOME/neuron/nrn respectively.
4. Compile iv by means of:
Code: Select all
cd $HOME/neuron/iv
./configure --prefix=`pwd`
make
make install
and everything was ok.
4. Compile nrn by means of:
Code: Select all
cd $HOME/neuron/nrn
./configure --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-nrnpython=/bin/python
make
make mswin
and it only returned and error as expected in the last mswin stage (nrnsetup.nsi). In fact, the main files (hocmodule.dll, cygIVhines-3.dll, and nrniv.dll) were at /cygdrive/c/marshalnrn/nrn/.
Then, I copied hocmodule.dll to hoc.pyd and set both $NEURONHOME and $PYTHONPATH by using:
Code: Select all
export NEURONHOME=/cygdrive/c/marshalnrn/nrn
export PYTHONPATH=/cygdrive/c/marshalnrn/nrn/bin:/cygdrive/c/marshalnrn/nrn/lib/python.
But afterwards, when I tried to load the neuron modules from the Python interpreter
I get the following Error:
Code: Select all
CODE: SELECT ALL
File "/cygdrive/c/marshalnrn/nrn/lib/python/neuron/__init__.py", line 81, in
<module> import neuron.hoc
ImportError: No module named hoc
This mistake has already been commented on
http://www.neuron.yale.edu/phpbb/viewto ... f=5&t=2032 but I can not find the key point to solve it. It looks that Python can not find the hoc.pyd module in the path, but it should do it.
Does anyone have any suggestion? I am getting crazy with this mistake and I am seriously considering installing some Linux dist on this PC as well.
Many thanks in advance