Closed andresliszt closed 1 year ago
If you delete the last line of the file pint_array.py (which calls compat.upcast_types) it might just work. It does for me.
I stumbled across this message after I figured out that commenting the last line in pint_array.py (line 995) indeed works.
This solution is a good work-around when doing local development, but in a CI pipeline where these dependencies are being installed and then immediately used (no human involved), this is not a useful work-around. Any other ideas? Like, if I lock down to a specific version of pint
, which one should I use?
EDIT: looks like using this in a requirements.txt suffices to get my automation running again: pint<0.21
Seems to be related to this commit in pint: https://github.com/hgrecco/pint/commit/77ff32a8e31164a9eedc4170924579b2911ed19e where the structure of pint's pandas integration was changed, and appending to upcast_types
is not necessary any more to get pint-pandas working properly. So probably pint-pandas needs to support both the old way of integration and the new way?
pint
released a new version0.21
and pint-pandas is having problems when you try to import itAttributeError: module 'pint.compat' has no attribute 'upcast_types'