cbehan/pycftboot

unable to import symengine and bootstrap

Closed this issue · 5 comments

using MacOS

unable to import symnegine

import symengine
Traceback (most recent call last):
File "", line 1, in
File "/Users/aneekphys/opt/anaconda3/lib/python3.9/site-packages/symengine/init.py", line 12, in
import symengine.lib.symengine_wrapper as wrapper
ImportError: dlopen(/Users/aneekphys/opt/anaconda3/lib/python3.9/site-packages/symengine/lib/symengine_wrapper.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_ZN9SymEngine10ComplementC1ERKNS_3RCPIKNS_3SetEEES6)

unable to import bootstrap

import bootstrap
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'bootstrap'

though I have sdpb, symengine installed, and PyCFTBoot repo cloned in my machine.

However, all other steps in the Installation guide for MacOS are successful.

cbehan commented

You need to recompile symengine and/or symengine.py. Most likely you have performed a major python update since they were installed. The second problem is simply that you aren't running python from the pycftboot directory. But neither of these are bugs.

I am able to import bootstrap now but the problem continues with symengine (with the same specific error message).
I don't know how to resolve.

import symengine
Traceback (most recent call last):
File "", line 1, in
File "/Users/aneekphys/symengine/build/symengine.py/symengine/init.py", line 12, in
import symengine.lib.symengine_wrapper as wrapper
ImportError: dlopen(/Users/aneekphys/symengine/build/symengine.py/symengine/lib/symengine_wrapper.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_ZN9SymEngine10ComplementC1ERKNS_3RCPIKNS_3SetEEES6)

cbehan commented

Whatever you did to install symengine should just be redone. Uninstall it and then reinstall it. If the error still happens after that you'll have to ask the symengine people.

Thanks, the issue is resolved