『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1786|回复: 0

[求助] esphome出现python3.6报错问题

[复制链接]

69

主题

691

帖子

4242

积分

论坛元老

Rank: 8Rank: 8

积分
4242
金钱
3546
HASS币
80
发表于 2020-3-19 00:16:20 | 显示全部楼层 |阅读模式
使用esphome进行upload时,总是出现python3.6报错,是什么问题,怎么解决,请求大佬们指点,非常感谢。


INFO Reading configuration /config/esphome/warm_water.yaml...INFO Generating C++ source...INFO Compiling app...INFO Running:  platformio run -d /config/esphome/pzemProcessing pzem (board: nodemcuv2; framework: arduino; platform: [email protected])--------------------------------------------------------------------------------HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB FlashLooking for ESPAsyncWebServer-esphome library in registryLibraryManager: Installing id=6758 @ 1.2.6Downloading  [#-----------------------------------]    5%Downloading  [##----------------------------------]    5%Downloading  [##----------------------------------]    6%Downloading  [##----------------------------------]    7%Downloading  [##----------------------------------]    8%Downloading  [###---------------------------------]    8%Downloading  [###---------------------------------]    9%Downloading  [###---------------------------------]   10%Downloading  [###---------------------------------]   10%  00:00:11Downloading  [####--------------------------------]   11%  00:00:11Downloading  [####--------------------------------]   12%  00:00:11Downloading  [####--------------------------------]   13%  00:00:11Downloading  [#####-------------------------------]   13%  00:00:11Downloading  [#####-------------------------------]   14%  00:00:11Downloading  [#####-------------------------------]   15%  00:00:11Downloading  [#####-------------------------------]   15%  00:00:10Downloading  [#####-------------------------------]   16%  00:00:10Downloading  [######------------------------------]   16%  00:00:10Downloading  [######------------------------------]   17%  00:00:10Downloading  [######------------------------------]   18%  00:00:10Downloading  [######------------------------------]   19%  00:00:10Downloading  [#######-----------------------------]   19%  00:00:10Downloading  [#######-----------------------------]   20%  00:00:10Downloading  [#######-----------------------------]   21%  00:00:09Downloading  [#######-----------------------------]   22%  00:00:09Downloading  [########----------------------------]   22%  00:00:09Downloading  [########----------------------------]   23%  00:00:09Downloading  [########----------------------------]   24%  00:00:09StopIteration: :  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/main.py", line 126:    env.SConscript("$BUILD_SCRIPT")  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 605:    return _SConscript(self.fs, *files, **subst_kw)  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 286:    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)  File "/root/.platformio/platforms/espressif8266/builder/main.py", line 203:    target_elf = env.BuildProgram()  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:    return self.method(*nargs, **kwargs)  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py", line 122:    _build_project_deps(env)  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py", line 47:    project_lib_builder = env.ConfigureProjectLibBuilder()  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:    return self.method(*nargs, **kwargs)  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py", line 1043:    project.install_dependencies()  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py", line 878:    lm.install(uri)  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/lib.py", line 359:    force=force)  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 703:    pkg_dir = self._install_from_piorepo(name, requirements)  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/lib.py", line 220:    if app.get_setting("strict_ssl") else dl_data['url'], requirements)  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 481:    dlpath = self.download(url, tmp_dir, sha1)  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 179:    fd.start(with_progress=with_progress)  File "/usr/local/lib/python3.6/dist-packages/platformio/downloader.py", line 83:    f.write(next(itercontent))========================== [FAILED] Took 4.79 seconds ==========================
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 20:55 , Processed in 0.045620 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表