media-libs/opencv should add PYTHON_COMPAT python3_6. The following binary opencv distribution is compatible with python 3.6, so the gentoo ebuild should also be: https://pypi.python.org/pypi/opencv-python Thanks!
Have you tested with Python 3.6?
I haven't tested with python 3.6 yet. Unfortunately I can't build opencv-3.3 in the first place (i.e. independently of enabling python3_6): > In file included from /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.cc:5:0: > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is > #error This file was generated by a newer version of protoc which is > ^~~~~ > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Pl > ease update > #error incompatible with your Protocol Buffer headers. Please update > ^~~~~ > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:14:2: error: #error your headers. > #error your headers. > ^~~~~ > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory > #include <google/protobuf/arena.h> I assume opencv 3.3 should in some way depend on the ~amd64 protobuf..?
(In reply to Leonard Lausen from comment #2) > I haven't tested with python 3.6 yet. Unfortunately I can't build opencv-3.3 > in the first place (i.e. independently of enabling python3_6): > > > In file included from /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.cc:5:0: > > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is > > #error This file was generated by a newer version of protoc which is > > ^~~~~ > > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Pl > > ease update > > #error incompatible with your Protocol Buffer headers. Please update > > ^~~~~ > > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:14:2: error: #error your headers. > > #error your headers. > > ^~~~~ > > /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory > > #include <google/protobuf/arena.h> > > > > I assume opencv 3.3 should in some way depend on the ~amd64 protobuf..? Yes there is another 5 bugs for it. We are working on repair ;) Thank you..
Thanks for your work on it! With #631418 fixed I tried compiling with PYTHON_COMPAT python3_6. Everything seems to work.
(In reply to Leonard Lausen from comment #4) > Thanks for your work on it! With #631418 fixed I tried compiling with > PYTHON_COMPAT python3_6. Everything seems to work. I will add it to 3.3.* with the next fix. Thank you :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b311829f28929c5dd15402b395365ccffb85ecd1 commit b311829f28929c5dd15402b395365ccffb85ecd1 Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2018-01-21 08:35:52 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2018-01-21 08:36:21 +0000 media-libs/opencv: fix cuda9 and autodownload - Fix cuda 9 compatibility Submitted-by: Todd Walter <twalter@rogers.com> - Remove autodownload tiny_dnn from contrib Submitted-by: Jonathan Scruggs <j.scruggs@gmail.com> - Add PYTHON_COMPAT 3_6 Closes: https://bugs.gentoo.org/637078 Closes: https://bugs.gentoo.org/633844 Closes: https://bugs.gentoo.org/632116 Package-Manager: Portage-2.3.13, Repoman-2.3.3 media-libs/opencv/Manifest | 1 + .../opencv/files/opencv-3.3.0-cuda9-cmake.patch | 87 ++++ .../files/opencv-3.3.0-cuda9-compute20.patch | 21 + .../opencv/files/opencv-3.3.0-cuda9-saturate.patch | 41 ++ media-libs/opencv/metadata.xml | 1 + media-libs/opencv/opencv-3.3.0-r5.ebuild | 466 +++++++++++++++++++++ 6 files changed, 617 insertions(+)