Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can not found zlib 1.2.9 #772

Closed
Closed
@wqh17101

Description

@wqh17101

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions