Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882411 - media-libs/opencv-4.6.0-r2 - rm: cannot remove modules/python3: No such file or directory
Summary: media-libs/opencv-4.6.0-r2 - rm: cannot remove modules/python3: No such file ...
Status: RESOLVED DUPLICATE of bug 882647
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 19:02 UTC by Toralf Förster
Modified: 2022-11-24 20:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.84 KB, text/plain)
2022-11-21 19:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,103.28 KB, text/plain)
2022-11-21 19:02 UTC, Toralf Förster
Details
environment (environment,238.75 KB, text/plain)
2022-11-21 19:02 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,694 bytes, application/x-bzip)
2022-11-21 19:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,33.41 KB, application/x-bzip)
2022-11-21 19:02 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.67 KB, application/x-bzip)
2022-11-21 19:02 UTC, Toralf Förster
Details
media-libs:opencv-4.6.0-r2:20221121-180851.log.bz2 (media-libs:opencv-4.6.0-r2:20221121-180851.log.bz2,53.91 KB, application/x-bzip)
2022-11-21 19:02 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,161.60 KB, application/x-bzip)
2022-11-21 19:02 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-11-21 19:02:41 UTC
-- Up-to-date: /var/tmp/portage/media-libs/opencv-4.6.0-r2/image/usr/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
-- Up-to-date: /var/tmp/portage/media-libs/opencv-4.6.0-r2/image/usr/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
-- Up-to-date: /var/tmp/portage/media-libs/opencv-4.6.0-r2/image/usr/share/opencv4/lbpcascades/lbpcascade_profileface.xml
-- Up-to-date: /var/tmp/portage/media-libs/opencv-4.6.0-r2/image/usr/share/opencv4/lbpcascades/lbpcascade_silverware.xml
rm: cannot remove 'modules/python3': No such file or directory
 * ERROR: media-libs/opencv-4.6.0-r2::gentoo failed (install phase):
 *   rm failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20221120-222342

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.5
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.65.0 *
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit d5234c7ac7566ab7ec279a24ccddda8f212c5226
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 21 17:16:55 2022 +0000

    2022-11-21 17:16:55 UTC

emerge -qpvO media-libs/opencv
[ebuild  N    ] media-libs/opencv-4.6.0-r2  USE="contrib contribdnn eigen features2d gstreamer jpeg opengl openmp png python qt5 tiff -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d (-cuda) -debug -dnnsamples -download -examples -ffmpeg -gdal -gflags -glog -gphoto2 -gtk3 -ieee1394 -java -jpeg2k -lapack -lto -opencl -opencvapps -openexr -tesseract -testprograms -threads -v4l -vaapi -vtk -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-11-21 19:02:42 UTC
Created attachment 835619 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-21 19:02:44 UTC
Created attachment 835621 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-21 19:02:46 UTC
Created attachment 835623 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-21 19:02:47 UTC
Created attachment 835625 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-21 19:02:48 UTC
Created attachment 835627 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-21 19:02:49 UTC
Created attachment 835629 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-21 19:02:51 UTC
Created attachment 835631 [details]
media-libs:opencv-4.6.0-r2:20221121-180851.log.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-21 19:02:52 UTC
Created attachment 835633 [details]
temp.tar.bz2
Comment 9 Tamas Jantvik 2022-11-22 18:31:21 UTC
Yep. I've seen this on my daily driver.
Comment 10 Geoff Madden 2022-11-23 09:01:28 UTC
I found that hashing out the rm line in the ebuild for python,allowed the install
to complete
Comment 11 Ionen Wolkens gentoo-dev 2022-11-24 19:49:49 UTC
(In reply to Geoff Madden from comment #10)
> I found that hashing out the rm line in the ebuild for python,allowed the
> install to complete
Not the right thing to do as you may have left a failed build ignore errors.

I didn't follow the whole story but afaik that's a setuptools-65.6.0 issue? Aka it fails on the log stuff, and likely doesn't do the python parts properly and so the directory is never created.

I didn't try but it's probably okay now with either current 65.6.3 or stable 65.5.1

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/numpy/distutils/__init__.py", line 26, in <module>
    from . import ccompiler
  File "/usr/lib/python3.10/site-packages/numpy/distutils/ccompiler.py", line 20, in <module>
    from numpy.distutils import log
  File "/usr/lib/python3.10/site-packages/numpy/distutils/log.py", line 4, in <module>
    from distutils.log import Log as old_Log
ImportError: cannot import name 'Log' from 'distutils.log' (/usr/lib/python3.10/site-packages/setuptools/_distutils/log.py)
Comment 12 Kobboi 2022-11-24 20:09:57 UTC
(In reply to Ionen Wolkens from comment #11)
> 
> I didn't try but it's probably okay now with either current 65.6.3 or stable
> 65.5.1

Well, it didn't with 65.6.0, but indeed, 65.6.3, which I just pulled in, fixed the issue!
Comment 13 Ionen Wolkens gentoo-dev 2022-11-24 20:22:13 UTC

*** This bug has been marked as a duplicate of bug 882647 ***