LLNL / MemSurfer

MemSurfer is a software tool to compute bilayer membrane surfaces.
GNU General Public License v3.0
24 stars 9 forks source link

Problem to import memsurfer #3

Closed jfloresc closed 4 years ago

jfloresc commented 4 years ago

Hi All,

I have successfully compiled memsurfer, after building locally GMP and MPFR libraries in the $MEM_HOME/external folder.

I try to import but I get the following error:

Python 3.7.0 (default, Jul 3 2018, 12:46:05) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information.

import memsurfer Traceback (most recent call last): File "/mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/pymemsurfer.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pymemsurfer', [dirname(file)]) File "/mnt/software/python3.7/lib/python3.7/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pymemsurfer'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/init.py", line 15, in from .membrane import Membrane File "/mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/membrane.py", line 21, in from . import pymemsurfer File "/mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/pymemsurfer.py", line 28, in _pymemsurfer = swig_import_helper() File "/mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/pymemsurfer.py", line 20, in swig_import_helper import _pymemsurfer ImportError: /mnt/software/python3.7/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/_pymemsurfer.cpython-37m-x86_64-linux-gnu.so: undefined symbol: __gmpq_add

I would like to use local versions of GMP and MPFR since I am compiling for our local modules server.

Best regards, Jose

jfloresc commented 4 years ago

I solved the problem by adding the following below LIBS_EXT.append('CGAL') in the setup.py file:

LIBS_EXT.append('gmp')