-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running with pyside doesn't work #1525
Comments
I was hoping uncommenting this line would lead to building the shiboken lib, but it didn't :/ not sure why |
PySide support was disabled due to https://bugreports.qt.io/browse/PYSIDE-218. rviz/src/python_bindings/shiboken/CMakeLists.txt Lines 14 to 23 in 291df89
You might want to try PySide2 instead of PySide1. Not sure this is supported by |
Thanks I'll try passing that check too. python_qt_binding for melodic talks about pyside2: http://wiki.ros.org/python_qt_binding I'm not sure how I would make rviz use pyside2 tho, but I guess i need to find where it uses python_qt_binding and somehow setattr to pyside2? |
I think, you just need to ensure that cmake finds the correct PySide version (which is the latest one available by default). |
Mmh. The python_qt_bindings shiboken_helper is all setup for Shiboken2 and PySide2. Its is looking for shiboken2 and fails to find it. Anything that I find online says its suppose to be in /usr/lib/cmake/Shiboke.... But that doesnt exists. It uses PYTHON_EXTENSION_SUFFIX: -x86_64-linux-gnu
apt show python-pyside2/shiboiken2 I'm pretty clueless here. Trying to learn cmake by doing this :D |
Let's continue the discussion in #1526. Closing here. |
Awesome, thanks for looking into it. |
The python_qt_binding script searches for shiboken2, PySide2, and PythonLibs. You should have a look into the cmake log and the file |
Issue:
I am trying to run rviz via python pyside:
I get:
>>> import rviz Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/ros/melodic/lib/python2.7/dist-packages/rviz/__init__.py", line 17, in <module> from . import librviz_shiboken
Part of this: ros-visualization/visualization_tutorials#51
Part of this: ros-visualization/visualization_tutorials#52
Your environment
[ INFO] [1594919224.337276138]: rviz version 1.13.13
[ INFO] [1594919224.337304520]: compiled against Qt version 5.9.5
[ INFO] [1594919224.337312176]: compiled against OGRE version 1.9.0 (Ghadamon)
Pyqt4/5 installed
PySide and Pyside2 installed
The text was updated successfully, but these errors were encountered: