- 积分
- 262
- 金钱
- 221
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 262
- 金钱
- 221
- HASS币
- 0
|
发表于 2024-11-6 19:41:50
|
显示全部楼层
仿制的过程中报错,我换成了ESP12E,请大佬们帮我看看是怎么问题?
INFO ESPHome 2024.10.2
INFO Reading configuration /config/esphome/bl0910.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 8, in <module>
sys.exit(main())
^^^^^^
File "/esphome/esphome/__main__.py", line 1018, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/__main__.py", line 1005, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/__main__.py", line 434, in command_compile
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "/esphome/esphome/__main__.py", line 195, in write_cpp
return write_cpp_file()
^^^^^^^^^^^^^^^^
File "/esphome/esphome/__main__.py", line 213, in write_cpp_file
writer.write_cpp(code_s)
File "/esphome/esphome/writer.py", line 352, in write_cpp
copy_src_tree()
File "/esphome/esphome/writer.py", line 244, in copy_src_tree
source_files += component.resources
^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/loader.py", line 110, in resources
for r in importlib.resources.files(self.package).iterdir()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
return from_package(get_package(package))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/resources/_common.py", line 65, in from_package
reader = spec.loader.get_resource_reader(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/resources/_adapters.py", line 29, in get_resource_reader
return CompatibilityFiles(self.spec)._native()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/resources/_adapters.py", line 155, in _native
reader = self._reader
^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/resources/_adapters.py", line 149, in _reader
return self.spec.loader.get_resource_reader(self.spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1380, in get_resource_reader
File "/usr/lib/python3.11/importlib/resources/readers.py", line 110, in __init__
raise ValueError('Invalid path')
ValueError: Invalid path |
|