Skip to content

Compatibility issue with pydantic 2.12.0 (PACMAN-1179) #97

@tpwrules

Description

@tpwrules

The Component Manager version

v2.4.0

ESP-IDF Version

v5.3.1

python Version

3.10.12

Operating System

Ubuntu 22 (github CI)

Browser (for https://components.espressif.com Issues)

No response

Description

     Traceback (most recent call last):
  
      File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/idf_component_manager/prepare_components/__main__.py", line 6, in <module>
        main()
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/idf_component_manager/prepare_components/prepare.py", line 88, in main
        setup_logging()
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/idf_component_tools/logging.py", line 106, in setup_logging
        if ComponentManagerSettings().DEBUG_MODE:
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/pydantic_settings/main.py", line 193, in __init__
        super().__init__(
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/pydantic/main.py", line 250, in __init__
        validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
      File "/home/runner/.espressif/python_env/idf5.3_py3.10_env/lib/python3.10/site-packages/idf_component_tools/environment.py", line 296, in fallback_to_default
        if field.validation_alias:
  
    AttributeError: 'NoneType' object has no attribute 'validation_alias'

To Reproduce

Difficult to share, sorry.

Expected behaviour

No crash

Additional info

No response

I have checked existing issues and online Documentation

  • I confirm I have checked existing issues and online Documentation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions