-
Notifications
You must be signed in to change notification settings - Fork 891
No module named 'cv_version' #83
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
Comments
Local builds are not yet supported. That's why you are getting the error. See #43. |
@skvark Ok I understand, Will be waiting for you guys to have this implemented soon if possible. |
Also, I have to mention If I try to install it via pip its only work for python 2.7 with python 3.6 I get the following error:
|
Your pip is most likely too old. Upgrade it with |
I do believe I'm running the last version of pip
|
That's odd, it should work. I presume that you are running some GNU/Linux distribution with standard glibc? Have you tried to install it manually? Download the correct wheel file from PyPI (https://pypi.python.org/pypi/opencv-python/3.3.1.11) and run for example |
I'm running centos 7 with pkgsrc. I have also tried to install it locally but it failed
|
Unfortunately I can't help. This is related to pip and wheel format. Pip checks your platform and compares it to the wheel filename (cp36-cp36m = Python 3.6 and x86_64 = 64-bit Python and manylinux1 = all GNU C Library based Linux distributions). I guess your Python has been built in some non-standard way and is not ABI compatible with
It might be that you package manager has other packages for Python 3.6. You could try if they work with the wheels. More information: https://www.python.org/dev/peps/pep-0425/ |
This is what I got when I run that command
|
Looking at that output, it appears that CPython was compiled with pymalloc disabled. @djadk84 How did you install Python 3.6? This is a pretty unusual configuration for Python. |
Since the reason is their Python is incompatible with these prebuilt packages, this can be closed. @djadk84 can run |
Expected behaviour
I'm trying to import OpenCV-python to pkgsrc and I'm using python 3.6. When I tried to install the pkg it breaks. I would I appreciate any help to fix this. also, I have all depends install.
Actual behaviour
===> Configuring for py36-opencv-3.4.0.12
=> Fixing locale directory references.
=> Checking for portability problems in extracted files
cd /usr/pkgsrc/wip/py-opencv/work/opencv-python-12 && /usr/bin/env FREETYPE_CONFIG=/usr/pkg/bin/freetype-config PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr QTDIR=/usr/pkg/qt4 MOC="/usr/pkg/qt4/bin/moc" UIC="/usr/pkg/qt4/bin/uic" QMAKE="/usr/pkg/qt4/bin/qmake" QMAKESPEC=/usr/pkg/qt4/mkspecs/netbsd-g++ DL_CFLAGS= DL_LDFLAGS= DL_LIBS= INSTALL_INFO= MAKEINFO=/usr/pkgsrc/wip/py-opencv/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/usr/pkgsrc/wip/py-opencv/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/pkgsrc/wip/py-opencv/work/.buildlink/lib64/pkgconfig:/usr/pkgsrc/wip/py-opencv/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/wip/py-opencv/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/wip/py-opencv/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/wip/py-opencv/work/.cwrapper/config PYTHON=/usr/pkg/bin/python3.6 CC=cc CFLAGS=-O2\ -march=native\ -mfpmath=sse\ -msse3\ -g\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/pkg/qt4/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm\ -I/usr/pkg/include/python3.6 CPPFLAGS=-I/usr/pkg/include\ -I/usr/pkg/qt4/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm\ -I/usr/pkg/include/python3.6 CXX=c++ CXXFLAGS=-O2\ -march=native\ -mfpmath=sse\ -msse3\ -g\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/pkg/qt4/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm\ -I/usr/pkg/include/python3.6 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-lgcc_s\ -lgcc\ -lgfortran\ -lquadmath\ -L/usr/pkg/lib\ -L/usr/pkg/qt4/lib\ -Wl,-R/usr/pkg/qt4/lib\ -L/usr/lib64\ -Wl,-R/usr/lib64\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/wip/py-opencv/work/.cwrapper/bin:/usr/pkgsrc/wip/py-opencv/work/.buildlink/bin:/usr/pkgsrc/wip/py-opencv/work/.gcc/bin:/usr/pkgsrc/wip/py-opencv/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/cuda/bin:/root/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/usr/pkgsrc/wip/py-opencv/work/.home CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/wip/py-opencv/work/.cwrapper/config /usr/pkg/bin/python3.6 setup.py build install
Traceback (most recent call last):
File "setup.py", line 9, in
from cv_version import opencv_version
ModuleNotFoundError: No module named 'cv_version'
*** Error code 1
Stop.
bmake[1]: stopped in /usr/pkgsrc/wip/py-opencv
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/wip/py-opencv
Steps to reproduce
/usr/pkg/bin/python3.6 setup.py build install
Centos 7
uname -p
x86_64
opencv-python-12
The text was updated successfully, but these errors were encountered: