You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a TypeError when trying to import pyam in my environment this morning. My installation code looks like this: !pip install ixmp4 numpy==1.23.5
!pip install pyam-iamc numpy==1.23.5
!pip install dask_expr numpy==1.23.5
import ixmp4
import pyam
Here’s the error trace: TypeError: cannot inherit frozen dataclass from a non-frozen one
The error appears to occur within the Python dataclasses module, specifically: TypeError: cannot inherit frozen dataclass from a non-frozen one
Any guidance on resolving this or insight into potential version incompatibilities would be much appreciated.
10 frames /usr/lib/python3.10/dataclasses.py in _process_class(cls, init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only, slots)
988 # Raise an exception if we're frozen, but none of our bases are.
989 if not any_frozen_base and frozen:
--> 990 raise TypeError('cannot inherit frozen dataclass from a '
991 'non-frozen one')
992
TypeError: cannot inherit frozen dataclass from a non-frozen one
The text was updated successfully, but these errors were encountered:
I also just encountered this issue today, it seems to be related to hgrecco/pint#1969 (even though it's not any more only affecting Python 3.13 as of today, see the latest comments there).
Hi guys,
I encountered a TypeError when trying to import pyam in my environment this morning. My installation code looks like this:
!pip install ixmp4 numpy==1.23.5
!pip install pyam-iamc numpy==1.23.5
!pip install dask_expr numpy==1.23.5
import ixmp4
import pyam
Here’s the error trace:
TypeError: cannot inherit frozen dataclass from a non-frozen one
The error appears to occur within the Python dataclasses module, specifically:
TypeError: cannot inherit frozen dataclass from a non-frozen one
Any guidance on resolving this or insight into potential version incompatibilities would be much appreciated.
Thank you!
...
TypeError Traceback (most recent call last)
in <cell line: 5>()
3 get_ipython().system('pip install dask_expr numpy==1.23.5')
4 import ixmp4
----> 5 import pyam
10 frames
/usr/lib/python3.10/dataclasses.py in _process_class(cls, init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only, slots)
988 # Raise an exception if we're frozen, but none of our bases are.
989 if not any_frozen_base and frozen:
--> 990 raise TypeError('cannot inherit frozen dataclass from a '
991 'non-frozen one')
992
TypeError: cannot inherit frozen dataclass from a non-frozen one
The text was updated successfully, but these errors were encountered: