Hello! I upgraded to OS X 15.2 (Sequoia), then installed Python 3.12.7 via the Anaconda distribution, and got a fresh download of NEURON 8.2 using the package installer. I can start the NEURON GUI from the application folder but not from the python command line, nor from a jupyter notebook.
When I try "pip3 install neuron" I get "Requirement already satisfied: neuron in /Applications/NEURON/lib/python (8.2.0)"
When I try "from neuron import h, gui" I get:
<---start quote--->
Traceback (most recent call last):
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 135, in <module>
from . import hoc
ImportError: cannot import name 'hoc' from partially initialized module 'neuron' (most likely due to a circular import) (/Applications/NEURON/lib/python/neuron/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 137, in <module>
import neuron.hoc
ModuleNotFoundError: No module named 'neuron.hoc'
<---end quote--->
I don't know what "partially initialized module" means. I don't know what I'm doing wrong. Any help appreciated!
Thanks -- Peter Thomas
NEURON 8.2 install / OS X 15.2 Sequoia / Python 3.12.7 Anaconda installation difficulties
Re: NEURON 8.2 install / OS X 15.2 Sequoia / Python 3.12.7 Anaconda installation difficulties
Uri Dickman helped me solve the problem.
The package download available at (https://www.neuron.yale.edu/neuron/download) links to NEURON version 8.2.0.
But for python versions 3.8 to 3.12 I need NEURON version 8.2.6.
A link to an installer for 8.2.6 is here:
https://github.com/neuronsimulator/nrn/ ... /tag/8.2.6
-Peter
The package download available at (https://www.neuron.yale.edu/neuron/download) links to NEURON version 8.2.0.
But for python versions 3.8 to 3.12 I need NEURON version 8.2.6.
A link to an installer for 8.2.6 is here:
https://github.com/neuronsimulator/nrn/ ... /tag/8.2.6
-Peter
-
- Site Admin
- Posts: 6376
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: NEURON 8.2 install / OS X 15.2 Sequoia / Python 3.12.7 Anaconda installation difficulties
Hmm, old links at the old web site. Time to migrate any useful content from www.neuron.yale.edu to someplace else, and then shut down the old site (which is way too heavy on style and customization, and a big pain to maintain). Always go to nrn.readthedocs.io for the most recent standard distribution of NEURON (which will be 8.2.6 until the arrival of the much awaited 9.x).
Re: NEURON 8.2 install / OS X 15.2 Sequoia / Python 3.12.7 Anaconda installation difficulties
For several years now, we've been having a great deal of trouble maintaining the neuron.yale.edu website.It crashes every 8 days for an unknown reason. Only one or two persons, not me, know how to change content (and not all the types of content at that). Almost all user facing information, the exception being this forum, is available now at nrn.readthedocs.io. That resolves all maintenance information modification issues except for hosting this forum.
All activities involving NEURON (except for change to neuron.yale.edu) now pass through github.com/neuronsimulator where a change to a repository eventually ends up in a NEURON distribution and nrn.readthedocs.io. We would like to make the change complete and shutdown the current hosting for neuron.yale.edu, but can't quite figure out how to make github discussions a complete functional replacement for this forum.
All activities involving NEURON (except for change to neuron.yale.edu) now pass through github.com/neuronsimulator where a change to a repository eventually ends up in a NEURON distribution and nrn.readthedocs.io. We would like to make the change complete and shutdown the current hosting for neuron.yale.edu, but can't quite figure out how to make github discussions a complete functional replacement for this forum.