Opened 18 months ago
Closed 18 months ago
#794 closed defect (fixed)
python3-statsmodels 0.12.1: incompatible with numpy 1.24.1
Reported by: | tdanckaert | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | Package |
Version: | Keywords: | ||
Cc: |
Description
The current version of statsmodels uses numpy.MachAr()
, which is no longer available in numpy version 1.24.1. It looks like upgrading statsmodels to version 0.14 should fix this.
example stack trace:
>>> import statsmodels.api as sm Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\statsmodels\api.py", line 9, in <module> from . import regression File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\statsmodels\regression\__init__.py", line 1, in <module> from .linear_model import yule_walker File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\statsmodels\regression\linear_model.py", line 46, in <module> import statsmodels.base.model as base File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\statsmodels\base\model.py", line 16, in <module> from statsmodels.tools.numdiff import approx_fprime File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\statsmodels\tools\numdiff.py", line 51, in <module> EPS = np.MachAr().eps File "C:\PROGRA~1\QGIS32~1.3\apps\Python39\lib\site-packages\numpy\__init__.py", line 284, in __getattr__ raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'MachAr'
Change History (2)
comment:1 by , 18 months ago
comment:2 by , 18 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Update to 0.14.0-1