My models work when I run them using plain old python (Actually they work better because you fixed a bug with LONGITUDINAL DIFFUSION, thanks!)
But when I try to run the models in an interactive ipython session I get a Segmentation fault. I used to use ipython without problems. Am I doing something wrong? I'll go track down line 42 in nrnpython.cpp but something tells me the problem is something I've messed up in compiling. Is there something I could have messed up?
Thanks for the help,
-Andrew
Importing neuron works in python
Code: Select all
gartland@komodo:~$ python
Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from neuron import h
NEURON -- VERSION 7.2 (375:9a5ae43de640) 2009-12-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
>>>
Code: Select all
gartland@komodo:~$ ipython
Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from neuron import h
NEURON -- VERSION 7.2 (375:9a5ae43de640) 2009-12-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
---------------------------------------------------------------------------
<type 'exceptions.ImportError'> Traceback (most recent call last)
/home/gartland/<string> in <module>()
<type 'exceptions.ImportError'>: __import__ not found
Assertion failed: file nrnpython.cpp, line 42
NEURON: PyRun_SimpleString("import sys") == 0
near line 0
objref hoc_obj_[2]
^
Segmentation fault