DLL LOAD FAILED importing python packages from anaconda into neuron

Post Reply
aliaped
Posts: 13
Joined: Sun Aug 09, 2020 12:10 pm

DLL LOAD FAILED importing python packages from anaconda into neuron

Post by aliaped »

I am having issues with neuron recognizing and finding python packages for import.

Install SOP:
https://neuron.yale.edu/ftp/neuron/nrn_ ... nstall.pdf

Output from bash terminal:

Code: Select all

bash-4.4$ cd c:/nrn
bash-4.4$ mpiexec -n 2 nrniv -mpi test0.hoc
NEURON -- VERSION 7.7.2 7.7 (2b7985ba) 2019-06-20
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2018
See http://neuron.yale.edu/neuron/credits

numprocs=2
I am 0 of 2
I am 1 of 2
bash-4.4$ nrniv -python
NEURON -- VERSION 7.7.2 7.7 (2b7985ba) 2019-06-20
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2018
See http://neuron.yale.edu/neuron/credits

>>> import matplotlib
Traceback (most recent call last):
  File "stdin", line 1, in <module>
  File "C:\Users\aliap\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 138, in <module>
    from . import cbook, rcsetup
  File "C:\Users\aliap\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 31, in <module>
    import numpy as np
  File "C:\Users\aliap\Anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module>
    from . import _distributor_init
  File "C:\Users\aliap\Anaconda3\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
    from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
>>>
I don't understand why neuron can't find the python packages included with anaconda. I an uninstalled and reinstalled anaconda. I have tried both adding anaconda to system path during install and not adding it to system path during install.

Specs:
Windows 10 pro v1903
Neuron v 7.7.2
Anaconda with Python 3.7

Here are my current paths:

System path for the user: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Users\aliap\Anaconda3;c:\nrn\bin;c:\nrn\mingw\usr\bin;C:\Users\aliap;c:\nrn\lib\python;

PYTHONPATH: c:\nrn\lib\python;C:\Users\aliap\Anaconda3

NEURONHOME: c:\ nrn

I was previously getting a permissions error and fixed it thanks to this post:
https://stackoverflow.com/questions/569 ... windows-10


Thank you so much for your help!
ted
Site Admin
Posts: 6287
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: DLL LOAD FAILED importing python packages from anaconda into neuron

Post by ted »

Suggest you uninstall whatever version of NEURON is currently on your PC and get 7.8.1 which is now available from www.neuron.yale.edu and is likely to include a fix for the problem you encountered.
Post Reply