[osgeo4w-dev] [osgeo4w] #794: python3-statsmodels 0.12.1: incompatible with numpy 1.24.1

OSGeo4W trac_osgeo4w at osgeo.org
Wed May 24 02:29:58 PDT 2023


#794: python3-statsmodels 0.12.1: incompatible with numpy 1.24.1
-----------------------+---------------------------
Reporter:  tdanckaert  |      Owner:  osgeo4w-dev@…
    Type:  defect      |     Status:  new
Priority:  normal      |  Component:  Package
 Version:              |   Keywords:
-----------------------+---------------------------
 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'
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/794>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list