Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when installing hnn-core #256

Closed
stephanie-r-jones opened this issue Jan 24, 2021 · 14 comments · Fixed by #255
Closed

error when installing hnn-core #256

stephanie-r-jones opened this issue Jan 24, 2021 · 14 comments · Fixed by #255

Comments

@stephanie-r-jones
Copy link
Member

When testing if hnn_core installed properly with 'python -c 'import hnn_core', I received the following error:

Traceback (most recent call last):
File "", line 1, in
File "/Applications/anaconda/lib/python3.6/site-packages/hnn_core/init.py", line 5, in
from .pyramidal import L2Pyr, L5Pyr
File "/Applications/anaconda/lib/python3.6/site-packages/hnn_core/pyramidal.py", line 8, in
from neuron import h
ModuleNotFoundError: No module named 'neuron'

@jasmainak
Copy link
Collaborator

Hi Stephanie -- did you install Neuron first? You can do:

$ pip install NEURON

@jasmainak
Copy link
Collaborator

We'll actually make it so that NEURON is installed automatically as part of hnn-core installation. It's in #255 . But let us know if this fixes the problem for you or you face other issues!

@stephanie-r-jones
Copy link
Member Author

Hi Mainak,
Yes, I intalled the latest version of NEURON and ran a test simulation through the NEURO GUI. it worked.

@stephanie-r-jones
Copy link
Member Author

And, NEURON wasn't installed automatically because I had an older version of NEURON that needed to first be removed

@stephanie-r-jones
Copy link
Member Author

When I say it worked, I mean NEURON works, not hnn_core.. still issue there

@jasmainak
Copy link
Collaborator

how did you install NEURON? Did you use pip as I suggested above or you downloaded and installed it with the installer?

@stephanie-r-jones
Copy link
Member Author

pip didn't automatically work so I used the installer... should I reinstall and try again?

@stephanie-r-jones
Copy link
Member Author

I mean uninstall and try again

@jasmainak
Copy link
Collaborator

I think pip should be the preferred way. I have stopped using the installer for a while. What issue did you face with pip ?

@stephanie-r-jones
Copy link
Member Author

Uninstalling NEURON, and then reinstalling NEURON with pip worked. Note, I first tried to just run pip install https://api.github.com/repos/jonescompneurolab/hnn-core/zipball/master and this did not install NEURON, and I think you are suggesting it should have?

@jasmainak
Copy link
Collaborator

If you open ipython and then do:

$ ipython

and then:

>>> import neuron

does this work? If not, I think you can safely run that pip command. No need to uninstall anything. It's possible that for the GUI, NEURON is installed in a different environment.

@jasmainak
Copy link
Collaborator

Note, I first tried to just run pip install https://api.github.com/repos/jonescompneurolab/hnn-core/zipball/master and this did not install NEURON

Yes, this is something to fix. We're working on it in #255 . It should really install everything with a single command but currently it doesn't. You have to install NEURON separately first

@stephanie-r-jones
Copy link
Member Author

Also, installing hnn_core has broken my HNN GUI docker installation. I'm going to try now the pip install of HNN GUI and see how the goes...

@jasmainak
Copy link
Collaborator

I don't think a pip install of the GUI exists. The fact that it broke your installation means that you probably didn't have a docker installation. A docker installation is containerized. You probably used the scripting route to install HNN GUI. I suspect that all you need to do to fix this is to activate the hnn environment by doing:

$ conda activate hnn

and then install NEURON in that environment using pip

$ pip install NEURON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants