Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911703 - dev-python/wxpython-4.2.0: wx/svg/_nanosvg.pyx:45:8: 'cython.object' is not a valid cython.* module
Summary: dev-python/wxpython-4.2.0: wx/svg/_nanosvg.pyx:45:8: 'cython.object' is not a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords: PATCH
: 911946 911967 913904 (view as bug list)
Depends on:
Blocks: cython3-tracker
  Show dependency tree
 
Reported: 2023-08-04 09:22 UTC by eroen
Modified: 2023-09-10 16:29 UTC (History)
4 users (show)

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


Attachments
dev-python:wxpython-4.2.0:20230804-060558.log.gz (dev-python:wxpython-4.2.0:20230804-060558.log.gz,44.18 KB, application/gzip)
2023-08-04 09:22 UTC, eroen
Details
cython-3 fix (cython-3.patch,371 bytes, patch)
2023-08-08 13:14 UTC, Robert Schultz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2023-08-04 09:22:01 UTC
Created attachment 867006 [details]
dev-python:wxpython-4.2.0:20230804-060558.log.gz

...
Compiling wx/svg/_nanosvg.pyx because it changed.
[1/1] Cythonizing wx/svg/_nanosvg.pyx

Error compiling Cython file:
------------------------------------------------------------
...
for manipulating the SVG shape info in memory.
"""

import sys

cimport cython.object
        ^
------------------------------------------------------------

wx/svg/_nanosvg.pyx:45:8: 'cython.object' is not a valid cython.* module
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/wxpython-4.2.0/work/wxPython-4.2.0-python3_11/setup-wxsvg.py", line 54, in <module>
    modules = cythonize([module],
              ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1139, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1306, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: wx/svg/_nanosvg.pyx
Will build using: "/usr/bin/python3.11"
3.11.4 (main, Aug  1 2023, 14:02:36) [GCC 13.2.0]
Python's architecture is 64bit
cfg.VERSION: 4.2.0

Running command: build_py
Checking for /var/tmp/portage/dev-python/wxpython-4.2.0/work/wxPython-4.2.0-python3_11/bin/waf-2.0.24...
"/usr/bin/python3.11" /var/tmp/portage/dev-python/wxpython-4.2.0/work/wxPython-4.2.0-python3_11/bin/waf-2.0.24 --verbose --wx_config=/usr/lib64/wx/config/gtk3-unicode-3.2-gtk3 --jobs=1 --gtk3 --python="/usr/bin/python3.11" --out=build/waf/3.11/gtk3 configure build
Running command: build_others
/usr/bin/python3.11 setup-wxsvg.py build_ext --inplace --verbose
Command '/usr/bin/python3.11 setup-wxsvg.py build_ext --inplace --verbose' failed with exit code 1.
Finished command: build_others (0m3.407s)
Finished command: build_py (83m33.123s)
 * ERROR: dev-python/wxpython-4.2.0::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3987:  Called distutils-r1_src_compile
 *   environment, line 1900:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  736:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3558:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3058:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3056:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 1185:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1884:  Called python_compile
 *   environment, line 3357:  Called die
 * The specific snippet of code:
 *       ${PYTHON} build.py build_py --use_syswx --no_magic --jobs="$(makeopts_jobs)" --verbose --release || die
Comment 1 eroen 2023-08-04 09:25:08 UTC
eroen@occam ~ $ emerge --info '=dev-python/wxpython-4.2.0::gentoo'
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r4, 6.3.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.3.9-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-glibc2.37
KiB Mem:     8015956 total,    582904 free
KiB Swap:    8387580 total,   5784924 free
Timestamp of repository gentoo: Fri, 04 Aug 2023 05:00:01 +0000
Head commit of repository gentoo: 22f0d3db074088e8350adcdd44ea82c5ab1cdf7d
Timestamp of repository eroen: Sun, 30 Oct 2016 21:58:42 +0000
Head commit of repository wiktorb: 0c14c46dc4d87a4fa395bf65c132bf0a8b9d3df2

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p6) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo, 3.12.0_beta4_p2::gentoo
dev-lang/rust:             1.71.0::gentoo
dev-util/cmake:            3.27.1-r1::gentoo
dev-util/meson:            1.2.0::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r7::gentoo, 2.41::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.2.0::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

eroen
    location: /home/eroen/repos/eroen-overlay
    masters: gentoo
    volatile: True

wiktorb
    location: /var/db/repos/wiktor_b
    sync-type: git
    sync-uri: https://github.com/wiktor-b/overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -O2 -ggdb -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=corei7-avx -O2 -ggdb -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch 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="-march=corei7-avx -O2 -ggdb -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4"
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"
SHELL="/bin/bash"
USE="acl amd64 apparmor bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl test-rust unicode verify-sig xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 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="libinput" KERNEL="linux" L10N="en no nb" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel i965" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-python/wxpython-4.2.0::gentoo was built with the following:
USE="-test -webkit" ABI_X86="(64)" PYTHON_TARGETS="python3_11 -python3_10"
CFLAGS="-march=corei7-avx -O2 -pipe"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
FEATURES="merge-sync sfperms userpriv news unmerge-orphans ebuild-locks assume-digests parallel-fetch distlocks protect-owned binpkg-docompress unknown-features-warn buildpkg-live binpkg-logs binpkg-dostrip fixlafiles compressdebug usersync xattr userfetch network-sandbox pid-sandbox multilib-strict ipc-sandbox installsources config-protect-if-modified preserve-libs qa-unresolved-soname-deps strict sandbox unmerge-logs usersandbox"

eroen@occam ~ $ emerge -pqv '=dev-python/wxpython-4.2.0::gentoo'
 * ERROR: media-fonts/leggie-3.2::wiktorb failed (depend phase):
 *   font: EAPI 6 not supported
 *
 * Call stack:
 *           ebuild.sh, line 628:  Called source '/var/db/repos/wiktor_b/media-fonts/leggie/leggie-3.2.ebuild'
 *   leggie-3.2.ebuild, line   5:  Called inherit 'font'
 *           ebuild.sh, line 308:  Called __qa_source '/var/db/repos/gentoo/eclass/font.eclass'
 *           ebuild.sh, line 123:  Called source '/var/db/repos/gentoo/eclass/font.eclass'
 *         font.eclass, line  12:  Called die
 * The specific snippet of code:
 *   	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 *
 * If you need support, post the output of `emerge --info '=media-fonts/leggie-3.2::wiktorb'`,
 * the complete build log and the output of `emerge -pqv '=media-fonts/leggie-3.2::wiktorb'`.
 * Working directory: '/usr/lib/python3.11/site-packages'
 * S: '/var/tmp/portage/media-fonts/leggie-3.2/work/leggie-3.2'
[ebuild   R   ] dev-python/wxpython-4.2.0  USE="-test -webkit" PYTHON_TARGETS="python3_11 -python3_10"
Comment 2 Robert Schultz 2023-08-08 13:14:43 UTC
Created attachment 867392 [details, diff]
cython-3 fix

Upstream fix: https://github.com/wxWidgets/Phoenix/pull/2441

I've attached a simple patch that allowed me to compile dev-python/wxpython-4.2.0 against dev-python/cython-3.0.0-r1
Comment 3 Agostino Sarubbo gentoo-dev 2023-08-09 07:48:25 UTC
*** Bug 911946 has been marked as a duplicate of this bug. ***
Comment 4 Magnus Granberg gentoo-dev 2023-08-09 11:34:49 UTC
*** Bug 911967 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Nagel 2023-08-31 18:46:00 UTC
I am affected by the same bug. When will the upstream fix be incorporated into downstream package?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-10 16:25:25 UTC
*** Bug 913904 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2023-09-10 16:29:11 UTC
The bug has been closed via the following commit(s):

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

commit 3270eeb0bb5f0834dc54da4f20b2e9d856510cb2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-10 16:28:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-10 16:28:46 +0000

    dev-python/wxpython: fix build w/ cython-3
    
    Closes: https://bugs.gentoo.org/911703
    Signed-off-by: Sam James <sam@gentoo.org>

 .../wxpython/files/wxpython-4.2.0-cython-3.patch      | 19 +++++++++++++++++++
 dev-python/wxpython/wxpython-4.2.0.ebuild             |  1 +
 2 files changed, 20 insertions(+)