|
发表于 2020-3-5 10:56:44
|
显示全部楼层
请教大佬这个问题
pi@raspberrypi:~ $ pip2 install tornado esptool
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: tornado in ./.local/lib/python2.7/site-packages (5.1.1)
Requirement already satisfied: esptool in ./.local/lib/python2.7/site-packages (2.7)
Requirement already satisfied: backports-abc>=0.4 in ./.local/lib/python2.7/site-packages (from tornado) (0.5)
Requirement already satisfied: singledispatch in ./.local/lib/python2.7/site-packages (from tornado) (3.4.0.3)
Requirement already satisfied: futures in ./.local/lib/python2.7/site-packages (from tornado) (3.3.0)
Requirement already satisfied: ecdsa in ./.local/lib/python2.7/site-packages (from esptool) (0.15)
Requirement already satisfied: pyaes in ./.local/lib/python2.7/site-packages (from esptool) (1.6.1)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python2.7/dist-packages (from esptool) (3.4)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from singledispatch->tornado) (1.12.0)
pi@raspberrypi:~ $ esphome config/ dashboard
WARNING You're using ESPHome with python 2. Support for python 2 is deprecated and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 or higher.
INFO Starting dashboard web server on port 6052 and configuration dir config/...
INFO 101 GET /ace (::1) 2.45ms
INFO Running command 'esphome --dashboard -q config/ vscode --ace'
INFO 304 GET / (::1) 101.07ms
INFO 101 GET /ace (::1) 4.21ms
INFO Running command 'esphome --dashboard -q config/ vscode --ace'
INFO 101 GET /upload (::1) 2.76ms
ERROR Uncaught exception GET /upload (::1)
HTTPServerRequest(protocol='http', host='localhost:6052', method='GET', uri='/upload', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/tornado/websocket.py", line 546, in _run_callback
result = callback(*args, **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 127, in decorator
return func(self, *args, **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 199, in on_message
handlers[type_](self, json_message)
File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 206, in handle_spawn
command = self.build_command(json_message)
File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 272, in build_command
config_file = settings.rel_path(json_message['configuration'])
File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 95, in rel_path
return os.path.join(self.config_dir, *args)
File "/usr/lib/python2.7/posixpath.py", line 68, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
|
|