Repro using the "test.qif" from this repo:
from quiffen import Qif
qif = Qif.parse('qif/test.qif', day_first=False)
print(qif.accounts)
(.venv) [user@box mydir]$ python3 process.py
Traceback (most recent call last):
File "mydir/process.py", line 1, in <module>
from quiffen import Qif
File "mydir/.venv/lib/python3.12/site-packages/quiffen/__init__.py", line 18, in <module>
from quiffen.core.qif import ParserException, Qif, QifDataType
File "mydir/.venv/lib/python3.12/site-packages/quiffen/core/qif.py", line 21, in <module>
import pandas as pd
File "mydir/.venv/lib/python3.12/site-packages/pandas/__init__.py", line 22, in <module>
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "mydir/.venv/lib/python3.12/site-packages/pandas/compat/__init__.py", line 18, in <module>
from pandas.compat.numpy import (
File "mydir/.venv/lib/python3.12/site-packages/pandas/compat/numpy/__init__.py", line 4, in <module>
from pandas.util.version import Version
File "mydir/.venv/lib/python3.12/site-packages/pandas/util/__init__.py", line 2, in <module>
from pandas.util._decorators import ( # noqa:F401
File "mydir/.venv/lib/python3.12/site-packages/pandas/util/_decorators.py", line 14, in <module>
from pandas._libs.properties import cache_readonly
File "mydir/.venv/lib/python3.12/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
pip3 install numpy==1.26.4
or
pip3 install "numpy<2"
Reference: numpy/numpy#26710
This might be worth adding as a documentation note in the README. That said, the existence of this ticket might also serve as documentation enough.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too