installation: import issue
- Dominant language
- C++
- Stars
- 29
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have installed Memsurfer 1.1.0.
setup.py ran successfully. But when testing with a simple script "test_install.py", containing just one line:
import memsurfer
then I get the error:
Traceback (most recent call last):
File "test_install.py", line 1, in
import memsurfer
File "/usr/local/lib/python3.8/dist-packages/memsurfer-1.1.0-py3.8-linux-x86_64.egg/memsurfer/__init__.py", line 15, in
from .membrane import Membrane
File "/usr/local/lib/python3.8/dist-packages/memsurfer-1.1.0-py3.8-linux-x86_64.egg/memsurfer/membrane.py", line 20, in
from . import memsurfer_cmod
File "/usr/local/lib/python3.8/dist-packages/memsurfer-1.1.0-py3.8-linux-x86_64.egg/memsurfer/memsurfer_cmod.py", line 13, in
from . import _memsurfer_cmod
ImportError: /usr/local/lib/python3.8/dist-packages/memsurfer-1.1.0-py3.8-linux-x86_64.egg/memsurfer/_memsurfer_cmod.so: undefined symbol: __gmpq_add
notes and related issues:
- the error is similar to issue #3, but the setup.py file has been changed since, so the solution cannot be applied.
- This issue might be essentially the same as issue #12 , which is unsolved.
- I read issue https://github.com/LLNL/MemSurfer/issues/23, and have ensured that I was not in the source dir when trying to import memsurfer
- OS version: Ubuntu 20.04
- python version: 3.8.10
kind regards,
Andreas
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with setup.py and the import chain in test_install.py, memsurfer/__init__.py, memsurfer/membrane.py, and memsurfer/memsurfer_cmod.py. Reproduce the import on Ubuntu 20.04 with Python 3.8.10 and inspect the native extension's GMP symbol linkage; done when a clean installation imports memsurfer successfully.
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