model view

The basics of how to develop, test, and use models.
Post Reply
elenamerendino
Posts: 3
Joined: Tue Nov 05, 2019 9:22 am

model view

Post by elenamerendino » Thu Nov 07, 2019 5:38 am

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

ted
Site Admin
Posts: 5653
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: model view

Post by ted » Thu Nov 07, 2019 8:59 am

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.

elenamerendino
Posts: 3
Joined: Tue Nov 05, 2019 9:22 am

Re: model view

Post by elenamerendino » Fri Nov 08, 2019 4:12 am

I have already installed and used Python 2.7 on my pc.maybe is the wrong version?

ted
Site Admin
Posts: 5653
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: model view

Post by ted » Fri Nov 08, 2019 10:32 am

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.

Post Reply