Closed
Description
Expected behaviour
Module should import.
Actual behaviour
A symbol error happens when trying to import.
Steps to reproduce
Mac OSX 10.11.6
cd /tmp/
13:49:52-rene/tmp/opencv$ python3 -m venv anenv
13:49:55-rene/tmp/opencv$ . ./anenv/bin/activate
(anenv) 13:49:55-rene/tmp/opencv$ pip install opencv-python
Collecting opencv-python
Downloading opencv_python-3.4.0.12-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (41.2MB)
100% |████████████████████████████████| 41.2MB 38kB/s
Collecting numpy>=1.11.1 (from opencv-python)
Using cached numpy-1.14.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.14.0 opencv-python-3.4.0.12
(anenv) 13:50:57-rene/tmp/opencv$ pip install numpy
Requirement already satisfied: numpy in ./anenv/lib/python3.6/site-packages
(anenv) 13:57:36-rene/tmp/opencv$ python
Python 3.6.0 (default, Dec 24 2016, 00:01:50)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/private/tmp/opencv/anenv/lib/python3.6/site-packages/cv2/__init__.py", line 4, in <module>
from .cv2 import *
ImportError: dlopen(/private/tmp/opencv/anenv/lib/python3.6/site-packages/cv2/cv2.cpython-36m-darwin.so, 2): Symbol not found: _clock_gettime
Referenced from: /private/tmp/opencv/anenv/lib/python3.6/site-packages/cv2/.dylibs/libavutil.55.78.100.dylib (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
in /private/tmp/opencv/anenv/lib/python3.6/site-packages/cv2/.dylibs/libavutil.55.78.100.dylib
>>> import platform
>>> platform.platform()
'Darwin-15.6.0-x86_64-i386-64bit'
I guess opencv should work ok on 10.11? I use it through homebrew at least.
In https://github.com/pygame/pygame we use osx_image: xcode7.3
for our mac wheels, and get 10.11 support.
Metadata
Metadata
Assignees
Labels
No labels