Crash after a fresh install with python 3.10
(test) vre-language$ python --version
Python 3.10.12
(test) vre-language$ texts
Traceback (most recent call last):
File "test/bin/texts", line 5, in <module>
from virtmat.language.cli import texts
File "test/lib/python3.10/site-packages/virtmat/language/cli/__init__.py", line 3, in <module>
from . import run_session
File "test/lib/python3.10/site-packages/virtmat/language/cli/run_session.py", line 8, in <module>
from virtmat.language.interpreter.session_manager import SessionManager
File "test/lib/python3.10/site-packages/virtmat/language/interpreter/session_manager.py", line 12, in <module>
from virtmat.language.metamodel.properties import add_properties
File "test/lib/python3.10/site-packages/virtmat/language/metamodel/properties.py", line 3, in <module>
from virtmat.language.constraints.typechecks import add_type_properties
File "test/lib/python3.10/site-packages/virtmat/language/constraints/typechecks.py", line 10, in <module>
from virtmat.language.utilities.amml import get_params_units, get_calculator_class
File "test/lib/python3.10/site-packages/virtmat/language/utilities/amml.py", line 7, in <module>
import pint_pandas
File "test/lib/python3.10/site-packages/pint_pandas/__init__.py", line 3, in <module>
from .pint_array import PintArray, PintType
File "test/lib/python3.10/site-packages/pint_pandas/pint_array.py", line 198, in <module>
np.complex128: pd.core.dtypes.dtypes.PandasDtype("complex128"),
AttributeError: module 'pandas.core.dtypes.dtypes' has no attribute 'PandasDtype'
Obviously this is an incompatibility between the installed packages pint-pandas
and pandas
. After removing the version pinning of pint, uninstalling vre-language, pandas, pint-pandas and pint, and then installing vre-language again solves the issue.