Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540864 - games-util/pyfa-1.8.1 - pyfa: File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module> import _core_: ImportError: dynamic module does not define init function (init_core_)
Summary: games-util/pyfa-1.8.1 - pyfa: File "/usr/lib64/python2.7/site-packages/wx-2.8...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-21 01:02 UTC by wolfwood
Modified: 2015-02-21 17:24 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 wolfwood 2015-02-21 01:02:18 UTC
running pyfa fails with an ImportError. also happens with pyfa-9999 and a straight git repo. has been functional from over a year previously.

should make a difference, but I confirmed it still happens when I emerged wxpython with LTO disabled.  wxGTK was already installed with LTO disabled.

Reproducible: Always

Steps to Reproduce:
1. install pyfa
2. run 'pyfa'
3. premature exit with the above error
Actual Results:  
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/pyfa", line 85, in <module>
    import wx
  File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: dynamic module does not define init function (init_core_)

Expected Results:  
a GUI is displayed.  program does not exit.

wolfwood@minerva ~ (minerva⚡) $ emerge --info
Portage 2.2.17 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.18.7-gentoo x86_64)
=================================================================
System uname: Linux-3.18.7-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.2
KiB Mem:    16409356 total,   1427272 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 20 Feb 2015 23:45:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo git) 2.25.51.20150218
ccache version 3.2.1 [enabled]
app-shells/bash:          4.3_p33-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.2::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo, 9999::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

anders-larsson
    location: /var/lib/layman/anders-larsson
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

wine-d3dstream
    location: /var/lib/layman/wine-d3dstream
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --load-average=5.95"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://128.61.111.9/pub/gentoo rsync://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.pair.com/ rsync://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
MAKEOPTS="-j 8 -l 5.95"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac aacplus aalib acpi aio alsa amd64 amr ao apng audiofile autotrace bash-completion berkdb bs2b bzip2 cairo clang cli color colordiff colors corefonts cracklib crypt cscope curl cvs cxx darcs dbus dirac dri dri3 drm emacs equalizer ffmpeg fftw flac fontconfig fortran fpx ftgl g3dvl gbm gdbm gif git glut gmp gnutls gold gpm graphite graphviz gsm gtk gtk3 gtkstyle gzip harfbuzz helpers iconv icu infinality inotify ithreads jpeg jpeg2k keymap lame latex libav libcaca libffi libnotify libsamplerate llvm lpsol lto lzma lzo mad matroska mercurial mesa mmap mmx mmxext modules mp3 mp4 mpd mpg123 mplayer multilib ncurses nptl nsplugin ntpl ogg openal opengl openmp openssl osmesa pam pango pcf pch pcre pdf perl png pulseaudio python python3 qt4 readline realtime rtmp schroedinger sdl session sharedmem slang smp sndfile speex spell sqlite sqlite3 sse sse2 sse3 sse4a ssl subversion svg swig theora threads tiff tk truetype twolame udev unicode vdpau vorbis vpx webgl webkit webm webp winbind x264 xattr xcb xft xinerama xkb xv xvfb xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext 3dnow 3dnowext sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-02-21 16:17:50 UTC
(In reply to wolfwood from comment #0)
>   File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module>
>     import _core_
> ImportError: dynamic module does not define init function (init_core_)

This sounds like a broken wxpython build.

Please add the "package settings" section of the output of
emerge --info python wxpython wxGTK

Assigning to wxpython maintainers.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-02-21 16:21:19 UTC
And I would strongly recommend disabling ccache, setting safe CFLAGS ("-march=native -O2 -pipe"), and then rebuilding wxGTK and wxpython.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-02-21 16:23:27 UTC
(In reply to Alexandre Rostovtsev from comment #2)
> And I would strongly recommend disabling ccache, setting safe CFLAGS
> ("-march=native -O2 -pipe"), and then rebuilding wxGTK and wxpython.

More specifically: rebuilding wxGTK:2.8 and wxpython:2.8 ("emerge wxpython" would rebuild wxpython-3.0.2.0, which doesn't help pyfa since it uses wxpython-2.8.12.1)
Comment 4 wolfwood 2015-02-21 16:39:48 UTC
dev-lang/python-2.7.9-r2::gentoo was built with the following:
USE="gdbm ncurses readline sqlite ssl threads tk (wide-unicode) xml -berkdb -build -doc -examples -hardened -ipv6 -wininst" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fwrapv"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -L."


dev-lang/python-3.2.5-r6::gentoo was built with the following:
USE="gdbm ncurses readline sqlite ssl threads tk (wide-unicode) xml -build -doc -examples -hardened -ipv6 -wininst" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fwrapv"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -L."


dev-lang/python-3.3.5-r1::gentoo was built with the following:
USE="gdbm ncurses readline sqlite ssl threads tk xml -build -doc -examples -hardened -ipv6 -wininst" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fwrapv"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -L."


dev-lang/python-3.4.2::gentoo was built with the following:
USE="gdbm ncurses readline sqlite ssl threads tk xml -build -examples -hardened -ipv6 -wininst" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fwrapv"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -L."


dev-python/wxpython-2.8.12.1-r2::gentoo was built with the following:
USE="cairo opengl -doc -examples" ABI_X86="64" PYTHON_TARGETS="python2_7"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-strict-aliasing"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-strict-aliasing"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"


dev-python/wxpython-3.0.2.0::gentoo was built with the following:
USE="cairo libnotify opengl -examples" ABI_X86="64" PYTHON_TARGETS="python2_7"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin"


x11-libs/wxGTK-2.8.12.1-r1::gentoo was built with the following:
USE="X opengl pch sdl tiff (-aqua) -debug -doc -gnome -gstreamer -odbc" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin -fno-strict-aliasing"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin -fno-strict-aliasing"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin"


x11-libs/wxGTK-3.0.2.0-r1::gentoo was built with the following:
USE="X libnotify opengl sdl tiff webkit (-aqua) -debug -doc -gstreamer" ABI_X86="64"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin"
Comment 5 wolfwood 2015-02-21 17:01:11 UTC
rebuild as requested, ccache removed from features and I made a safe-flags env with:
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

fixed the issue.  Sorry to trouble you.
Comment 6 wolfwood 2015-02-21 17:24:07 UTC
it seems CCACHE was to blame in this case.