Cannot reach the web server from my mac.
192.168.1.126:98 gives:
500: Internal Server Error
sudo python robot_web_server.py
sockjs.tornado will use json module
/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser_Streaming_Robot/www
Starting web server…
When I go to my mac on the same wifi network as the pi, it cannot find the server.
Here is what was in the logfile:
DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server…
ERROR:tornado.application:Uncaught exception GET / (192.168.1.118)
HTTPServerRequest(protocol=‘http’, host=‘192.168.1.126:98’, method=‘GET’, uri=’/’, version=‘HTTP/1.1’, remote_ip=‘192.168.1.118’, headers={‘Accept-Language’: ‘en-US,en;q=0.8’, ‘Accept-Encoding’: ‘gzip, deflate, sdch’, ‘Host’: ‘192.168.1.126:98’, ‘Accept’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8’, ‘User-Agent’: ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 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 1467, 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 719, in render
html = self.render_string(template_name, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 823, 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’
ERROR:tornado.access:500 GET / (192.168.1.118) 15.94ms
DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server…
What are these other addresses in my network being referenced: 192.168.1.118?
The pi is at .126