Comments (11)
from hnn.
Do any of the tutorials work?
If not, does NEURON load successfully?
e.g. if you do
cd ~/hnn
python
and then in python try "import neuron", does it succeed or fail?
If it fails, try:
cd ~/hnn
rm -fr x86_64
nrnivmodl mod/
and then see if the previous test now succeeds or fails.
from hnn.
One other thing to check:
Does typing "python" load Python 2 or Python 3? (It should say in the banner.)
from hnn.
After some digging, it seems that the newer versions of MacOS doesn't include openMPI, which is required to run HNN simulations I assume? After installing I am now seeing the following:
Starting simulation. . .
*** An error occurred in MPI_Init_thread
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
*** and potentially your MPI job)
[iMac-Pro.radiology.ucsf.edu:44424] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!
[iMac-Pro.radiology.ucsf.edu:44424] OPAL ERROR: Not initialized in file pmix2x_client.c at line 109
[iMac-Pro.radiology.ucsf.edu:44425] OPAL ERROR: Not initialized in file pmix2x_client.c at line 109
does this help?
from hnn.
hi @ramcdougal
"import neuron" works
Python version is 3.6.5
from hnn.
Just to confirm: Are you using Anaconda Python?
I would have expected doing the conda install of mpi4py to install openmpi, but you can try removing the openmpi you installed and explicitly doing the conda install of openmpi:
sudo conda install -c mpi4py openmpi
(sudo is assuming you've installed for all users; if it's a local install, do not use "sudo").
from hnn.
I did the conda install for mpi4py and openmpi, loaded the tutorial parameters, clicked run simulation and now i'm getting the following:
Starting simulation. . .
[iMac-Pro.radiology.ucsf.edu:46680] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46680] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46689] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46689] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46692] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46692] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46681] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46682] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46687] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46693] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46694] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46695] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46687] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
WARN: could not read simulation outputs: dict_values(['/Users/ashish/hnn/data/OnlyRhythmicProx/dpl.txt', '/Users/ashish/hnn/data/OnlyRhythmicProx/rawspec.npz', '/Users/ashish/hnn/data/OnlyRhythmicProx/spk.txt', '/Users/ashish/hnn/data/OnlyRhythmicProx/param.txt'])
from hnn.
To help diagnose. results of the following tests may be useful. Run tests in a terminal.
- Does mpi work?
<
$ mpiexec -n 2 echo "hello"
hello
hello
- does nrniv work without mpi and python
<
nrniv -nobanner -nopython -c '{print "hello" quit()}'
hello
- do nrniv and mpi work together but without python
<
$ mpiexec -n 2 nrniv -nobanner -nopython -mpi -c '{print "hello" quit()}'
numprocs=2
hello
hello
- can you launch nrniv and use python
<
$ nrniv -nobanner -python -c 'from neuron import h; print("Hello"); h.quit()'
Hello
- do all three work when launching nrniv
<
$ mpiexec -n 2 nrniv -nobanner -mpi -python -c 'from neuron import h; pc = h.ParallelContext(); print ("I am %d of %d" % (int(pc.id()), int(pc.nhost()))); h.quit()'
numprocs=2
I am 0 of 2
I am 1 of 2
from hnn.
I've recently installed HNN. I had the same problem as you. Additionally if you look View->View Simulation Log, you might see a more detailed message. In my case it was
Try loading openmpi
load_mpi: dlopen(libmpi.dylib, 10): image not found
Is openmpi installed? If not in default location, need a LD_LIBRARY_PATH.
could not dynamically load libmpi.so or libmpich2.so
To solve it I pointed LD_LIBRARY_PATH
to the dir containing libmpi.dylib
. I had a separate conda's env hnn
for HNN, so I added the below line to my ~/.profile
(don't forget to log out) and everything started working.
export LD_LIBRARY_PATH=~/anaconda2/envs/hnn/lib/
You also can use Mac's search utilities to find your libmpi.dylib
location.
from hnn.
@vogdb thanks for the instructions above.
This error can come about in at least a couple of ways. Even if LD_LIBRARY_PATH
is set to where libmpi.dylib
exists, the error may not be resolved if libmpi.10.dylib
does not exist. I needed to create a link:
cd $CONDA_PREFIX/lib
ln -s libmpi.1.dylib libmpi.10.dylib
I don't know where the 10 comes from. Perhaps @ramcdougal has some insight from the NEURON macOS installer?
from hnn.
I'm glad @vogdb and @blakecaldwell provided some easy solutions!
To be honest, I don't have access to the Mac machine I did this install on anymore, it wasn't my Mac :(
So I can't provide more info on my end, apologies. If we can confirm thatextra 10 in libmpi.10.dylib
isn't an issue, perhaps we can close this?
Thanks again for all the help and debugging! Really grateful :)
from hnn.
Related Issues (20)
- error starting gui on maint/pre-hnn-core branch HOT 2
- can't update cell properties
- Issue running HNN-Netpyne (hnn2) examples HOT 3
- ODict instead of OrderedDict HOT 4
- Tonic input throws error HOT 3
- Problem downloading and running a script that will install HNN HOT 12
- Issue installing HNN HOT 8
- Problems downloading HNN HOT 2
- Error running ERPYes100Trials.param file HOT 8
- Version issue with windows native install powershell script HOT 4
- Failed running sim using default.param (Mac) HOT 2
- can't compile HNN source code HOT 5
- can't do bash hnn-ubuntu.sh - permissions error HOT 1
- CentOS installation script not found HOT 1
- errors with HNN GUI installation HOT 2
- Setting LD_LIBRARY_PATH for mac installation HOT 2
- Instructions for Displaying GUI on VNC Client HOT 3
- Installing HNN on Windows HOT 3
- "Failed Running Sim" HOT 4
- Can't update Synaptic gain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hnn.