Closed Zippy1999 closed 2 weeks ago
same problem here: it works if you downgrade flex parser to 0.3.1
You just beat me to it 👍
Looking at the code there was a change in master to bump flexparser but fix the affected classes
As the current version has 0.31> , we are getting the latest flexparser without the dataclass fixes
Also started getting the error suddenly today in python 3.10 and the timing coincides with the release of flexparser 0.4
Need to pin version 0.24.x to flexparser < 0.4.
Someone made a conda-forge patch for the current release https://anaconda.org/conda-forge/pint/files It should be fixed now on conda-forge
For anyone who wants a copy-paste, this downgrade is what has been suggested above, and works perfectly well for me too:
pip install --upgrade 'flexparser<0.4'
I apologize for the inconvenience. This change was needed due to a modification in the semantics of frozen dataclass in Python 3.13. It will be fixed with the release today.
I am closing this issue as is fixed in Pint 0.24.4 Please let me know if you encounter any problem.
@hgrecco apologies for the late reply - thanks for looking into this 👍 Keep up the excellent work, it is much appreciated.
I am seeing the same problem but on python
3.11.9
using pint 0.24.3Everything was working yesterday but after reinstalling the project's virtual env / deps this morning, I am seeing this error
The file in question throwing the issue is
lib/python3.11/site-packages/pint/delegates/txt_defparser/common.py
on line 23