|
使用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 ==========================
|
|