Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836750 - dev-python/kiwisolver-1.4.2: ModuleNotFoundError: No module named 'cppy'
Summary: dev-python/kiwisolver-1.4.2: ModuleNotFoundError: No module named 'cppy'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 836676
  Show dependency tree
 
Reported: 2022-04-04 07:41 UTC by Kobboi
Modified: 2022-05-04 04:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-04-04 07:41:59 UTC
* Package:    dev-python/kiwisolver-1.4.2
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_9 userland_GNU
 * FEATURES:   compressdebug installsources preserve-libs splitdebug
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 20
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/kiwisolver-1.4.2/work/kiwi-1.4.2/setup.py", line 13, in <module>
    from cppy import CppyBuildExt
ModuleNotFoundError: No module named 'cppy'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/kiwisolver-1.4.2/work/kiwi-1.4.2/setup.py", line 15, in <module>
    raise RuntimeError(
RuntimeError: Missing setup required dependencies: cppy. Installing through pip as recommended ensure one never hits this issue.
 * ERROR: dev-python/kiwisolver-1.4.2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3152:  Called distutils-r1_src_compile
 *   environment, line 1363:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  552:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2845:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2314:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2312:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  876:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1351:  Called distutils-r1_python_compile
 *   environment, line 1162:  Called esetup.py 'build' '-j' '20'
 *   environment, line 1853:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/kiwisolver-1.4.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/kiwisolver-1.4.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/kiwisolver-1.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/kiwisolver-1.4.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/kiwisolver-1.4.2/work/kiwi-1.4.2'
 * S: '/var/tmp/portage/dev-python/kiwisolver-1.4.2/work/kiwi-1.4.2'


Reproducible: Always
Comment 1 Kobboi 2022-04-04 07:42:40 UTC
Portage 3.0.30 (python 3.9.12-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/tanagra, gcc-11.2.1, glibc-2.35-r2, 5.16.18-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.16.18-gentoo-dist-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.35
KiB Mem:    98873440 total,  22057896 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository brother-overlay: Tue, 01 Feb 2022 18:38:33 +0000
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.23.0::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          249.11::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo, 2.38-r1::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.0-r1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/kobboi/gentoo
    priority: -1000

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/kobboi/brother-overlay
    masters: gentoo

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux
    masters: gentoo

Installed sets: @kobboi-all-packages
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.11"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel djvu dri dts dvd dvdr eds egl encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg ladspa lcms libass libglvnd libnotify libsecret libtirpc lv2 lz4 lzma lzo mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg sysprof systemd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2022-04-04 10:46:54 UTC
This is interesting, the cppy is in fact present in dependencies. Have you updated your @world fully with -N after you added python3.9 to PYTHON_TARGETS?
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2022-04-04 10:52:38 UTC
Disregard, since setup.py loads it, it becomes BDEPEND too. Will bump it.
Comment 4 Larry the Git Cow gentoo-dev 2022-04-04 10:58:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ef4c4cee2d11497160f7c639544b7fafa71a8ca

commit 7ef4c4cee2d11497160f7c639544b7fafa71a8ca
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2022-04-04 10:57:31 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2022-04-04 10:57:31 +0000

    dev-python/kiwisolver: 1.4.2: cppy added to BDEPEND.
    
    Closes: https://bugs.gentoo.org/836750
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 dev-python/kiwisolver/kiwisolver-1.4.2.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 5 Kobboi 2022-04-04 11:06:36 UTC
(In reply to Piotr Karbowski from comment #2)
> This is interesting, the cppy is in fact present in dependencies. Have you
> updated your @world fully with -N after you added python3.9 to
> PYTHON_TARGETS?

Well, it's part of a huge install-from-scratch test, using the portage tree @ commit 96866b391464cf42acd1348e85be6209754641c2 of gentoo.git
Comment 6 Piotr Karbowski (RETIRED) gentoo-dev 2022-04-04 11:27:19 UTC
All good, this was in RDEPEND so it was not guaranteed to be installed up front. Now if you take the HEAD of gentoo.git it should work for you.
Comment 7 Larry the Git Cow gentoo-dev 2022-04-04 17:02:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b32405c58bab926426acea4fd1cc819c242e5ec0

commit b32405c58bab926426acea4fd1cc819c242e5ec0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-04 17:00:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-04 17:02:19 +0000

    dev-python/cppy: BDEPEND on newer setuptools
    
    Needed to fix installed files.
    
    Bug: https://bugs.gentoo.org/836750
    Closes: https://bugs.gentoo.org/836765
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/cppy/{cppy-1.2.1.ebuild => cppy-1.2.1-r1.ebuild} | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)