Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 656

PostPosted: Sun Mar 24, 2019 8:35 pm    Post subject: Python issues Reply with quote

I'm having trouble with some updates which all appear to be python issues. My make.conf is as follows
Code:
PYTHON_TARGETS="python2_7 python3_6"
PYTHON_SINGLE_TARGET="python3_6"

And my selected python vesions are
Code:
localhost /etc/portage # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7
  [3]   python3.7 (fallback)

Here's a problem with libssh-0.8.7
Code:
-- Installing: /var/tmp/portage/net-libs/libssh-0.8.7/image/usr/lib64/libssh.so
Traceback (most recent call last):
  File "/usr/lib/portage/python3.6/doins.py", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.6/doins.py", line 602, in main
    os.path.dirname(source)):
  File "/usr/lib/portage/python3.6/doins.py", line 450, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.6/doins.py", line 386, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.6/doins.py", line 195, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/net-libs/libssh-0.8.7/work/libssh-0.8.7-abi_x86_32.x86/doc/html/.'
 * ERROR: net-libs/libssh-0.8.7::gentoo failed (install phase):
 *   dodoc failed

and a similar issue with opencv
Code:
 * python2_7: running python_module_compile
>>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64"
cmake -C /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_DOWNLOAD=OFF -DWITH_1394=no -DWITH_VTK=no -DWITH_EIGEN=yes -DWITH_VFW=OFF -DWITH_FFMPEG=yes -DWITH_GSTREAMER=no -DWITH_GSTREAMER_0_10=OFF -DWITH_GTK=yes -DWITH_GTK_2_X=yes -DWITH_IPP=OFF -DWITH_JASPER=yes -DWITH_JPEG=yes -DWITH_WEBP=no -DWITH_OPENEXR=no -DWITH_OPENGL=yes -DWITH_OPENVX=OFF -DWITH_OPENNI=OFF -DWITH_OPENNI2=OFF -DWITH_PNG=yes -DWITH_GDCM=OFF -DWITH_PVAPI=OFF -DWITH_GIGEAPI=OFF -DWITH_ARAVIS=OFF -DWITH_QT=5 -DWITH_WIN32UI=OFF -DWITH_TBB=no -DWITH_OPENMP=yes -DWITH_CSTRIPES=OFF -DWITH_PTHREADS_PF=ON -DWITH_TIFF=yes -DWITH_UNICAP=OFF -DWITH_V4L=yes -DWITH_LIBV4L=yes -DWITH_DSHOW=ON -DWITH_MSMF=OFF -DWITH_XIMEA=OFF -DWITH_XINE=yes -DWITH_CLP=OFF -DWITH_OPENCL=no -DWITH_OPENCL_SVM=OFF -DWITH_OPENCLAMDFFT=no -DWITH_OPENCLAMDBLAS=no -DWITH_DIRECTX=OFF -DWITH_INTELPERC=OFF -DWITH_IPP_A=OFF -DWITH_MATLAB=OFF -DWITH_VA=yes -DWITH_VA_INTEL=yes -DWITH_GDAL=no -DWITH_GPHOTO2=yes -DWITH_LAPACK=no -DWITH_ITT=OFF -DWITH_CUDA=no -DWITH_CUBLAS=no -DWITH_CUFFT=no -DWITH_NVCUVID=OFF -DCUDA_NPP_LIBRARY_ROOT_DIR= -DBUILD_SHARED_LIBS=ON -DBUILD_JAVA=yes -DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_opencv_apps= -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=no -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=no -DBUILD_WITH_DEBUG_INFO=no -DBUILD_WITH_DYNAMIC_IPP=OFF -DBUILD_FAT_JAVA_LIB=yes -DBUILD_CUDA_STUBS=no -DOPENCV_EXTRA_MODULES_PATH= -DINSTALL_CREATE_DISTRIB=OFF -DINSTALL_C_EXAMPLES=no -DINSTALL_TESTS=no -DINSTALL_PYTHON_EXAMPLES=no -DINSTALL_TO_MANGLED_PATHS=OFF -DLIB_SUFFIX= -DENABLE_CCACHE=OFF -DENABLE_PRECOMPILED_HEADERS=no -DENABLE_SOLUTION_FOLDERS=OFF -DENABLE_PROFILING=OFF -DENABLE_COVERAGE=OFF -DHAVE_opencv_java=YES -DENABLE_NOISY_WARNINGS=OFF -DOPENCV_WARNINGS_ARE_ERRORS=OFF -DENABLE_IMPL_COLLECTION=OFF -DENABLE_INSTRUMENTATION=OFF -DGENERATE_ABI_DESCRIPTOR=OFF -DDOWNLOAD_EXTERNAL_TEST_DATA=OFF -DBUILD_PACKAGE=OFF -DBUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON -DCMAKE_SKIP_RPATH=ON -DOPENCV_DOC_INSTALL_PATH= -DOPENCV_CPU_OPT_IMPLIES_IGNORE=ON -DCPU_DISPATCH= -DENABLE_SSE=yes -DENABLE_SSE2=yes -DENABLE_SSE3=yes -DENABLE_SSSE3=no -DENABLE_SSE41=no -DENABLE_SSE42=no -DENABLE_POPCNT=yes -DENABLE_AVX=no -DENABLE_AVX2=no -DENABLE_FMA3=no -DPYTHON2_EXECUTABLE=/var/tmp/portage/media-libs/opencv-3.4.1-r5/temp/python2.7/bin/python2 -DPYTHON3_EXECUTABLE=/var/tmp/portage/media-libs/opencv-3.4.1-r5/temp/python2.7/bin/python3 -DINSTALL_PYTHON_EXAMPLES=no -DLIBPY_SUFFIX=64 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64/gentoo_toolchain.cmake  /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1
loading initial cache file /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
-- Found PythonInterp: /var/tmp/portage/media-libs/opencv-3.4.1-r5/temp/python2.7/bin/python2 (found suitable version "2.7.16", minimum required is "2.7")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable exact version "2.7.16")
-- Found PythonInterp: /var/tmp/portage/media-libs/opencv-3.4.1-r5/temp/python2.7/bin/python3 (Required is at least version "3.4")
CMake Error at cmake/OpenCVDetectPython.cmake:59 (if):
  if given arguments:

    "3" "EQUAL"

  Unknown arguments specified
Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:233 (find_python)
  CMakeLists.txt:556 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1-abi_x86_64.amd64/CMakeFiles/CMakeError.log".
 * ERROR: media-libs/opencv-3.4.1-r5::gentoo failed (install phase):
 *   cmake failed
 *


Is this a python issue or the packages in general? The problem started due to a switch to multilib, this is what the emerge options produced,
Code:
[ebuild   R    ] net-libs/libssh-0.8.7  ABI_X86="32*"
[ebuild   R    ] media-libs/opencv-3.4.1-r5  ABI_X86="32*" PYTHON_TARGETS="(-python3_4%)"
Back to top
View user's profile Send private message
NTU
Apprentice
Apprentice


Joined: 17 Jul 2015
Posts: 164

PostPosted: Sun Mar 24, 2019 8:53 pm    Post subject: Reply with quote

After you switched profiles, did you run `emerge --with-bdeps=y -uvDN @world` ?
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 656

PostPosted: Sun Mar 24, 2019 10:10 pm    Post subject: Reply with quote

Yes, it resulted in a couple of hundred rebuilds but I also used --keep-going which left the remaining packages that failed.
I'm guessing python couldn't be that broken to build that many!
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3668
Location: Germany

PostPosted: Mon Mar 25, 2019 12:44 am    Post subject: Reply with quote

current opencv-3.4.1-r5 has a issue with new cmake-3.14.0
see Bug 680824
As workaround you can try
Code:
emerge -av1 =cmake-3.13.4 opencv
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum