-
Notifications
You must be signed in to change notification settings - Fork 867
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
pip install
failed on Python 3.12+
#1059
Comments
I am also interested in using OpenCV with Python 3.13, especially the free-threaded 3.13t builds. What is the current status of support and the general agenda to support the free-threaded builds? |
agree +1, any update on this |
I was using Home Assistant + OpenCV last year. This year I updated OpenCV to the latest version, and got the surprise that they dropped OpenCV (home-assistant/core#94617). The developers had tried to update OpenCV version during the Python 3.11 update, but failed and reverted (home-assistant/core#91802). The state today is that Home Assistant uses Python 3.13, and the wheel build still fails with the 'pkgutil.ImpImporter' error. Repro in the Home Assistant build environment:
I used to have a very simple image processing script that reads from a phone camera, runs some simple OpenCV operations, and provides data to Home Assistant, and for now I don't see any way to get my script running working again. |
This pull request looks related: #1061 |
More PR related to 3.12 / setuputils: #1012 |
And 3.12 related issue: #988 |
Fixed in #1061 |
I'm trying to manually build a wheel from source. My Python version is 3.13. When I run
pip install .
, I see the following error:I did some search and found that it may be due to the removal of deprecated
ImpImporter
since Python 3.12 (https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean).One possible fix is to update
setuptools
, so I changed the build dependencies specified inpyproject.toml
and it worked.However, changing the version of
setuptools
may cause unexpected affects. Could you please investigate this bug and publish an official fix?Issue submission checklist
opencv-python
The text was updated successfully, but these errors were encountered: