[Osgeo4w-trac] [osgeo4w] #783: python3-statsmodels: truncated filenames

OSGeo4W trac_osgeo4w at osgeo.org
Mon Apr 17 02:06:32 PDT 2023


#783: python3-statsmodels: truncated filenames
-----------------------+---------------------------
Reporter:  tdanckaert  |      Owner:  osgeo4w-dev@…
    Type:  defect      |     Status:  new
Priority:  normal      |  Component:  Package
 Version:              |   Keywords:
-----------------------+---------------------------
 With current python3-statsmodels 0.12.1-1, `import statsmodels.api` fails
 with an `ImportError`:

 {{{ImportError: cannot import name '_univariate_diffuse' from
 'statsmodels.tsa.statespace._filters' (C:\OSGEO4~1.22\apps\Python39\lib
 \site-packages\statsmodels\tsa\statespace\_filters\__init__.py)}}}

 Closer inspection reveals that the file for module `_univariate_diffuse`
 is there, but it is a native extension module with an incomplete filename:
 the file is simply called `_univariate_diffuse.cp39-win` (or similar,
 recalling from memory).  Renaming the file to the full
 `_univariate_diffuse.cp39-win_amd64.pyd` fixes this particular import, but
 the we hit some other files with the same issue.

 In the end, I had to rename a number of native extension modules with
 truncated file names in `statsmodels.tsa.statespace` and its `_filters`
 and `_smoothers` subpackages, in order to be able to import the package.

 Possibly some filename length limit in the build process?
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/783>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list