Page 1 of 1

Installing NEURON using PIP

Posted: Sun Apr 22, 2012 7:25 pm
by Prokopiou
Hello all,

I tried to install the NEURON module using the pip command and I seem to get a nice result:

Code: Select all

dyn1065-216:~ andreasprokopiou$ sudo pip install neuron
Downloading/unpacking neuron
  Downloading NEURON-7.2.536.10.tar.gz (29.1Mb): 29.1Mb downloaded
  Running setup.py egg_info for package neuron
    
Installing collected packages: neuron
  Running setup.py install for neuron
    
Successfully installed neuron
Cleaning up...

but when I try to import it I get this error:

Code: Select all

>>> import neuron
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/neuron/__init__.py", line 81, in <module>
    import neuron.hoc
ImportError: dlopen(/Library/Python/2.7/site-packages/neuron/hoc.so, 2): no suitable image found.  Did find:
	/Library/Python/2.7/site-packages/neuron/hoc.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
I have Mac OS version 10.7.3 if that helps in any way.

Does anyone know why the module will not import even though it seems to have installed just fine with pip?

Thanks,
Andreas.

Re: Installing NEURON using PIP

Posted: Mon Apr 23, 2012 2:26 am
by uri.cohen
Hello Andreas,
The option to use PIP to install NEURON is a work-in-progress which doesn't support MacOS yet. Mike Vella can provide more details, I'll forward it to him.
Uri

Re: Installing NEURON using PIP

Posted: Tue Apr 24, 2012 4:50 am
by vellamike
Hi Andreas,

I'm afraid as Uri points out PIP will currently only install the neuron package for Windows or 64bit Linux. I have updated the package and it will now stop you from trying to install it on a mac.

Mike