llnl / llnl/MemSurfer

import error

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
installation
Dominant language
C++
Stars
29
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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 (https://github.com/LLNL/MemSurfer/issues/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](https://github.com/LLNL/MemSurfer/files/7043613/setup.txt)

Thanks.

Regards,
Vinay

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with setup.py and the native extension imported by memsurfer/memsurfer_cmod.py; reproduce the failure using examples/ex_simple.py and inspect the reported _memsurfer_cmod.so import error. Compare the current setup with the changes discussed in issue #3. Done means a clean installation can import memsurfer without the undefined-symbol or missing-module errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.