Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error #12

Open
gvkumar1390 opened this issue Aug 25, 2021 · 0 comments
Open

import error #12

gvkumar1390 opened this issue Aug 25, 2021 · 0 comments

Comments

@gvkumar1390
Copy link

Hi,

It seems that I have installed the MemSurfer, but I am getting the below error while importing the memsurfer. A similar issue has been reported previously (#3), and I am not sure how to implement the corresponding changes in the new/current setup.py file. Please find the attached setup.py file. I tried to add the 'GMP libraries as suggested in issue #3; still, it didn't solve my issue. I am new to python, and any help will be appreciated.


Traceback (most recent call last):
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/memsurfer_cmod.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 565, in module_from_spec
File "", line 1173, in create_module
File "", line 228, in _call_with_frames_removed
ImportError: /media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/_memsurfer_cmod.so: undefined symbol: __gmpq_add

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/Downloads/MemSurfer-develop/examples/ex_simple.py", line 20, in
import memsurfer
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/init.py", line 15, in
from .membrane import Membrane
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/membrane.py", line 20, in
from . import memsurfer_cmod
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/memsurfer_cmod.py", line 17, in
_memsurfer_cmod = swig_import_helper()
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/site-packages/memsurfer-1.0.1-py3.9-linux-x86_64.egg/memsurfer/memsurfer_cmod.py", line 16, in swig_import_helper
return importlib.import_module('_memsurfer_cmod')
File "/media/vinay/fd3ce634-d796-4637-86d0-1021399d6c6c/Vinay/install/python396/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_memsurfer_cmod'


Setup.py file:
setup.txt

Thanks.

Regards,
Vinay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants