My code that I copied from my old computer is showing this error “Component not found: font.”, in this part of the code. In this sense, I have already installed the fonts in homeassistant and still the error persists.
If I read the error correctly, it is not the font files that are missing, but it does not understand font: itself. What version of esphome are you using? Also, the docs state you need additional packages. If you use the ESPHome addon you should already have it, if you have a different install you may not.
I have Esphome installed in a Windows environment. I can compile other devices. For some reason when I include the font component I get the error below. If I remove the font component it compiles and uploads the code without errors.
INFO ESPHome 2024.10.2
INFO Reading configuration clock.yaml...
INFO Detected timezone 'America/New_York'
Failed config
font: [source clock.yaml:99]
Please update your pillow installation to 10.2.0. (pip install "pillow==10.2.0").
- {}
If I run the pip install “pillow==10.2.0” command I get the following error:
Collecting pillow==10.2.0
Using cached pillow-10.2.0.tar.gz (46.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "C:\Users\Xavier\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
~~~~^^
File "C:\Users\Xavier\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Xavier\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Xavier\AppData\Local\Temp\pip-build-env-9rhntcnm\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Xavier\AppData\Local\Temp\pip-build-env-9rhntcnm\overlay\Lib\site-packages\setuptools\build_meta.py", line 303, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\Xavier\AppData\Local\Temp\pip-build-env-9rhntcnm\overlay\Lib\site-packages\setuptools\build_meta.py", line 319, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 31, in <module>
File "<string>", line 28, in get_version
KeyError: '__version__'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.