Closed roversch closed 3 years ago
This looks like it could be a python 2 vs python 3 conflict. I have received the same error running on noetic.
agreed, this is a python2 vs 3 problem
I think https://github.com/ros-visualization/rqt_dep/pull/12 solved the issue, it should be solved in the next release when https://github.com/ros/rosdistro/pull/29028 gets in.
I get the same error even with 0.4.11
This change fixes the runtime error at line 82: from: https://github.com/ros-visualization/rqt_dep/blob/4545187ce3fbfd91e01c82809f1edb456c830306/src/rqt_dep/ros_pack_graph.py#L82 to:
self.allnames = sorted(list(set(rospack.list())) + list(rosstack.list()))
however, the graph is always empty for me, even if it gets the list of packages in the autocomplete
@mcamurri could you send a patch to rospack
?
The list()
method is returning something that isn't a python list
(see here), causing confusion.
to:
self.allnames = sorted(list(set(rospack.list())) + list(rosstack.list()))
Actually, the equivalent is:
self.allnames = sorted(list(set(list(rospack.list()) + list(rosstack.list()))))
we can merge that as a temporal workaround here.
however, the graph is always empty for me, even if it gets the list of packages in the autocomplete
mmm, no idea why that's the case. I will give a try to this locally, though it will take some time until I have time for it (1/2 weeks). If someone has a patch before, better :smiley: .
@mcamurri could you send a patch to rospack?
Actually, I have created https://github.com/ros-infrastructure/rospkg/pull/220.
https://github.com/ros-visualization/rqt_dep/pull/16 should fix the issue.
It would be great if anyone here can test the change. Thanks!
This seems to be working for me now
Next patch release should include the fix: https://github.com/ros/rosdistro/pull/29482.
If I run
rqt_dep
, I directly get a crash, with following output:with
rospkg
version1.2.9
rqt_dep
version0.4.10