Page 1 of 1

undefined symbol: nrnmpi_myid

Posted: Tue Sep 18, 2018 12:34 pm
by aeronlaffere
When trying to import compiled mechanisms into a NEURON model in the Python environment I get this error.

Code: Select all

loading membrane mechanisms from x86_64/.libs/libnrnmech.so
dlopen failed - 
x86_64/.libs/libnrnmech.so: undefined symbol: nrnmpi_myid
This error does not appear when starting NEURON with nrniv or nrngui. However, I still come across the following error when attempting to load from my model file.

Code: Select all

NEURON: syntax error
 in reduced_model.hoc near line 49
 	insert ih
          ^
        xopen("reduced_mo...")
      execute1("{xopen("re...")
    load_file("reduced_mo...")
This happens in Python and NEURON. I think it has to do with the failure to load indicated by the initial error message in both cases. I know others have brought up the undefined symbol: nrnmpi_myid error before but none of the answers given so far seemed relevant.

Re: undefined symbol: nrnmpi_myid

Posted: Tue Sep 18, 2018 2:12 pm
by ted
Open a terminal and execute the command
neurondemo
Do you see a message in the terminal that looks something like

Code: Select all

loading membrane mechanisms from /home/ted/bin/nrn/share/nrn/demo/release/x86_64/.libs/libnrnmech.so
Additional mechanisms from files
 cabpump.mod cachan1.mod . . .
and do you also see a bunch of NEURON-related windows such as the NEURON Main Menu toolbar, a RunControl panel etc.?

Re: undefined symbol: nrnmpi_myid

Posted: Tue Sep 18, 2018 4:20 pm
by aeronlaffere
Thanks for the quick reply. Yes, the following appears along with NEURON Demonstrations, RunControl, and VariableTimeStep windows.

Code: Select all

NEURON -- VERSION 7.5 master (6b4c19f) 2017-09-25
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2016
See http://neuron.yale.edu/neuron/credits

loading membrane mechanisms from /usr/local/nrn/share/nrn/demo/release/x86_64/.libs/libnrnmech.so
Additional mechanisms from files
 cabpump.mod cachan1.mod camchan.mod capump.mod invlfire.mod khhchan.mod mcna.mod nacaex.mod nachan.mod release.mod

Re: undefined symbol: nrnmpi_myid

Posted: Tue Sep 18, 2018 4:30 pm
by ted
Aha. Uninstall your current version of NEURON, and install the latest version for your particular operating system, which plays much more nicely with Python and shouldn't generate the error message you were getting. You will have to delete any old x86_64 directories and their contents, and recompile mod files.