Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX pip install fails @ Python 3.11 & Darwin#947

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ananich wants to merge1 commit intoopencv:4.xfromananich:4.x
Closed

FIX pip install fails @ Python 3.11 & Darwin#947

ananich wants to merge1 commit intoopencv:4.xfromananich:4.x

Conversation

ananich
Copy link

Fixes#946

johnnynunez, jfracon, and RankoR reacted with heart emoji
@jfracon
Copy link

Is there any update on this? I think@ananich commit will solve the issue and also allow working with Python 3.12. Numpy 1.22.2 is not compatible with Python 3.12 due to the deprecation and removal of imp ( AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?)

Copy link

@jfraconjfracon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This change will allow working with Python 3.12. This is now not possible due to the deprecation and removal of the imp module which is used by Numpy versions below 1.26.0

@ashlndr
Copy link

I have the same issue on MacOS 10.15.7 and Python 3.12.2. Is there any chance that this fix will be merged?

@RankoR
Copy link

I guess you would also need to upgradesetuptools - for me it works only with the newersetuptools.
Currently, I'm doing it in Docker like this:

RUN sed -i 's/numpy==1.22.2; python_version>='"'"'3.11'"'"'/numpy>=1.26.3; python_version>='"'"'3.11'"'"'/g' /tmp/opencv-python/pyproject.tomlRUN sed -i 's/setuptools==59.2.0/setuptools==69.5.1/g' /tmp/opencv-python/pyproject.toml

At least for me upgrading only numpy didn't work.

@asmorkalovasmorkalov self-requested a reviewMay 21, 2024 05:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jfraconjfraconjfracon approved these changes

@asmorkalovasmorkalovAwaiting requested review from asmorkalov

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

pip install fails @ Python 3.11 & Darwin
5 participants
@ananich@jfracon@ashlndr@RankoR@asmorkalov

[8]ページ先頭

©2009-2025 Movatter.jp