Open titouanlh opened 4 years ago
[Update] I've been able to solve the issue following this tutorial : https://github.com/pulver22/gym-gazebo/wiki/ERROR:-Cv_bridge-for-Python3 So now I source the GQCNN package and I extend it with the cv-bridge python3 package. But it leads to an other issue which is the following :
libgcc_s.so.1 must be installed for pthread_cancel to work
I have no idea how to solve this, I've made a lot of research on the internet and I have not been able to fix it.
Maybe I've done something wrong in the previous steps ?
System information
Describe the result you are trying to replicate I'm trying to use the example ROS policy
Provide the exact sequence of commands / steps that you executed to replicate this result From Ubuntu Xenial fresh install, installed ROS Kinetic Then made a Python 3.5.2 virtualenv, cloned and installed GQCNN and autolab_core packages Installed alll dependancies and built with catkin_make
In order to be able to import cv2 I had to add the following in /my/virtualenv/path/lib/python3.5/site-packages/perception/image.py :
instead of
import cv2
only Maybe it is relatedDescribe the unexpected behavior The ROS graspins policy works but the python example doesn't, I get the following error
Other info / logs Here's the traceback
I guess the problem comes from Python 3.5. I tried using GQCNN with Python 2.7 but I always get a
cannot import name ABC
error. I tried building the ROS package withcatkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so
(from https://stackoverflow.com/questions/49221565/unable-to-use-cv-bridge-with-ros-kinetic-and-python3) but this doesn't solve the issue I also tried adding the "vision_opencv" ROS package in my workspace but I'd doesn't work either.Thank you for your answers and your work on this project.