Libra package

125 views
Skip to first unread message

eaa...@umsystem.edu

unread,
Feb 15, 2021, 4:15:55 PM2/15/21
to Quantum-Dynamics-Hub
Hi All,
I do the installation of Libra withing the Conda environment with python3. When I run any code, I got an error message that saying: 
 " ImportError: /home/eali/Projects/libra-code-master/_build4/src/liblibra_core.so: undefined symbol: _ZTIN5boost6python7objects21py_function_impl_baseE"

Would you please help me out? 

Best regards,
Esam


[eali@bartik Tut1.1]$ module load anaconda/python3
[eali@bartik Tut1.1]$ export PYTHONPATH=/home/eali/Projects/libra-code-master/_build4/src:$PYTHONPATH
[eali@bartik Tut1.1]$ export LD_LIBRARY_PATH=/home/eali/Projects/libra-code-master/_build4/src:$LD_LIBRARY_PATH
[eali@bartik Tut1.1]$ ls
common.py  Hamiltonian.py  md.py  nve.py  nvt.py  plt.plt  README.md
[eali@bartik Tut1.1]$ python nvt.py
Traceback (most recent call last):
  File "nvt.py", line 21, in <module>
    from liblibra_core import *
ImportError: /home/eali/Projects/libra-code-master/_build4/src/liblibra_core.so: undefined symbol: _ZTIN5boost6python7objects21py_function_impl_baseE

Alexey Akimov

unread,
Mar 17, 2021, 5:18:09 PM3/17/21
to Quantum-Dynamics-Hub
Hi Esam,

This looks like you might have not built Libra correctly (e.g. some of the dependencies such as Boost or Python weren't found). Did you have any errors or warnings when you was building Libra? Especially, pay attention to the outputs that say "Python found.." "Boost found..." or something like that.

By the way, I suggest we move the discussion to the Slack channel (https://join.slack.com/t/quantumdynamicshub/shared_invite/zt-mjbhjssx-GGhsbYHxeBMvhmumK_j7LA), if this question is still relevant (sorry, I noticed it only now).

Best,
Alexey
Reply all
Reply to author
Forward
0 new messages