pint-pandas import error ModuleNotFoundError: No module named 'pint.quantity' (pint is imported)

Question:

I am trying to use pint-pandas, but it errors on import with a ModuleNotFoundError: No module named 'pint.quantity'.
MRE from the pint-pandas github ‘basic example’ (because it errors on import pint_pandas, i call the version numbers direct)
FWIW: pandas itself work fine. I work in Anaconda jupyter notebook, with packages installed using conda install.
Versions: python = 3.9.13 , pandas = 1.4.4 (now 1.5.1) , pint = 0.20.1 , pint-pandas = 0.2

from platform import python_version
import pandas as pd
import pint
import pint_pandas

enter image description here

Asked By: Robbes

||

Answers:

After flagging this issue to pint-pandas team on github, the issue was resolved and package now updated to 0.3. Thanks!

Answered By: Robbes
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.