Genesis
Genesis copied to clipboard
ImportError: /home/john/anaconda3/envs/genesis_env/lib/python3.9/site-packages/pymeshlab/lib/libmeshlab-common.so: undefined symbol: _ZdlPvm, version Qt_5
(genesis_env) john@john-MS-7D99:~/github/Genesis$ python examples/tutorials/pbd_cloth.py
[Genesis] [16:09:25] [INFO] ╭─────────────────────────────────────────────────────────────────────────────────────╮
[Genesis] [16:09:25] [INFO] │┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉ Genesis ┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉│
[Genesis] [16:09:25] [INFO] ╰─────────────────────────────────────────────────────────────────────────────────────╯
[Genesis] [16:09:25] [INFO] Running on [NVIDIA GeForce RTX 4080 SUPER] with backend gs.cuda. Device memory: 15.69 GB.
[Genesis] [16:09:25] [INFO] 🚀 Genesis initialized. 🔖 version: 0.2.0, 🌱 seed: None, 📏 precision: '32', 🐛 debug: False, 🎨 theme: 'dark'.
[Genesis] [16:09:25] [INFO] Scene
env: Ubuntu24.04 python3.9
Thanks!
Hi, I just fix the issue by running following command before running my Python script:
export LD_LIBRARY_PATH=/home/wyatt/anaconda3/lib/python3.11/site-packages/pymeshlab/lib:$LD_LIBRARY_PATH
What critical is:
$LD_LIBRARY_PATH needs to come after /home/wyatt/anaconda3/lib/python3.11/site-packages/pymeshlab/lib:
for you it seems to be:
export LD_LIBRARY_PATH=/home/john/anaconda3/envs/genesis_env/lib/python3.9/site-packages/pymeshlab/lib:$LD_LIBRARY_PATH
refer to: https://github.com/cnr-isti-vclab/PyMeshLab/issues/341#issuecomment-2091695040
On Ubuntu, Qt5 library may be incompatible with pymeshlab native library. As a workaround, give precedence to the python module QT library instead of the Ubuntu system QT library.
SITE_PACKAGES=`pip show pymeshlab | grep Location | sed 's|Location: ||'`
PYMESHLAB_LIB=$SITE_PACKAGES/pymeshlab/lib
Make sure the symbol is found
strings $PYMESHLAB_LIB/libQt5Core.so.5 | grep _ZdlPvm
Finally, configure LD_LIBRARY_PATH to overwrite QT library path,
LD_LIBRARY_PATH=$PYMESHLAB_LIB PYOPENGL_PLATFORM=glx python <script.py>