Skip to content

Conversation

@nitbharambe
Copy link
Member

@nitbharambe nitbharambe commented Dec 9, 2025

Added at #336

We should probably create a new action to run pipeline without dev dependencies. The dev dependencies here can actually create a very different set of dependencies compared to non group one.

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
@nitbharambe nitbharambe added the bug Something isn't working label Dec 9, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@figueroa1395
Copy link
Member

I believe the failing CI corresponds to a regression that was already fixed in the main PGM repo. We'll have to wait for the update here.

@mgovers
Copy link
Member

mgovers commented Dec 9, 2025

I believe the failing CI corresponds to a regression that was already fixed in the main PGM repo. We'll have to wait for the update here.

No this is the Python 3.14.1 bug on dataclass. If you look at the final couple lines in the stacktrace:

 /Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/networkx/utils/__init__.py:7: in <module>
    from networkx.utils.configs import *
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/networkx/utils/configs.py:8: in <module>
    @dataclass(init=False, eq=False, slots=True, kw_only=True, match_args=False)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1426: in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1234: in _process_class
    cls = _add_slots(cls, frozen, weakref_slot, fields)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1401: in _add_slots
    init_annotate = newcls.__init__.__annotate__
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: 'wrapper_descriptor' object has no attribute '__annotate__'. Did you mean: '__getstate__'?

@mgovers
Copy link
Member

mgovers commented Dec 9, 2025

Please also look at PowerGridModel/power-grid-model#1206 - migrating to uv on PGM-IO as well should solve this whole ordeal regarding Python 3.14.1

@figueroa1395
Copy link
Member

I believe the failing CI corresponds to a regression that was already fixed in the main PGM repo. We'll have to wait for the update here.

No this is the Python 3.14.1 bug on dataclass. If you look at the final couple lines in the stacktrace:

 /Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/networkx/utils/__init__.py:7: in <module>
    from networkx.utils.configs import *
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/networkx/utils/configs.py:8: in <module>
    @dataclass(init=False, eq=False, slots=True, kw_only=True, match_args=False)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1426: in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1234: in _process_class
    cls = _add_slots(cls, frozen, weakref_slot, fields)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/dataclasses.py:1401: in _add_slots
    init_annotate = newcls.__init__.__annotate__
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: 'wrapper_descriptor' object has no attribute '__annotate__'. Did you mean: '__getstate__'?

Thanks for the correction. I overlooked it 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants