Importing the module after building fails
After following the installation/compilation steps descriped in the readme, importing the module fails with the message: ImportError: cannot import name '_pymemsurfer' from partially initialized module 'memsurfer' (most likely due to a circular import) This happens when trying to run the ex_simple.py or otherwise importing the module. Tested on Arch with python 3.7 and 3.8
Traceback:
File "examples/ex_simple.py", line 20, in
Interesting. I never caught this problem with python3.7.2. Can you please try the following and report back if this works?
-
/home/user/python37/lib/python3.7/site-packages/memsurfer-1.0.0-py3.7-linux-x86_64.egg/memsurfer/__init__.py-- Comment line 15 (the import statement) -
ex_simple.py-- addfrom memsurfer import membrane-- change lines 63, 95, and 96: replacememsurfer.Membranewithmemsurfer.membrane.Membrane
If this example works, you can make changes to the other examples as well. If this works, I will move this changes to the repo.