[JdeRobot] jderobot can't find opencv
jsa
javierjsa at gmail.com
Thu Mar 30 11:51:56 CEST 2017
Hi,
I have opencv installed both for python 2.7 and python 3.5. I can import cv2
and check cv2.__version__, which happens to be 3.5.2, for both python
versions.
When launch the following:
/python3 follow_line.py followLineF1.cfg/
I get the following error message:
/Traceback (most recent call last):
File "follow_line.py", line 24, in <module>
from gui.GUI import MainWindow
File "/home/jsa/master/Robotica/follow_line/gui/GUI.py", line 10, in
<module>
from gui.widgets.cameraWidget import CameraWidget
File "/home/jsa/master/Robotica/follow_line/gui/widgets/cameraWidget.py",
line 3, in <module>
import cv2
ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined
symbol: PyCObject_Type/
It turns out PYTHONPATH is set as follows:
/PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages/
Then changed it to:
/ PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.5/dist-packages/
(That's where cv2.so is)
Upon launching follow_line again, I get:
/Traceback (most recent call last):
File "follow_line.py", line 26, in <module>
from parallelIce.cameraClient import CameraClient
File "/usr/lib/python3.5/parallelIce/cameraClient.py", line 21, in
<module>
import jderobot
ImportError: No module named 'jderobot'/
I'm using Ubuntu 16.04 and I would say I've followed the installation
instructions correctly. Gazebo simpleCircuit.world works correctly.
Thank you.
--
View this message in context: http://jderobot-developer-list.2315034.n4.nabble.com/jderobot-can-t-find-opencv-tp4643273.html
Sent from the Jderobot Developer List mailing list archive at Nabble.com.
More information about the Jde-developers
mailing list