Skip to content

Python 3.12 support #737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #90
toinbis opened this issue Aug 21, 2023 · 10 comments
Closed
Tracked by #90

Python 3.12 support #737

toinbis opened this issue Aug 21, 2023 · 10 comments
Assignees

Comments

@toinbis
Copy link

toinbis commented Aug 21, 2023

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!

@danieljoris
Copy link

Did you find any solution to the problem?

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

@macieyng macieyng mentioned this issue Nov 9, 2023
5 tasks
@mayapmathews
Copy link

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

@JacobGeoGeek
Copy link

Is there any update on this issue?

@mighty-nyaina
Copy link

Any update on python 3.12 support ?

@xoxwgys56
Copy link

There is some progress about supporting [email protected] #765

@rmk135
Copy link
Member

rmk135 commented Aug 8, 2024

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.

@mgaitan
Copy link

mgaitan commented Aug 22, 2024

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

@rmk135
Copy link
Member

rmk135 commented Aug 26, 2024

Hi @mgaitan ! I think it's ready to go live this week. It's been available for 3 weeks. Based on the number of downloads, a few projects have been already updated with it and there have been no reported bugs.

I'll post an update when 4.42 is live.

Screenshot 2024-08-26 at 9 59 42 AM

@babanin
Copy link

babanin commented Aug 26, 2024

This is great news! Thanks @rmk135!

@rmk135
Copy link
Member

rmk135 commented Sep 10, 2024

The release 4.42.0 is not officially live on PyPI: https://pypi.org/project/dependency-injector/4.42.0/

Please upgrade your environments and projects to the most recent version:

pip install dependency-injector==4.42.0

I'm closing this issue. Please open a new issue if you face any problems.

@rmk135 rmk135 closed this as completed Sep 10, 2024
@rmk135 rmk135 self-assigned this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants