dentra/esphome-components

Unable to load component partitions

backinside opened this issue · 7 comments

Hi,

I'm having trouble adding coredump and partitions to my project
Am I missing something?

ERROR Unable to load component partitions:
Traceback (most recent call last):
File "C:\Users\Peter\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\loader.py", line 165, in lookup_module
module = importlib.import_module(f"esphome.components.{domain}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Peter\AppData\Local\Programs\Python\Python311\Lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "c:\Work\nspanel\test1.esphome\external_components\2f2a5be3\components\partitions_init
.py", line 8, in
from .const import *
File "c:\Work\nspanel\test1.esphome\external_components\2f2a5be3\components\partitions\const.py", line 3, in
DOMAIN = esp32.CONF_PARTITIONS
^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'esphome.components.esp32' has no attribute 'CONF_PARTITIONS'
WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
Failed config

partitions: [source emeletgyerek2.yaml:9]

Component not found: partitions.
coredump:

dentra commented

What version of EspHome are you using?

esphome version
Version: 2023.8.2

dentra commented

The component works on 2023.11.0 an up.

I'll see if it's possible to provide support for an older version. But I can't promise that it's possible.

oh I missed that, I'll update :)

dentra commented

Do you solve it?

Partially, now I'm running into issues, because I'm not using the esp-idf framework, but my features need the arduino framework
I'll dig in deeper next week

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.