rqt_gui error in perspective manager in ROS noetic
I run my code flawlessly in ROS Melodic but in ROS Noetic, I am having the following error (maybe because of python3):
Traceback (most recent call last):
File "/opt/ros/noetic/lib/rqt_gui/rqt_gui", line 13, in <module>
sys.exit(main.main())
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/main.py", line 61, in main
return super(
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/main.py", line 614, in main
perspective_manager.import_perspective_from_file(
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 360, in import_perspective_from_file
self._convert_values(data, self._import_value)
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 422, in _convert_values
self._convert_values(groups[group], convert_function)
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 422, in _convert_values
self._convert_values(groups[group], convert_function)
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 422, in _convert_values
self._convert_values(groups[group], convert_function)
[Previous line repeated 1 more time]
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 419, in _convert_values
keys[key] = convert_function(keys[key])
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py", line 429, in _import_value
return QByteArray.fromHex(eval(value['repr(QByteArray.hex)']))
File "<string>", line 1, in <module>
TypeError: arguments did not match any overloaded call:
QByteArray(): too many arguments
QByteArray(int, str): argument 1 has unexpected type 'str'
QByteArray(Union[QByteArray, bytes, bytearray]): argument 1 has unexpected type 'str'
Any idea on this? Or have you encountered this before?
Thanks
I'm hitting exact same error with
rqt
. I'm able to get it to run by changing /opt/ros/noetic/lib/python3/dist-packages/qt_gui/perspective_manager.py:429 toreturn value['repr(QByteArray.hex)']
. Still get a bunch of errors, but it at least runs.My launch file was using a
.perspective
file. Also, when I tried to load it manually inrqt
. The same errors happened. It was not necessary for me to load that file, then I modified the launch file :)