Error opening ModelView

Post Reply
yjyoo
Posts: 1
Joined: Tue Jan 24, 2017 12:58 pm

Error opening ModelView

Post by yjyoo »

Hello,

Whenever I try to open ModelView (the number of Thread is 1), it generates an error message:

Code: Select all

NEURON -- VERSION 7.4 (1380:90539e842093) 90539e842093
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits

oc>Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/__init__.py", line 8, in <module>
    import rxd
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/rxd.py", line 11, in <module>
    import options
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/options.py", line 10, in <module>
    scipy_version = [int(v) for v in scipy.__version__.split('.')]
ValueError: invalid literal for int() with base 10: '0b1'
AttributeError: 'module' object has no attribute 'rxd'
/Applications/NEURON-7.4/nrn/x86_64/bin/nrniv: No attribute: rxd
 near line 1
 {forall ModelViewAllCell[0].sall.append()}
                                           ^
        ModelView[0].init()
      mview()
    execute("mview()")
initcode failed with 1 left
At first, I made sure that spicy was installed in the computer but still the error occurred. Would you please help me to use ModelView?

Thank you for your help in advance.

Yeonjoo
ramcdougal
Posts: 267
Joined: Fri Nov 28, 2008 3:38 pm
Location: Yale School of Public Health

Re: Error opening ModelView

Post by ramcdougal »

This is fixed in the development version, but in brief: NEURON isn't recognizing your version of scipy and so it can't tell if it's new enough to use certain features, and so it's crashing.

A work around is to edit the file /Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/options.py using your favorite text editor, and replace the line

scipy_version = [int(v) for v in scipy.__version__.split('.')]

with scipy_version = [1, 0, 0]


Sorry about that.
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Error opening ModelView

Post by hines »

I believe that bug was probably fixed Feb 5, 2016
https://github.com/nrnhines/nrn/commit/ ... 9753532bba
I recommend uninstalling NEURON-7.4 by dragging to the trash and installing
http://www.neuron.yale.edu/ftp/neuron/v ... 64-osx.pkg
Post Reply