acturtle / cashflower

An open-source Python framework for actuarial cash flow models
https://cashflower.acturtle.com
MIT License
38 stars 9 forks source link

Error during import - Numpy version issue #401

Closed zchmielewska closed 2 weeks ago

zchmielewska commented 3 weeks ago

The following error pops up while importing the package. (Windows 10 Home, Python 3.12)

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

The issue might be with the new version of numpy. We need to upgrade to version 2.

The package version requirements need to be updated:

requirements.txt

numpy==2.1.0
pandas==2.2.2

Then, the package needs to be built again.

zchmielewska commented 2 weeks ago

Implemented in v0.7.2