<div dir="ltr"><div><div><div><div>  Hi,<br><br></div>  it still shows the same error. I have added the PYTHONPATH to the end of the .basrch file as follows:<br>PYTHONPATH=&quot;${PYTHONPATH}:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/resources/&quot;<br>export PYTHONPATH<br><br></div>  And finally I run: &quot;source .basrch&quot;. But unfortunately I get the same error:<br>Traceback (most recent call last):<br>  File &quot;main.py&quot;, line 6, in &lt;module&gt;<br>    from gui.GUI import MainWindow<br>  File &quot;/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py&quot;, line 1, in &lt;module&gt;<br>    from gui.widgets.teleopWidget import TeleopWidget<br>  File &quot;/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py&quot;, line 19, in &lt;module&gt;<br>    from resources import resources_rc<br>ImportError: cannot import name resources_rc<br><br></div>  Thanks for your help,<br><br></div>  Julio<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-29 23:28 GMT+02:00 JoseMaria Cañas Plaza <span dir="ltr">&lt;<a href="mailto:jmplaza@gsyc.es" target="_blank">jmplaza@gsyc.es</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Julio,<br>
<br>
the messages after launching gazebo are normal. They are mostly<br>
warnings or non essential errors. They also appear in my computer and<br>
everything works here.<br>
<br>
Regarding the messages after launching the follow_line component, the<br>
problem seems to be an incomplete PYTHON configuration. You already<br>
have a resources_rc.py file as it is included in the src/follow_line<br>
directory of the TeachingRobotics repository (in addition there is<br>
also a src/follow_line/gui/widgets/resources/resources_rc.pyc).<br>
Despite the file exists Python does not find it when needed. Try to<br>
include those directories in the PYTHONPATH environment variable. That<br>
is one way to expand the set of directories where python interpreter<br>
searches for modules.<br>
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, May 29, 2016 at 1:04 PM, Julio Vega &lt;<a href="mailto:julio.vega@urjc.es">julio.vega@urjc.es</a>&gt; wrote:<br>
&gt;   Hi,<br>
&gt;<br>
&gt;   first of all, thanks for your help. I have tried it as you have explained,<br>
&gt; step by step and results are no good. I still having the same erros.<br>
&gt;<br>
&gt;   By the side of gazebo, I get some errors, but I think they can be ignored.<br>
&gt; The output is as following:<br>
&gt; =========================================<br>
&gt; Gazebo multi-robot simulator, version 5.3.0<br>
&gt; Copyright (C) 2012-2015 Open Source Robotics Foundation.<br>
&gt; Released under the Apache 2 License.<br>
&gt; <a href="http://gazebosim.org" rel="noreferrer" target="_blank">http://gazebosim.org</a><br>
&gt;<br>
&gt; [Msg] Waiting for master.<br>
&gt; [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
&gt; [Msg] Publicized address: 192.168.1.33<br>
&gt; Gazebo multi-robot simulator, version 5.3.0<br>
&gt; Copyright (C) 2012-2015 Open Source Robotics Foundation.<br>
&gt; Released under the Apache 2 License.<br>
&gt; <a href="http://gazebosim.org" rel="noreferrer" target="_blank">http://gazebosim.org</a><br>
&gt;<br>
&gt; [Msg] Waiting for master.<br>
&gt; [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
&gt; [Msg] Publicized address: 192.168.1.33<br>
&gt; [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
&gt; &quot;/home/julio/.gazebo/models/kinect&quot;<br>
&gt; [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
&gt; &quot;/home/julio/.gazebo/models/mapaSimple&quot;<br>
&gt; [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
&gt; &quot;/usr/local/share/jderobot/gazebo/models/kinect&quot;<br>
&gt; [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
&gt; &quot;/usr/local/share/jderobot/gazebo/models/mapaSimple&quot;<br>
&gt; Load: -256811480 cam_f1_left<br>
&gt; Load: -1643279736 cam_f1_right<br>
&gt; LaserDump Constructor<br>
&gt; constructor motors<br>
&gt; -----------------constructor Pose3D<br>
&gt; --Ice.Config=f1Motors.cfg<br>
&gt; GetName() Pose3D: f1<br>
&gt; [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1Pose3D.cfg<br>
&gt; [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1Motors.cfg<br>
&gt; Pose3D Endpoints default -h localhost -p 8998<br>
&gt; Motors Endpoints &gt; default -h localhost -p 9999<br>
&gt;  laser: f1::laser<br>
&gt; strs[0]: f1<br>
&gt; [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1_laser.cfg<br>
&gt; Laser Endpoints &gt; default -h localhost -p 8996<br>
&gt; [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
&gt; path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
&gt; [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
&gt; path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
&gt; [Info] loaded Ice.Config file:<br>
&gt; /usr/local/share/jderobot/conf/cam_f1_left.cfg<br>
&gt; CameraGazebo cam_f1_left Endpoints &gt; default -h localhost -p 8995<br>
&gt; -! 05/29/16 12:56:05.992 warning: found unknown properties for object<br>
&gt; adapter `CameraGazebo&#39;:<br>
&gt;        CameraGazebo.Camera.0.Format<br>
&gt;        CameraGazebo.Camera.0.ImageHeight<br>
&gt;        CameraGazebo.Camera.0.ImageWidth<br>
&gt;        <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
&gt; Constructor CameraI<br>
&gt; safeThread<br>
&gt; [Info] loaded Ice.Config file:<br>
&gt; /usr/local/share/jderobot/conf/cam_f1_right.cfg<br>
&gt; CameraGazebo cam_f1_right Endpoints &gt; default -h localhost -p 8994<br>
&gt; -! 05/29/16 12:56:05.995 warning: found unknown properties for object<br>
&gt; adapter `CameraGazebo&#39;:<br>
&gt;        CameraGazebo.Camera.0.Format<br>
&gt;        CameraGazebo.Camera.0.ImageHeight<br>
&gt;        CameraGazebo.Camera.0.ImageWidth<br>
&gt;        <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
&gt; Constructor CameraI<br>
&gt; safeThread<br>
&gt; [Wrn] [Publisher.cc:132] Queue limit reached for topic<br>
&gt; /gazebo/default/pose/local/info, deleting message. This warning is printed<br>
&gt; only once.<br>
&gt; =========================================<br>
&gt;<br>
&gt;   On the other hand, when I launch follow_line, I get this output:<br>
&gt; =========================================<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;main.py&quot;, line 6, in &lt;module&gt;<br>
&gt;     from gui.GUI import MainWindow<br>
&gt;   File<br>
&gt; &quot;/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py&quot;,<br>
&gt; line 1, in &lt;module&gt;<br>
&gt;     from gui.widgets.teleopWidget import TeleopWidget<br>
&gt;   File<br>
&gt; &quot;/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py&quot;,<br>
&gt; line 19, in &lt;module&gt;<br>
&gt;     from resources import resources_rc<br>
&gt; ImportError: cannot import name resources_rc<br>
&gt; =========================================<br>
&gt;<br>
&gt;   It seems to need something (resources_rc) that I don&#39;t have.<br>
&gt;<br>
&gt;   Does anyone know such a resource? Thanks,<br>
&gt;<br>
&gt;   Julio<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2016-05-26 7:18 GMT+02:00 JoseMaria Cañas Plaza &lt;<a href="mailto:jmplaza@gsyc.es">jmplaza@gsyc.es</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; uhm.. weird. Avoid the script for the moment, it is a shorcut.<br>
&gt;&gt;<br>
&gt;&gt; 1.- Run:<br>
&gt;&gt;<br>
&gt;&gt; source /usr/local/share/jderobot/gazebo/gazebo-setup.sh<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2.- Then go to the directory where you have downloaded the git<br>
&gt;&gt; TeachingRobotics repository. Go to the<br>
&gt;&gt;<br>
&gt;&gt; directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/gazebo<br>
&gt;&gt; and there run<br>
&gt;&gt;<br>
&gt;&gt; gazebo --verbose simpleCircuit.world<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 3.- After that, go to<br>
&gt;&gt;<br>
&gt;&gt; directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/<br>
&gt;&gt; and there run<br>
&gt;&gt;<br>
&gt;&gt; python main.py --Ice.Config=followLineF1.cfg<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; It works like a charm on my machine, with JdeRobot-5.3.2 from package<br>
&gt;&gt; and the current source code of TeachingRobotics from the github. Let<br>
&gt;&gt; us know and tell us the Gazebo console messages if not working<br>
&gt;&gt; properly.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; JoseMaria<br>
&gt;&gt;<br>
&gt;&gt; On Mon, May 23, 2016 at 8:50 PM, Julio Vega &lt;<a href="mailto:julio.vega@urjc.es">julio.vega@urjc.es</a>&gt; wrote:<br>
&gt;&gt; &gt;   Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   I am trying to launch the &quot;Follow_line&quot; code from TeachingRobotics<br>
&gt;&gt; &gt; GitHub<br>
&gt;&gt; &gt; (exactly from here [1]). I see there is a &quot;run_it.sh&quot;, so I run it, but<br>
&gt;&gt; &gt; I<br>
&gt;&gt; &gt; get some errors:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ========================================<br>
&gt;&gt; &gt; [Msg] Waiting for master.<br>
&gt;&gt; &gt; [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
&gt;&gt; &gt; [Msg] Publicized address: 192.168.1.35<br>
&gt;&gt; &gt; Load: 1134465760 cam_f1_left<br>
&gt;&gt; &gt; Load: 817915592 cam_f1_right<br>
&gt;&gt; &gt; LaserDump Constructor<br>
&gt;&gt; &gt; constructor motors<br>
&gt;&gt; &gt; -----------------constructor Pose3D<br>
&gt;&gt; &gt; --Ice.Config=f1Motors.cfg<br>
&gt;&gt; &gt; GetName() Pose3D: f1<br>
&gt;&gt; &gt; [Info] loaded Ice.Config file:<br>
&gt;&gt; &gt; /usr/local/share/jderobot/conf/f1Motors.cfg<br>
&gt;&gt; &gt; [Info] loaded Ice.Config file:<br>
&gt;&gt; &gt; /usr/local/share/jderobot/conf/f1Pose3D.cfg<br>
&gt;&gt; &gt; Motors Endpoints &gt; default -h localhost -p 9999<br>
&gt;&gt; &gt; Pose3D Endpoints default -h localhost -p 8998<br>
&gt;&gt; &gt;  laser: f1::laser<br>
&gt;&gt; &gt; strs[0]: f1<br>
&gt;&gt; &gt; [Info] loaded Ice.Config file:<br>
&gt;&gt; &gt; /usr/local/share/jderobot/conf/f1_laser.cfg<br>
&gt;&gt; &gt; Laser Endpoints &gt; default -h localhost -p 8996<br>
&gt;&gt; &gt; [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
&gt;&gt; &gt; path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
&gt;&gt; &gt; [Info] loaded Ice.Config file:<br>
&gt;&gt; &gt; /usr/local/share/jderobot/conf/cam_f1_left.cfg<br>
&gt;&gt; &gt; CameraGazebo cam_f1_left Endpoints &gt; default -h localhost -p 8995<br>
&gt;&gt; &gt; -! 05/23/16 20:46:47.819 warning: found unknown properties for object<br>
&gt;&gt; &gt; adapter `CameraGazebo&#39;:<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.Format<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.ImageHeight<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.ImageWidth<br>
&gt;&gt; &gt;        <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
&gt;&gt; &gt; Constructor CameraI<br>
&gt;&gt; &gt; safeThread<br>
&gt;&gt; &gt; [Info] loaded Ice.Config file:<br>
&gt;&gt; &gt; /usr/local/share/jderobot/conf/cam_f1_right.cfg<br>
&gt;&gt; &gt; CameraGazebo cam_f1_right Endpoints &gt; default -h localhost -p 8994<br>
&gt;&gt; &gt; -! 05/23/16 20:46:47.823 warning: found unknown properties for object<br>
&gt;&gt; &gt; adapter `CameraGazebo&#39;:<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.Format<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.ImageHeight<br>
&gt;&gt; &gt;        CameraGazebo.Camera.0.ImageWidth<br>
&gt;&gt; &gt;        <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
&gt;&gt; &gt; Constructor CameraI<br>
&gt;&gt; &gt; safeThread<br>
&gt;&gt; &gt; Traceback (most recent call last):<br>
&gt;&gt; &gt;   File &quot;main.py&quot;, line 6, in &lt;module&gt;<br>
&gt;&gt; &gt;     from gui.GUI import MainWindow<br>
&gt;&gt; &gt;   File &quot;JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py&quot;,<br>
&gt;&gt; &gt; line<br>
&gt;&gt; &gt; 1, in &lt;module&gt;<br>
&gt;&gt; &gt;     from gui.widgets.teleopWidget import TeleopWidget<br>
&gt;&gt; &gt;   File<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py&quot;,<br>
&gt;&gt; &gt; line 19, in &lt;module&gt;<br>
&gt;&gt; &gt;     from resources import resources_rc<br>
&gt;&gt; &gt; ImportError: cannot import name resources_rc<br>
&gt;&gt; &gt; ========================================<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   It seems it is going to be launched properly, but finally it crashes.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   Does anyone can help me? Thanks in advance,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   Julio<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   [1]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/tree/master/src/follow_line" rel="noreferrer" target="_blank">https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/tree/master/src/follow_line</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; <a href="http://www.juliovega.es" rel="noreferrer" target="_blank">http://www.juliovega.es</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Jde-developers mailing list<br>
&gt;&gt; &gt; <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
&gt;&gt; &gt; <a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" rel="noreferrer" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Universidad Rey Juan Carlos<br>
&gt;&gt; <a href="http://gsyc.urjc.es/jmplaza" rel="noreferrer" target="_blank">http://gsyc.urjc.es/jmplaza</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="http://www.juliovega.es" rel="noreferrer" target="_blank">http://www.juliovega.es</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Universidad Rey Juan Carlos<br>
<a href="http://gsyc.urjc.es/jmplaza" rel="noreferrer" target="_blank">http://gsyc.urjc.es/jmplaza</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><a href="http://www.juliovega.es" target="_blank">http://www.juliovega.es</a><br><br><br></div>
</div>