Page 1 of 1

Error opening ModelView

Posted: Wed Feb 01, 2017 11:36 am
by yjyoo

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

oc>Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/", line 8, in <module>
    import rxd
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/", line 11, in <module>
    import options
  File "/Applications/NEURON-7.4/nrn/lib/python/neuron/rxd/", 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()}
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.


Re: Error opening ModelView

Posted: Thu Feb 02, 2017 1:55 pm
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/ 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.

Re: Error opening ModelView

Posted: Thu Feb 02, 2017 2:07 pm
by hines
I believe that bug was probably fixed Feb 5, 2016 ... 9753532bba
I recommend uninstalling NEURON-7.4 by dragging to the trash and installing ... 64-osx.pkg