[SOLVED] Browser Streaming Robot problems

Hi,
We bought the GoPiGo some months ago. We have tried most of the projects succesfuly, but now we’re having problems to make the Browser Streaming Robot work. At the beginning it worked well, but since last days of August we’re getting this error:

pi@raspberrypi ~ cd Desktop/GoPiGo/Software/Python/Examples/Browser\ Streaming\ Robot/ pi@raspberrypi ~/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot sudo chmod +x robot_web_server.py
pi@raspberrypi ~/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot
$ sudo ./robot_web_server.py
sockjs.tornado will use json module
/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/www
Starting web server…
Uncaught exception GET / (10.10.10.181)
HTTPServerRequest(protocol=‘http’, host=‘10.10.10.182’, method=‘GET’, uri=’/’, version=‘HTTP/1.1’, remote_ip=‘10.10.10.181’, headers={‘Connection’: ‘Keep-Alive’, ‘Accept-Language’: ‘es-ES,es;q=0.5’, ‘Accept-Encoding’: ‘gzip, deflate’, ‘Host’: ‘10.10.10.182’, ‘Accept’: ‘text/html, application/xhtml+xml, image/jxr, /’, ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240’})
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 1332, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “./robot_web_server.py”, line 180, in get
self.render( webPath + “/index.html” )
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 665, in render
html = self.render_string(template_name, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 769, in render_string
t = loader.load(template_name)
File “/usr/local/lib/python2.7/dist-packages/tornado/template.py”, line 343, in load
self.templates[name] = self._create_template(name)
File “/usr/local/lib/python2.7/dist-packages/tornado/template.py”, line 370, in _create_template
with open(path, “rb”) as f:
IOError: [Errno 2] No such file or directory: '/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/www/index.html’
500 GET / (10.10.10.181) 57.34ms

We’ve tested in different networks and we always get the same error. We have tested the camera with the raspistill -v -o test.jpg
command and it works properly so we think it is not a camera issue.

Looking for your help,
Franco

Hey,
Looks like a bug got into the code-base when we were cleaning it the last time. We just cleaned it up and there was a just an error in the file-path to a HTML file: https://github.com/DexterInd/GoPiGo/blob/master/Software/Python/Examples/Browser%20Streaming%20Robot/robot_web_server.py#L92.

You should do a pull for the git repo and try again.

Do let us know if this helps.

-Karan

Hi Karan,
We’ve done what you have told us and now we can control the robot but we have no image, we get the following error:
pi@raspberrypi ~ cd Desktop/GoPiGo/Software/Python/Examples/Browser\ Streaming\ Robot/ pi@raspberrypi ~/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot sudo chmod +x robot_web_server.py
pi@raspberrypi ~/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot
$ sudo ./robot_web_server.py
sockjs.tornado will use json module
/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/www
Starting web server…
200 GET / (10.10.10.181) 86.97ms
200 GET /css/style.css (10.10.10.181) 128.71ms
200 GET /css/modal.css (10.10.10.181) 16.16ms
200 GET /js/jquery.joystick.js (10.10.10.181) 17.78ms
200 GET /images/ajax-loader.gif (10.10.10.181) 19.45ms
200 GET /js/sockjs-0.3.min.js (10.10.10.181) 340.49ms
200 GET /js/jquery.js (10.10.10.181) 1826.87ms
200 GET /robot_control/info (10.10.10.181) 9.19ms
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Error: Failed to create camera component
Error: Unable to create camera component

Hi again,
The camera works fine, we were not connecting it to the correct port :stuck_out_tongue:
Thanks for your help Karan!

Hey,
Glad to hear that it worked.

-Karan