python-dependency-injector icon indicating copy to clipboard operation
python-dependency-injector copied to clipboard

Python 3.12 support

Open toinbis opened this issue 1 year ago • 9 comments

As python 3.12 RC is released and a release is planned in 1.5months, I like to report in advance that there are issues with installing dependency-injector. On mac,

pip install dependency-injector for python 3.12RC1 gives:

src/dependency_injector/containers.c:39078:47: error: no member named 'ob_digit' in 'struct _longobject'
          const digit* digits = ((PyLongObject*)b)->ob_digit;
                                ~~~~~~~~~~~~~~~~~~  ^
      114 warnings and 12 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dependency-injector
Failed to build dependency-injector

Or maybe it's not an issue with a library, but an issue with the build chain not being ready for 3.12? Thanks in advance!

toinbis avatar Aug 21 '23 18:08 toinbis

Did you find any solution to the problem?

I am prevented from updating my project's Python because of this library 😭

danieljoris avatar Oct 24 '23 04:10 danieljoris

@rmk135 , when can we expect a new release for this with the support for python 3.12?

mayapmathews avatar Jan 09 '24 13:01 mayapmathews

Is there any update on this issue?

JacobGeoGeek avatar Jan 18 '24 01:01 JacobGeoGeek

Any update on python 3.12 support ?

mighty-nyaina avatar Jan 31 '24 05:01 mighty-nyaina

There is some progress about supporting [email protected] https://github.com/ets-labs/python-dependency-injector/pull/765

xoxwgys56 avatar Mar 19 '24 13:03 xoxwgys56

The release with Python 3.12 support is on PyPI: https://pypi.org/project/dependency-injector/4.42.0b1/

pip install dependency-injector==4.42.0b1

Please report any issues you notice by opening an issue here: https://github.com/ets-labs/python-dependency-injector/issues

I'll publish the plan for future steps a bit later. There is a lot of work to do.

rmk135 avatar Aug 08 '24 13:08 rmk135

@rmk135 do you have an ETA for the stable 4.42?

mgaitan avatar Aug 22 '24 19:08 mgaitan