'nrniv -python' Not Working
Posted: Tue May 24, 2016 5:07 pm
I installed Neuron 7.4 from the binary package from Windows and set up my PYTHONPATH and NEURONHOME so everything points to the correct directories.
When I run python 2.7 and import neuron, the import works and I can load files and access information from neuron.h.
However, when I try to run 'nrniv -python', this is the error message that is given to me:
Additionally, when I loading the neuron dll from Python, this is what happens:
According to this thread: viewtopic.php?f=6&t=2005, it says that I need to build Neuron from source in order to access the Neuron dll, but that thread is over 5 years old. Is it possible to get 'nrniv -python' working and run 'nrn_dll()' without any errors without building from source?
When I run python 2.7 and import neuron, the import works and I can load files and access information from neuron.h.
However, when I try to run 'nrniv -python', this is the error message that is given to me:
Code: Select all
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
Python not available
Code: Select all
>>> from neuron import nrn_dll
>>> dll = nrn_dll()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\nrn\lib\python\neuron\__init__.py", line 454, in nrn_dll
raise Exception('unable to connect to the NEURON library')
Exception: unable to connect to the NEURON library