Some problem about Python+NEURON on a server with multiple Python

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
zyc
Posts: 14
Joined: Sun Feb 19, 2017 9:15 pm

Some problem about Python+NEURON on a server with multiple Python

Post by zyc » Sun Nov 26, 2017 2:37 am

Hi, all.
I am trying to use Python+NEURON on a server with multiple python, one under /usr/bin, and another under /usr/local/bin, and I set the python under /usr/local/bin as the default python. I compile NEURON as bellow

Code: Select all

./build.sh
./configure --prefix=$INSTALL_DIR --without-iv --with-paranrn --with-nrnpython=`which python`
make -j24
make install
libnrnmech.so can be created successfully, but when I try to run the simulation:

Code: Select all

./x86_64/special -python test.py
a error raised:

Code: Select all

loading membrane mechanisms from /home/zyc/Softwares/GPU-Neuron/sources/simulationcode/x86_64/.libs/libnrnmech.so
dlopen failed - 
/home/zyc/Softwares/GPU-Neuron/sources/simulationcode/x86_64/.libs/libnrnmech.so: undefined symbol: hoc_register_dparam_semantics
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import numpy as np
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 3, in <module>
    import math
ImportError: /usr/local/lib/python2.7/lib-dynload/math.so: undefined symbol: PyFloat_Type
Does anyone know how to fix this problem? Thank you so much

Post Reply