-
Notifications
You must be signed in to change notification settings - Fork 122
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
Issue with binary installer on OS X : ModuleNotFoundError: No module named 'neuron.hoc38' #611
Comments
|
This is default 7.7 available from the website : https://www.neuron.yale.edu/neuron/download
Do you meant if I have another neuron installation mentioned in PYTHONPATH? |
That version is link to |
Ah interesting ! But the download page doesn’t mention anything about this? I think regular users will miss this (as happened to me as well). |
I agree. An appropriate error message is needed if the neuron module has no hoc module compatible with the launched python. It would be possible to work around this issue by using the abi3 version of hoc...dylib. The problem is that I haven't yet been able to make the corresponding dylib modules for rx3d. |
I am having quite the similar problem, could someone please just direct me on what to do ? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\nrn\lib\python\neuron__init__.py", line 110, in import neuron.hoc ModuleNotFoundError: No module named 'neuron.hoc' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:/pythonProject/main.py", line 1, in import neuron File "c:\nrn\lib\python\neuron__init__.py", line 112, in exec("import neuron.hoc%d%d as hoc" % (sys.version_info[0], sys.version_info[1])) File "", line 1, in ModuleNotFoundError: No module named 'neuron.hoc38' Process finished with exit code 1 When I try with Anaconda prompt, I get this During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): I just need to get it working on either of those two (Pycharm prefered) What should I do ? |
@saifaldin : could you try our pip package? i.e. try
(replace pip3 with the version of pip corresponding to your Python) |
I am using Windows 64 bit, isn't pip command for Linux shell ? |
The Windows NEURON 7.7 installer does not support Python 3.8 because 7.7 came out before Python 3.8. If you want to run NEURON with Python 3.8 on Windows, use the 7.8 semi-official release at https://neuron.yale.edu/ftp/neuron/versions/alpha/nrn-7.8.1.w64-mingw-py-27-35-36-37-38-setup.exe (You are sort-of correct; pip for NEURON only gives you a recent version for Linux and macOS at this time.) |
Oh okay, sounds like a good start. Please could you just walk me through it just a little bit ? What should I do afterwards from Pycharm or Anaconda ?! Or should I just type " import neuron" again and they will recognize it ? |
That's probably the best: uninstall, then install. Then everything should just work. It looks like Anaconda and pycharm are successfully connecting to the library as a whole... the key part of the error message is when it says that it's failing on finding |
OH MY GOD ! IT WORKED ! What I did basically is the simple uninstall/reinstall, then just reopened pycharm and allowed it to verify the import function all over again ! Thank you. |
The error message involving |
Umm.. Thanks for your reply, it is appreciated. I do not really understand what you are trying to imply due to my weak knowledge in this area in general. However it was solved above by the help of Ram, thank you ! |
One of our internal user had issue on OSX so I tried to install NEURON via OSX installer. I am seeing following:
The text was updated successfully, but these errors were encountered: