Skip to content

Support Python 3.11 #8287

Closed
Closed

Description

@EwoutH

Currently Python 3.11 isn't fully supported in statsmodels yet, including testing in CI and publishing wheels to PyPI.

Python 3.11 is now in beta and feature stable. By testing Python 3.11 in CI we can catch errors and bugs before Python 3.11 will become stable, and packages dependent on statsmodels can start working on their Python 3.11 support. statsmodels is one of the most used packages and a package on which many other packages depend, so early support will help speed up Python 3.11 adoption.

Python 3.11 is expected to be released as stable in October 2022, with many new features including:

  • PEP 657 -- Include Fine-Grained Error Locations in Tracebacks
  • PEP 654 -- Exception Groups and except*
  • PEP 673 -- Self Type
  • PEP 646-- Variadic Generics
  • PEP 680-- tomllib: Support for Parsing TOML in the Standard Library
  • PEP 675-- Arbitrary Literal String Type
  • PEP 655-- Marking individual TypedDict items as required or potentially-missing
  • bpo-46752-- Introduce task groups to asyncio
  • The Faster Cpython Project is already yielding some exciting results. Python 3.11 is up to 10-60% faster than Python 3.10. On average, we measured a 1.22x speedup on the standard benchmark suite. See Faster CPython for details.

Among others, Numpy and SciPy and can now be built on their main branches with Python 3.11, and Pandas is also working on their 3.11 support.

Activity

  1. bashtage commented on May 22, 2022

    @bashtage
    Member

    Python 3.11 support will likely only be available once NumPy, SciPy, Cython and Pandas have wheels available for 3.11, which won't happen until their first release after 3.11.0.

  2. EwoutH commented on May 23, 2022

    @EwoutH
    ContributorAuthor

    We could start with testing in CI and fixing bugs that come up earlier than that, right?

    NumPy, SciPy and Cython built are now building and testing fine on Python 3.11, as for Pandas we can track their progress in pandas-dev/pandas#46680.

    statsmodels is a low level dependency for many projects, so the sooner Python 3.11 is supported the sooner those other project can work on their support.

  3. bashtage commented on May 23, 2022

    @bashtage
    Member

    We are already testing against pre-releases of NumPy, Scipy and pandas. We don't directly use the Python C API afaik, and so as long as Cython is generating correct C code, we won't have any issues. I don't think it worth the effort. This said, if you want to setup a CI using pre-prelease wheels for NumPy and Python 3.11 beta, I would accept the PR.

  4. hrnciar commented on Jun 29, 2022

    @hrnciar

    In Fedora we are rebuilding all packages with Python 3.11. statsmodels fails with:

    statsmodels/tsa/_innovations.c: In function ‘__Pyx_PyErr_GetTopmostException’:
    statsmodels/tsa/_innovations.c:20057:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20057 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
          |                     ^~
    statsmodels/tsa/_innovations.c:20057:51: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20057 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
          |                                                   ^~
    statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionSave’:
    statsmodels/tsa/_innovations.c:20071:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20071 |     *type = exc_info->exc_type;
          |                     ^~
    statsmodels/tsa/_innovations.c:20073:19: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20073 |     *tb = exc_info->exc_traceback;
          |                   ^~
    statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionReset’:
    statsmodels/tsa/_innovations.c:20087:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20087 |     tmp_type = exc_info->exc_type;
          |                        ^~
    statsmodels/tsa/_innovations.c:20089:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20089 |     tmp_tb = exc_info->exc_traceback;
          |                      ^~
    statsmodels/tsa/_innovations.c:20090:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20090 |     exc_info->exc_type = type;
          |             ^~
    statsmodels/tsa/_innovations.c:20092:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20092 |     exc_info->exc_traceback = tb;
          |             ^~
    statsmodels/tsa/_innovations.c: In function ‘__Pyx__GetException’:
    statsmodels/tsa/_innovations.c:20149:28: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20149 |         tmp_type = exc_info->exc_type;
          |                            ^~
    statsmodels/tsa/_innovations.c:20151:26: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20151 |         tmp_tb = exc_info->exc_traceback;
          |                          ^~
    statsmodels/tsa/_innovations.c:20152:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20152 |         exc_info->exc_type = local_type;
          |                 ^~
    statsmodels/tsa/_innovations.c:20154:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20154 |         exc_info->exc_traceback = local_tb;
          |                 ^~
    statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionSwap’:
    statsmodels/tsa/_innovations.c:20187:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20187 |     tmp_type = exc_info->exc_type;
          |                        ^~
    statsmodels/tsa/_innovations.c:20189:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20189 |     tmp_tb = exc_info->exc_traceback;
          |                      ^~
    statsmodels/tsa/_innovations.c:20190:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
    20190 |     exc_info->exc_type = *type;
          |             ^~
    statsmodels/tsa/_innovations.c:20192:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
    20192 |     exc_info->exc_traceback = *tb;
          |             ^~
    statsmodels/tsa/_innovations.c: In function ‘__Pyx_AddTraceback’:
    statsmodels/tsa/_innovations.c:465:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
      465 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
          |                                                              ^~
    statsmodels/tsa/_innovations.c:20798:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
    20798 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    

    See https://docs.python.org/3.11/whatsnew/3.11.html#other-cpython-implementation-changes

    The interpreter state’s representation of handled exceptions (a.k.a exc_info, or _PyErr_StackItem) now has only the exc_value field, exc_type and exc_traceback have been removed as their values can be derived from exc_value.

    For a full log see: https://kojipkgs.fedoraproject.org//work/tasks/8082/88568082/build.log

  5. bashtage commented on Jun 29, 2022

    @bashtage
    Member

    Needs upstream fix in Cython.

  6. hrnciar commented on Jun 29, 2022

    @hrnciar

    I've managed to build it. Cython is fixed, but sources need to be regenerated.

  7. EwoutH commented on Oct 5, 2022

    @EwoutH
    ContributorAuthor

    We're a far months further, so here a quick update on the ecosystem!

    Python 3.11 is now ABI stable with the release candidate series, which means wheels can be uploaded to PyPI!

    Python 3.11 support will likely only be available once NumPy, SciPy, Cython and Pandas have wheels available for 3.11

    We're quite far now:

    Needs upstream fix in Cython.

    This is in since Cython 0.29.29!

  8. jarrodmillman commented on Oct 9, 2022

    @jarrodmillman
    Contributor
  9. EwoutH commented on Oct 9, 2022

    @EwoutH
    ContributorAuthor

    It looks like currently an error building 'statsmodels.tsa._innovations' extension appears:

    Error log building Statsmodels with Python 3.11 on Ubuntu:
        UPDATING build/lib.linux-x86_64-cpython-311/statsmodels/_version.py
          set build/lib.linux-x86_64-cpython-311/statsmodels/_version.py to '0.13.2'
          running build_ext
          building 'statsmodels.tsa._stl' extension
          Warning: Can't read registry to find the necessary compiler setting
          Make sure that Python modules winreg, win32api or win32con are installed.
          INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
          
          creating build/temp.linux-x86_64-cpython-311
          creating build/temp.linux-x86_64-cpython-311/statsmodels
          creating build/temp.linux-x86_64-cpython-311/statsmodels/tsa
          INFO: compile options: '-DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c'
          INFO: gcc: statsmodels/tsa/_stl.c
          INFO: gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib build/temp.linux-x86_64-cpython-311/statsmodels/tsa/_stl.o -L/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/lib -L/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -lnpymath -lm -o build/lib.linux-x86_64-cpython-311/statsmodels/tsa/_stl.cpython-311-x86_64-linux-gnu.so
          building 'statsmodels.tsa.holtwinters._exponential_smoothers' extension
          INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
          
          creating build/temp.linux-x86_64-cpython-311/statsmodels/tsa/holtwinters
          INFO: compile options: '-DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c'
          INFO: gcc: statsmodels/tsa/holtwinters/_exponential_smoothers.c
          INFO: gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib build/temp.linux-x86_64-cpython-311/statsmodels/tsa/holtwinters/_exponential_smoothers.o -L/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/lib -L/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -lnpymath -lm -o build/lib.linux-x86_64-cpython-311/statsmodels/tsa/holtwinters/_exponential_smoothers.cpython-311-x86_64-linux-gnu.so
          building 'statsmodels.tsa.exponential_smoothing._ets_smooth' extension
          INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
          
          creating build/temp.linux-x86_64-cpython-311/statsmodels/tsa/exponential_smoothing
          INFO: compile options: '-DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c'
          INFO: gcc: statsmodels/tsa/exponential_smoothing/_ets_smooth.c
          INFO: gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib build/temp.linux-x86_64-cpython-311/statsmodels/tsa/exponential_smoothing/_ets_smooth.o -L/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/lib -L/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib -lnpymath -lm -o build/lib.linux-x86_64-cpython-311/statsmodels/tsa/exponential_smoothing/_ets_smooth.cpython-311-x86_64-linux-gnu.so
          building 'statsmodels.tsa._innovations' extension
          INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
          
          INFO: compile options: '-DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c'
          INFO: gcc: statsmodels/tsa/_innovations.c
          statsmodels/tsa/_innovations.c:16924:3: warning: excess elements in struct initializer
          16924 |   0, /*tp_inline_values_offset*/
                |   ^
          statsmodels/tsa/_innovations.c:16924:3: note: (near initialization for ‘__pyx_type___pyx_array’)
          statsmodels/tsa/_innovations.c:17046:3: warning: excess elements in struct initializer
          17046 |   0, /*tp_inline_values_offset*/
                |   ^
          statsmodels/tsa/_innovations.c:17046:3: note: (near initialization for ‘__pyx_type___pyx_MemviewEnum’)
          statsmodels/tsa/_innovations.c:17310:3: warning: excess elements in struct initializer
          17310 |   0, /*tp_inline_values_offset*/
                |   ^
          statsmodels/tsa/_innovations.c:17310:3: note: (near initialization for ‘__pyx_type___pyx_memoryview’)
          statsmodels/tsa/_innovations.c:17459:3: warning: excess elements in struct initializer
          17459 |   0, /*tp_inline_values_offset*/
                |   ^
          statsmodels/tsa/_innovations.c:17459:3: note: (near initialization for ‘__pyx_type___pyx_memoryviewslice’)
          statsmodels/tsa/_innovations.c: In function ‘__Pyx_PyBytes_Equals’:
          statsmodels/tsa/_innovations.c:19791:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
          19791 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
                |             ^~~~~
          In file included from /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/bytesobject.h:62,
                           from /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/Python.h:50,
                           from statsmodels/tsa/_innovations.c:39:
          /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
              7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
                |                                   ^~~~~~~~
          statsmodels/tsa/_innovations.c:19792:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
          19792 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
                |             ^~~~~
          In file included from /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/bytesobject.h:62,
                           from /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/Python.h:50,
                           from statsmodels/tsa/_innovations.c:39:
          /opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
              7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
                |                                   ^~~~~~~~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx_PyErr_GetTopmostException’:
          statsmodels/tsa/_innovations.c:20057:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20057 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
                |                     ^~
          statsmodels/tsa/_innovations.c:20057:51: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20057 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
                |                                                   ^~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionSave’:
          statsmodels/tsa/_innovations.c:20071:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20071 |     *type = exc_info->exc_type;
                |                     ^~
          statsmodels/tsa/_innovations.c:20073:19: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20073 |     *tb = exc_info->exc_traceback;
                |                   ^~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionReset’:
          statsmodels/tsa/_innovations.c:20087:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20087 |     tmp_type = exc_info->exc_type;
                |                        ^~
          statsmodels/tsa/_innovations.c:20089:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20089 |     tmp_tb = exc_info->exc_traceback;
                |                      ^~
          statsmodels/tsa/_innovations.c:20090:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20090 |     exc_info->exc_type = type;
                |             ^~
          statsmodels/tsa/_innovations.c:20092:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20092 |     exc_info->exc_traceback = tb;
                |             ^~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx__GetException’:
          statsmodels/tsa/_innovations.c:20149:28: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20149 |         tmp_type = exc_info->exc_type;
                |                            ^~
          statsmodels/tsa/_innovations.c:20151:26: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20151 |         tmp_tb = exc_info->exc_traceback;
                |                          ^~
          statsmodels/tsa/_innovations.c:20152:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20152 |         exc_info->exc_type = local_type;
                |                 ^~
          statsmodels/tsa/_innovations.c:20154:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20154 |         exc_info->exc_traceback = local_tb;
                |                 ^~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx__ExceptionSwap’:
          statsmodels/tsa/_innovations.c:20187:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20187 |     tmp_type = exc_info->exc_type;
                |                        ^~
          statsmodels/tsa/_innovations.c:20189:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20189 |     tmp_tb = exc_info->exc_traceback;
                |                      ^~
          statsmodels/tsa/_innovations.c:20190:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
          20190 |     exc_info->exc_type = *type;
                |             ^~
          statsmodels/tsa/_innovations.c:20192:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
          20192 |     exc_info->exc_traceback = *tb;
                |             ^~
          statsmodels/tsa/_innovations.c: In function ‘__Pyx_AddTraceback’:
          statsmodels/tsa/_innovations.c:465:62: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
            465 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
                |                                                              ^~
          statsmodels/tsa/_innovations.c:20798:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
          20798 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
                |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
          error: Command "gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/tmp/pip-build-env-a7od52yy/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c statsmodels/tsa/_innovations.c -o build/temp.linux-x86_64-cpython-311/statsmodels/tsa/_innovations.o" failed with exit status 1
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for statsmodels
    

    @bashtage Would you know how to resolve this issue?

  10. EwoutH commented on Oct 9, 2022

    @EwoutH
    ContributorAuthor

    I also opened an draft PR which tests Python 3.11 on the Azure pipelines CI, so that all errors can be detected there. See the first run here.

    Edit: Current CI failures and errors on Ubuntu

  11. bashtage commented on Oct 9, 2022

    @bashtage
    Member

    I would report the compilation issue to Cython, since this works fine on Python 3.8-3.10.

  12. bashtage commented on Oct 9, 2022

    @bashtage
    Member

    All of the referenced code is the type either provided by Python or Cython.

  13. EwoutH commented on Oct 9, 2022

    @EwoutH
    ContributorAuthor

    Thanks for getting back! I found an abandoned PR over at the Cython repo that looked a lot like the error we're experiencing, so I asked if it could be the same issue.

    Edit: It could be that's already fixed in the master branch. Testing Cython 3.0.0a11 now, see this Azure CI run.

  14. da-woods commented on Oct 9, 2022

    @da-woods
  15. da-woods commented on Oct 9, 2022

    @da-woods

    If I try to install pip install statmodels with Python 3.11 I get the same error. However the failing file (_innovations.c, and also _qn.c) starts with

    /* Generated by Cython 0.29.25 */
    

    which I believe predates the fix. All the other C files look to be generated by Cython 0.29.32. So I don't think this is a Cython bug

  16. 9 remaining items

  17. EwoutH commented on Oct 26, 2022

    @EwoutH
    ContributorAuthor

    If you want to go the backport route, I started a draft PR with backports here:

  18. EwoutH commented on Oct 27, 2022

    @EwoutH
    ContributorAuthor

    @bashtage What do you have in mind for the statsmodels 0.14 release? Is there some timeline or are there some features you want to get in? Can we release it relatively soon? What steps are needed for that?

    Backporting a year of changes to 0.13.x is going to be a major effort, so maybe releasing 0.14 is just easier. 0.13.0 is now over a year old so a new release to get all improvements and features out might be a good idea anyway!

  19. josef-pkt commented on Oct 27, 2022

    @josef-pkt
    Member

    I need maybe 2 weeks of work for 0.14.
    There are at most a few smaller PRs that can still go in.
    I still need more API work on my new features that are in 0.14/main.
    The problem is that I have been quite distracted and have not spend enough time on statsmodels 0.14.

    How about 0.14rc1 in around two weeks?
    (That would put enough pressure on me to finish the API decisions and cleanup.)

  20. EwoutH commented on Oct 27, 2022

    @EwoutH
    ContributorAuthor

    How about 0.14rc1 in around two weeks?

    If that’s a workable timeframe, sounds good! Keep us in the loop.

  21. bashtage commented on Nov 1, 2022

    @bashtage
    Member
  22. benz0li commented on Nov 1, 2022

    @benz0li

    Thank you @bashtage

  23. EwoutH commented on Nov 1, 2022

    @EwoutH
    ContributorAuthor

    Awesome, thank you a lot!

  24. EwoutH commented on Nov 18, 2022

    @EwoutH
    ContributorAuthor

    How about 0.14rc1 in around two weeks?
    (That would put enough pressure on me to finish the API decisions and cleanup.)

    I was curious how it's going! Any difficult decisions left?

  25. josef-pkt commented on Dec 1, 2022

    @josef-pkt
    Member

    I lost the pressure after the 0.13 releases.
    (and then I get sometimes more interested in a novel than doing statsmodels maintenance, I'm not getting any money for it anyway)

    I need at most a few more days, only one PR that I really would like to get in (tweedie), plus minor issues that I can still find.

  26. EwoutH commented on Dec 6, 2022

    @EwoutH
    ContributorAuthor

    I understand, volunteer maintenance is hard work.

    I see the tweede distribution is in, that’s great!

    You can also tag a release candidate as pre-release and let the community help test and find final bugs before the stable release.

    If you get to it at some point, it would be hugely appreciated, otherwise it’s also perfectly fine.

  27. added this to the 0.14 milestone on Apr 14, 2023
  28. EwoutH commented on Jun 14, 2023

    @EwoutH
    ContributorAuthor

    Python 3.12 is now in beta, so I opened a new tracking issue for it: #8914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions