Error opening ModelView

Error opening ModelView

Postby yjyoo » Wed Feb 01, 2017 12:36 pm

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
yjyoo
 
Posts: 1
Joined: Tue Jan 24, 2017 1:58 pm

Re: Error opening ModelView

Postby ramcdougal » Thu Feb 02, 2017 2:55 pm

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.
ramcdougal
 
Posts: 83
Joined: Fri Nov 28, 2008 4:38 pm
Location: Yale School of Medicine

Re: Error opening ModelView

Postby hines » Thu Feb 02, 2017 3:07 pm

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
hines
Site Admin
 
Posts: 1414
Joined: Wed May 18, 2005 3:32 pm


Return to OS X

Who is online

Users browsing this forum: No registered users and 2 guests