Code: Select all
import hoc
Code: Select all
from neuron import hoc
emuller wrote:This occurs if the current directory is src/nrnpythonarb wrote: after make install I switched to the src/nrnpython dir and
typed python setup.py install in super user mode:
...
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import neuron
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "neuron/__init__.py", line 9, in <module>
import hoc
ImportError: No module named hoc
what is still wrong?
armin
Move up one directory, try again and it should work.
I will add a warning message that informs the user of this error case, and submit it to Michael.
Eilif.