Created
July 26, 2021 20:18
-
-
Save brotherdust/5711a9e7693a32b7fb626e8fd2b5f265 to your computer and use it in GitHub Desktop.
ESPHome compile output with Platform.IO config flags pull request patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ esphome compile em_main.yaml | |
INFO Reading configuration em_main.yaml... | |
INFO Detected timezone 'MST' with UTC offset -7 and daylight saving time from 13 March 02:00:00 to 06 November 02:00:00 | |
INFO Generating C++ source... | |
Traceback (most recent call last): | |
File "/home/jarad/.pyenv/versions/esphome/bin/esphome", line 8, in <module> | |
sys.exit(main()) | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/__main__.py", line 750, in main | |
return run_esphome(sys.argv) | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/__main__.py", line 737, in run_esphome | |
rc = POST_CONFIG_ACTIONS[args.command](args, config) | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/__main__.py", line 292, in command_compile | |
exit_code = write_cpp(config) | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/__main__.py", line 145, in write_cpp | |
return write_cpp_file() | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/__main__.py", line 163, in write_cpp_file | |
writer.write_cpp(code_s) | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/writer.py", line 437, in write_cpp | |
copy_src_tree() | |
File "/home/jarad/.pyenv/versions/3.8.10/envs/esphome/lib/python3.8/site-packages/esphome/writer.py", line 370, in copy_src_tree | |
if os.path.splitext(path)[1] in HEADER_FILE_EXTENSIONS: | |
File "/home/jarad/.pyenv/versions/3.8.10/lib/python3.8/posixpath.py", line 118, in splitext | |
p = os.fspath(p) | |
TypeError: expected str, bytes or os.PathLike object, not SourceFile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment