My GoPiGo3
doesn’t work with Browser_Streaming_Robot.py
.
I am trying to access the camera stream from internet. but error occurs:
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
sockjs.tornado will use json module
/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser_Streaming_Robot/www
Starting web server...
Uncaught exception GET / (192.168.1.5)
HTTPServerRequest(protocol='http', host='192.168.1.18:98', method='GET', uri='/', version='HTTP/1.1', remote_ip='192.168.1.5', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.18:98', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1509, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/pi/Desktop/wj/Browser_Streaming_Robot/robot_web_server.py", line 191, in get
self.render( webPath + "/index.html" )
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 724, in render
html = self.render_string(template_name, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 862, in render_string
t = loader.load(template_name)
File "/usr/local/lib/python2.7/dist-packages/tornado/template.py", line 427, in load
self.templates[name] = self._create_template(name)
File "/usr/local/lib/python2.7/dist-packages/tornado/template.py", line 454, 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/www/index.html'
500 GET / (192.168.1.5) 62.39ms
Uncaught exception GET / (192.168.1.5)
HTTPServerRequest(protocol='http', host='192.168.1.18:98', method='GET', uri='/', version='HTTP/1.1', remote_ip='192.168.1.5', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.18:98', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1509, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/pi/Desktop/wj/Browser_Streaming_Robot/robot_web_server.py", line 191, in get
self.render( webPath + "/index.html" )
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 724, in render
html = self.render_string(template_name, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 862, in render_string
t = loader.load(template_name)
File "/usr/local/lib/python2.7/dist-packages/tornado/template.py", line 427, in load
self.templates[name] = self._create_template(name)
File "/usr/local/lib/python2.7/dist-packages/tornado/template.py", line 454, 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/www/index.html'
500 GET / (192.168.1.5) 26.86ms