Skip to content
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

Can not found zlib 1.2.9 #772

Closed
4 tasks done
wqh17101 opened this issue Jan 4, 2023 · 5 comments
Closed
4 tasks done

Can not found zlib 1.2.9 #772

wqh17101 opened this issue Jan 4, 2023 · 5 comments
Assignees

Comments

@wqh17101
Copy link

wqh17101 commented Jan 4, 2023

System Information

OpenCV python version: 4.7.0.68 & 4.6.0.66
Operating System / Platform: Centos 7
Python version: 3.9.2

Detailed description

I install opencv-python==4.7.0.68 and got

[2023/01/04 10:30:57.244] Traceback (most recent call last):
[2023/01/04 10:30:57.244]   File "/home/xxx/source_code/xxx/OCR/pse/test.py", line 7, in <module>
[2023/01/04 10:30:57.244]     import cv2
[2023/01/04 10:30:57.244]   File "/usr/local/python3.9/lib/python3.9/site-packages/cv2/__init__.py", line 181, in <module>
[2023/01/04 10:30:57.244]     bootstrap()
[2023/01/04 10:30:57.244]   File "/usr/local/python3.9/lib/python3.9/site-packages/cv2/__init__.py", line 153, in bootstrap
[2023/01/04 10:30:57.244]     native_module = importlib.import_module("cv2")
[2023/01/04 10:30:57.244]   File "/usr/local/python3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
[2023/01/04 10:30:57.244]     return _bootstrap._gcd_import(name[level:], package, level)
[2023/01/04 10:30:57.244] ImportError: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/local/python3.9/lib/python3.9/site-packages/cv2/../opencv_python.libs/libpng16-186fce2e.so.16.37.0)

However the same environment,it works well with opencv-python==4.6.0.66

Steps to reproduce

pip install opencv-python==4.7.0.68
and run import cv2

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)
@wqh17101 wqh17101 added the bug label Jan 4, 2023
@Maxlinn
Copy link

Maxlinn commented Jan 4, 2023

come here by seaching for solutions, same issue.

i definitely believe this issue was introduced in no more than 7 days, because a program i used very often will always fetch the latest version of opencv-python via pip, it was fine last week.

@Maxlinn
Copy link

Maxlinn commented Jan 4, 2023

come here by seaching for solutions, same issue.

i definitely believe this issue was introduced in no more than 7 days, because a python program i used very often will always fetch the lastest version of opencv-python via pip, it was fine last week.

through this thought, i checked the release history of opencv-python library on pypi and change to the second last version of it, problem solved.

that is

pip3 install opencv-python==4.6.0.66

@asmorkalov asmorkalov self-assigned this Jan 10, 2023
@asmorkalov asmorkalov transferred this issue from opencv/opencv Jan 10, 2023
@asmorkalov
Copy link
Collaborator

Duplicates #765

@asmorkalov
Copy link
Collaborator

Fixed in release 4.7.0.70.

@wqh17101
Copy link
Author

@asmorkalov when will you release it on pypi

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

3 participants