Page 1 of 1

model view

Posted: Thu Nov 07, 2019 5:38 am
by elenamerendino
Hi. I have a problem with model view.When I try to visualize my model I see error occurred. I tried to reinstall the program but it's the same.The other tools are working it is the only exception.that's the message I see: ^
oc>Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/nrn/lib/python\neuron\rxd\__init__.py", line 7, in <module>
from . import rxd
File "C:/nrn/lib/python\neuron\rxd\rxd.py", line 2, in <module>
from . import species, node, section1d, region
File "C:/nrn/lib/python\neuron\rxd\species.py", line 1, in <module>
from .rxdmath import _Arithmeticed
File "C:/nrn/lib/python\neuron\rxd\rxdmath.py", line 2, in <module>
import numpy
ImportError: No module named numpy
AttributeError: 'module' object has no attribute 'rxd'
C:\nrn\bin\nrniv.exe: No attribute: rxd
near line 1
{hoc_ac_ = htau_nax}
^
ModelView[0].init()
mview()
execute("mview()")
initcode failed with 1 left

Re: model view

Posted: Thu Nov 07, 2019 8:59 am
by ted
Recent distributions of NEURON require Python to be installed in order for Model View to work. If Python is not already installed on your computer, suggest uninstalling NEURON completely (if you're using Windows, run
c:\nrn\uninstall.exe and then be sure to c:\nrn and its contents if that directory persists). Then download and install Python (Anaconda is a good choice; be sure to get the latest version of Python 3.x, since support for Python 2 ends in "early 2020"). Finally, reinstall NEURON, accepting all installation options.

Re: model view

Posted: Fri Nov 08, 2019 4:12 am
by elenamerendino
I have already installed and used Python 2.7 on my pc.maybe is the wrong version?

Re: model view

Posted: Fri Nov 08, 2019 10:32 am
by ted
No, NEURON works with Python 2.7 as well. But there's not much point in configuring NEURON to use 2.7 because the people who develop Python are terminating support for 2.7 in 2020. If I were you, I'd uninstall both NEURON and Python, then I'd install the latest stable Python 3.x, and after that I'd install NEURON.