Cannot run conda based viewer
ptbremer opened this issue · 6 comments
Installing the latest OpenVisus on top of a python 3.7 based anaconda leads to
ImportError: dlopen(/Users/bremer5/opt/anaconda3/envs/visus/lib/python3.7/site-packages/OpenVisus/_VisusGuiPy.so, 2): Library not loaded: @rpath/QtOpenGL.framework/Versions/5/QtOpenGL
Referenced from: /Users/bremer5/opt/anaconda3/envs/visus/lib/python3.7/site-packages/OpenVisus/_VisusGuiPy.so
The problem seems to be the wrong rpath? I see
Executing command ['install_name_tool', '-add_rpath', '/Users/bremer5/opt/anaconda3/envs/visus/lib', 'bin/libVisusGui.dylib']
But
/Users/bremer5/opt/anaconda3/envs/visus/lib/QtOpenGL.framework/Versions/5/QtOpenGL
does not exist. Instead is seems we need
/Users/bremer5/opt/anaconda3/envs/visus/lib/python3.7//site-packages/PyQt5/Qt5/lib/QtOpenGL.framework/Versions/5/QtOpenGL
OS X 10.15.7
I often have issues with pyqt and openvisus.. I typically have to do things like:
(I don't remember why I ask it to install everything twice.. there was something odd going on.. maybe an order of install issue)
python -m pip uninstall -y PyQtWebEngine PyQt5 PyQt5-sip
python -m pip install PyQt5
python -m pip install PyQt5-sip
python -m pip install PyQtWebEngine
python -m pip install PyQt5
python -m pip install PyQt5-sip
python -m pip install PyQtWebEngine
python -m pip install --upgrade OpenVisus
python -m OpenVisus configure
For conda based OpenVisus viewer, I run to open the viewer:
conda activate ovenv # this is my env for conda where I installed everything
python -m OpenVisus viewer
But I get the following error:
Error in arguments ['/home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py', 'viewer']
By running the same command manually as /home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py viewer
tells me that it does not have execute permission. Then I did chmod +x
on that file but the same error persists when running python -m OpenVisus viewer
.
But running /home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py viewer
now only gives a wierld cursor and crashes with the following message:
' @ error/constitute.c/WriteImage/1441.
/home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py: line 3: $'\r': command not found
/home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py: line 8: syntax error near unexpected token `('
/home/insane/.conda/envs/ovenv/lib/python3.7/site-packages/OpenVisus/__main__.py' line 8: ` if (sys.version_info > (3, 0)):
This error also seems relevant to rpath, so posting it here.
Linux Manjaro with conda installation (pip installation works fine).
closing since it should be fixed