The test probably also failed in earlier versions, but that was hidden by bug 679628. ====================================================================== FAIL: test_skip (test.test_bdb.StateTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.7.17-r2/work/Python-2.7.17/Lib/test/test_bdb.py", line 745, in test_skip tracer.runcall(tfunc_import) File "/var/tmp/portage/dev-lang/python-2.7.17-r2/work/Python-2.7.17/Lib/test/test_bdb.py", line 468, in __exit__ self.test_case.fail(err_msg) AssertionError: Wrong event type at expect_set item 2, got 'call' Expected: ('line', 3, 'tfunc_import') Got: ('call', 23, 'find_module'), ('quit',), ---------------------------------------------------------------------- Ran 27 tests in 0.021s FAILED (failures=1) test test_bdb failed -- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.7.17-r2/work/Python-2.7.17/Lib/test/test_bdb.py", line 745, in test_skip tracer.runcall(tfunc_import) File "/var/tmp/portage/dev-lang/python-2.7.17-r2/work/Python-2.7.17/Lib/test/test_bdb.py", line 468, in __exit__ self.test_case.fail(err_msg) AssertionError: Wrong event type at expect_set item 2, got 'call' Expected: ('line', 3, 'tfunc_import') Got: ('call', 23, 'find_module'), ('quit',), 1 test failed again: test_bdb == Tests result: FAILURE then FAILURE == 359 tests OK. 1 test failed: test_bdb 42 tests skipped: test_aepack test_al test_applesingle test_bsddb test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dl test_gl test_idle test_imageop test_imgfile test_kqueue test_linuxaudiodev test_macos test_macostools test_msilib test_nis test_ossaudiodev test_scriptpackages test_smtpnet test_socketserver test_startfile test_sunaudiodev test_tcl test_timeout test_tk test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net test_urllibnet test_winreg test_winsound test_zipfile64 8 skips unexpected on linux2: test_bsddb test_bsddb3 test_idle test_tcl test_tk test_ttk_guionly test_ttk_textonly test_turtle 1 re-run test: test_bdb Total duration: 6 min 35 sec Tests result: FAILURE then FAILURE make: *** [Makefile:910: test] Error 2 * ERROR: dev-lang/python-2.7.17-r2::gentoo failed (test phase): * emake failed Reproducible: Always # emerge -pqv '=dev-lang/python-2.7.17-r2::gentoo' [ebuild R ] dev-lang/python-2.7.17-r2 USE="gdbm hardened ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -examples -libressl -tk -wininst" # emerge --info '=dev-lang/python-2.7.17-r2::gentoo' Portage 2.3.96 (python 3.6.10-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-9.3.0, glibc-2.30-r7, 5.6.2 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.6.2-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.7 KiB Mem: 16356612 total, 11908236 free KiB Swap: 20971516 total, 20971516 free Timestamp of repository gentoo: Sun, 05 Apr 2020 09:00:01 +0000 Head commit of repository gentoo: 7913ad681ad83b888e51bcdd5a5d620de80b0318 sh bash 5.0_p16 ld GNU ld (Gentoo 2.34 p1) 2.34.0 app-shells/bash: 5.0_p16::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo dev-util/cmake: 3.17.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34::gentoo sys-devel/gcc: 9.3.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 local location: /var/lib/portage-local/local masters: gentoo priority: 0 testing location: /var/lib/portage-local/testing masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" 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 -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="" MAKEOPTS="-j8" 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 acl acpi alsa amd64 avx bzip2 cairo caps cdda cddb cdparanoia crypt cups dbus dri dts dvd fam ffmpeg fftw flac fontconfig gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg lame lcms libnotify libtirpc lzma mad matroska mmap mmx mmxext mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl seccomp split-usr sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg test theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xinerama xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="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 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" 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" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-lang/python-2.7.17-r2::gentoo was built with the following: USE="gdbm hardened ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -examples -libressl -tk -wininst" CFLAGS="-march=native -mtune=native -O2 -pipe -fwrapv" CXXFLAGS="-march=native -mtune=native -O2 -pipe -fwrapv" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L."
Created attachment 630434 [details] build.log
I am unable to reproduce this. Do you have some package installed that implementes an import hook? https://www.python.org/dev/peps/pep-0302/
(In reply to Mike Gilbert from comment #2) > Do you have some package installed that implementes an import hook? > > https://www.python.org/dev/peps/pep-0302/ I don't know. How can I find such a package?
I would grep for "find_module" in /usr/lib64/python2.7/site-packages.
$ grep -r find_module /usr/lib64/python2.7/site-packages/ /usr/lib64/python2.7/site-packages/setuptools/extern/__init__.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/setuptools/extern/__init__.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/extern/__init__.pyo matches /usr/lib64/python2.7/site-packages/setuptools/_vendor/six.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/setuptools/_vendor/six.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/_vendor/six.pyo matches /usr/lib64/python2.7/site-packages/setuptools/_imp.py:Re-implementation of find_module and get_frozen_object /usr/lib64/python2.7/site-packages/setuptools/_imp.py:def find_module(module, paths=None): /usr/lib64/python2.7/site-packages/setuptools/_imp.py: """Just like 'imp.find_module()', but with package support""" /usr/lib64/python2.7/site-packages/setuptools/py27compat.py: from ._imp import find_module, PY_COMPILED, PY_FROZEN, PY_SOURCE /usr/lib64/python2.7/site-packages/setuptools/py27compat.py: def find_module(module, paths=None): /usr/lib64/python2.7/site-packages/setuptools/py27compat.py: """Just like 'imp.find_module()', but with package support""" /usr/lib64/python2.7/site-packages/setuptools/py27compat.py: f, path, (suffix, mode, kind) = info = imp.find_module(part, paths) /usr/lib64/python2.7/site-packages/setuptools/site-patch.py: loader = importer.find_module('site') /usr/lib64/python2.7/site-packages/setuptools/site-patch.py: stream, path, descr = imp.find_module('site', [item]) /usr/lib64/python2.7/site-packages/setuptools/depends.py:from .py27compat import find_module, PY_COMPILED, PY_FROZEN, PY_SOURCE /usr/lib64/python2.7/site-packages/setuptools/depends.py: 'Require', 'find_module', 'get_module_constant', 'extract_constant' /usr/lib64/python2.7/site-packages/setuptools/depends.py: f, p, i = find_module(self.module, paths) /usr/lib64/python2.7/site-packages/setuptools/depends.py: f, path, (suffix, mode, kind) = info = find_module(module, paths) Binary file /usr/lib64/python2.7/site-packages/setuptools/_imp.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/py27compat.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/site-patch.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/depends.pyc matches Binary file /usr/lib64/python2.7/site-packages/setuptools/_imp.pyo matches Binary file /usr/lib64/python2.7/site-packages/setuptools/py27compat.pyo matches Binary file /usr/lib64/python2.7/site-packages/setuptools/site-patch.pyo matches Binary file /usr/lib64/python2.7/site-packages/setuptools/depends.pyo matches Binary file /usr/lib64/python2.7/site-packages/M2Crypto/six.pyo matches /usr/lib64/python2.7/site-packages/M2Crypto/six.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/M2Crypto/six.pyc matches Binary file /usr/lib64/python2.7/site-packages/SCons/Node/FS.pyo matches /usr/lib64/python2.7/site-packages/SCons/Node/FS.py: file, path, desc = imp.find_module(item, srchpths) Binary file /usr/lib64/python2.7/site-packages/SCons/Node/FS.pyc matches Binary file /usr/lib64/python2.7/site-packages/SCons/Script/Main.pyo matches /usr/lib64/python2.7/site-packages/SCons/Script/Main.py: fp, pathname, description = imp.find_module(site_init_modname, Binary file /usr/lib64/python2.7/site-packages/SCons/Script/Main.pyc matches Binary file /usr/lib64/python2.7/site-packages/SCons/Tool/swig.pyo matches Binary file /usr/lib64/python2.7/site-packages/SCons/Tool/__init__.pyo matches /usr/lib64/python2.7/site-packages/SCons/Tool/swig.py:def _find_modules(src): /usr/lib64/python2.7/site-packages/SCons/Tool/swig.py: mnames, directors = _find_modules(src) /usr/lib64/python2.7/site-packages/SCons/Tool/swig.py: mnames, directors = _find_modules(src) /usr/lib64/python2.7/site-packages/SCons/Tool/__init__.py: file, path, desc = imp.find_module(item, srchpths) Binary file /usr/lib64/python2.7/site-packages/SCons/Tool/swig.pyc matches Binary file /usr/lib64/python2.7/site-packages/SCons/Tool/__init__.pyc matches /usr/lib64/python2.7/site-packages/cffi/vengine_cpy.py: def find_module(self, module_name, path, so_suffixes): /usr/lib64/python2.7/site-packages/cffi/vengine_cpy.py: f, filename, descr = imp.find_module(module_name, path) /usr/lib64/python2.7/site-packages/cffi/vengine_cpy.py: # imp.find_module() locating the .so in priority. /usr/lib64/python2.7/site-packages/cffi/vengine_gen.py: def find_module(self, module_name, path, so_suffixes): /usr/lib64/python2.7/site-packages/cffi/verifier.py: filename = self._vengine.find_module(self.get_module_name(), path, Binary file /usr/lib64/python2.7/site-packages/cffi/vengine_cpy.pyc matches Binary file /usr/lib64/python2.7/site-packages/cffi/vengine_gen.pyc matches Binary file /usr/lib64/python2.7/site-packages/cffi/verifier.pyc matches Binary file /usr/lib64/python2.7/site-packages/cffi/vengine_cpy.pyo matches Binary file /usr/lib64/python2.7/site-packages/cffi/vengine_gen.pyo matches Binary file /usr/lib64/python2.7/site-packages/cffi/verifier.pyo matches /usr/lib64/python2.7/site-packages/pkg_resources/_vendor/six.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/pkg_resources/_vendor/six.pyc matches Binary file /usr/lib64/python2.7/site-packages/pkg_resources/_vendor/six.pyo matches /usr/lib64/python2.7/site-packages/pkg_resources/extern/__init__.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/pkg_resources/extern/__init__.pyc matches Binary file /usr/lib64/python2.7/site-packages/pkg_resources/extern/__init__.pyo matches /usr/lib64/python2.7/site-packages/pkg_resources/__init__.py: loader = importer.find_module(packageName) Binary file /usr/lib64/python2.7/site-packages/pkg_resources/__init__.pyc matches Binary file /usr/lib64/python2.7/site-packages/pkg_resources/__init__.pyo matches /usr/lib64/python2.7/site-packages/urllib3/packages/six.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/urllib3/packages/six.pyc matches Binary file /usr/lib64/python2.7/site-packages/urllib3/packages/six.pyo matches /usr/lib64/python2.7/site-packages/gi/importer.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/gi/importer.pyc matches Binary file /usr/lib64/python2.7/site-packages/gi/importer.pyo matches /usr/lib64/python2.7/site-packages/pyximport/pyximport.py: def find_module(self, fullname, package_path=None): /usr/lib64/python2.7/site-packages/pyximport/pyximport.py: fp, pathname, (ext,mode,ty) = imp.find_module(fullname,package_path) /usr/lib64/python2.7/site-packages/pyximport/pyximport.py: def find_module(self, fullname, package_path=None): /usr/lib64/python2.7/site-packages/pyximport/pyximport.py: importer = self.super.find_module(fullname, package_path) Binary file /usr/lib64/python2.7/site-packages/pyximport/pyximport.pyo matches Binary file /usr/lib64/python2.7/site-packages/pyximport/pyximport.pyc matches /usr/lib64/python2.7/site-packages/Cython/Compiler/CythonScope.py: def find_module(self, module_name, pos): /usr/lib64/python2.7/site-packages/Cython/Compiler/ExprNodes.py: typeinfo_module = env_module.find_module('libcpp.typeinfo', self.pos) /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: def find_module(self, module_name, relative_to=None, pos=None, need_pxd=1, /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: debug_find_module = 0 /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: print("Context.find_module: module_name = %s, relative_to = %s, pos = %s, need_pxd = %s" % ( /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: if debug_find_module: /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py: print("Context.find_module: Parsing %s" % pxd_pathname) /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.py: module_scope = env.find_module( /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.py: module_scope = env.find_module(self.module_name, self.pos, relative_level=self.relative_level) /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.py: submodule_scope = env.context.find_module( /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.py: module = env.find_module(self.module.module_name.value, pos=self.pos, /usr/lib64/python2.7/site-packages/Cython/Compiler/Pipeline.py: scope = context.find_module(full_module_name, pos = initial_pos, need_pxd = 0) /usr/lib64/python2.7/site-packages/Cython/Compiler/Symtab.py: def find_module(self, module_name, pos, relative_level=-1): /usr/lib64/python2.7/site-packages/Cython/Compiler/Symtab.py: return module_scope.context.find_module( /usr/lib64/python2.7/site-packages/Cython/Compiler/TreeFragment.py: def find_module(self, module_name, relative_to=None, pos=None, need_pxd=1, absolute_fallback=True): /usr/lib64/python2.7/site-packages/Cython/Compiler/TreeFragment.py: scope = context.find_module(module_name, pos=initial_pos, need_pxd=False) Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/CythonScope.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/ExprNodes.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Pipeline.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Symtab.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/TreeFragment.pyo matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/UtilityCode.pyo matches /usr/lib64/python2.7/site-packages/Cython/Compiler/UtilityCode.py: def find_module(self, module_name, relative_to=None, pos=None, need_pxd=True, absolute_fallback=True): Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/CythonScope.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/ExprNodes.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Main.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Nodes.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Pipeline.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/Symtab.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/TreeFragment.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Compiler/UtilityCode.pyc matches Binary file /usr/lib64/python2.7/site-packages/Cython/Build/Inline.pyo matches /usr/lib64/python2.7/site-packages/Cython/Build/Inline.py: module = context.find_module(base_type.__module__, need_pxd=False) Binary file /usr/lib64/python2.7/site-packages/Cython/Build/Inline.pyc matches Binary file /usr/lib64/python2.7/site-packages/six.pyo matches /usr/lib64/python2.7/site-packages/six.py: def find_module(self, fullname, path=None): Binary file /usr/lib64/python2.7/site-packages/six.pyc matches
Thanks, I'll try to reproduce with those packages installed.
Still no luck reproducing this with the following packages installed. setuptools scons m2crypto cffi urllib3 cython six
I see the same on my hppa machine. /usr/lib/python2.7/site-packages/virtualenv.pyo /usr/lib/python2.7/site-packages/paste/urlparser.pyc /usr/lib/python2.7/site-packages/paste/urlparser.py /usr/lib/python2.7/site-packages/paste/urlparser.pyo /usr/lib/python2.7/site-packages/bottle.py /usr/lib/python2.7/site-packages/future/standard_library/__init__.py /usr/lib/python2.7/site-packages/future/standard_library/__init__.pyc /usr/lib/python2.7/site-packages/future/standard_library/__init__.pyo /usr/lib/python2.7/site-packages/pip/_vendor/distlib/wheel.pyo /usr/lib/python2.7/site-packages/pip/_vendor/distlib/wheel.py /usr/lib/python2.7/site-packages/pip/_vendor/distlib/wheel.pyc /usr/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py /usr/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.pyc /usr/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.pyo /usr/lib/python2.7/site-packages/pip/_vendor/six.py /usr/lib/python2.7/site-packages/pip/_vendor/six.pyc /usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py /usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.pyc /usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.pyo /usr/lib/python2.7/site-packages/pip/_vendor/six.pyo /usr/lib/python2.7/site-packages/gpg/gpgme.pyo /usr/lib/python2.7/site-packages/gpg/gpgme.py /usr/lib/python2.7/site-packages/gpg/gpgme.pyc /usr/lib/python2.7/site-packages/coverage/execfile.pyc /usr/lib/python2.7/site-packages/coverage/execfile.py /usr/lib/python2.7/site-packages/coverage/execfile.pyo /usr/lib/python2.7/site-packages/bottle.pyo /usr/lib/python2.7/site-packages/setuptools/site-patch.pyo /usr/lib/python2.7/site-packages/setuptools/py27compat.py /usr/lib/python2.7/site-packages/setuptools/site-patch.pyc /usr/lib/python2.7/site-packages/setuptools/_imp.py /usr/lib/python2.7/site-packages/setuptools/extern/__init__.py /usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyc /usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyo /usr/lib/python2.7/site-packages/setuptools/_imp.pyo /usr/lib/python2.7/site-packages/setuptools/depends.pyo /usr/lib/python2.7/site-packages/setuptools/site-patch.py /usr/lib/python2.7/site-packages/setuptools/depends.py /usr/lib/python2.7/site-packages/setuptools/py27compat.pyo /usr/lib/python2.7/site-packages/setuptools/py27compat.pyc /usr/lib/python2.7/site-packages/setuptools/_vendor/six.py /usr/lib/python2.7/site-packages/setuptools/_vendor/six.pyc /usr/lib/python2.7/site-packages/setuptools/_vendor/six.pyo /usr/lib/python2.7/site-packages/setuptools/_imp.pyc /usr/lib/python2.7/site-packages/setuptools/depends.pyc /usr/lib/python2.7/site-packages/pkg_resources/extern/__init__.py /usr/lib/python2.7/site-packages/pkg_resources/extern/__init__.pyc /usr/lib/python2.7/site-packages/pkg_resources/extern/__init__.pyo /usr/lib/python2.7/site-packages/pkg_resources/__init__.py /usr/lib/python2.7/site-packages/pkg_resources/__init__.pyc /usr/lib/python2.7/site-packages/pkg_resources/_vendor/six.py /usr/lib/python2.7/site-packages/pkg_resources/_vendor/six.pyc /usr/lib/python2.7/site-packages/pkg_resources/_vendor/six.pyo /usr/lib/python2.7/site-packages/pkg_resources/__init__.pyo /usr/lib/python2.7/site-packages/werkzeug/utils.pyo /usr/lib/python2.7/site-packages/werkzeug/utils.pyc /usr/lib/python2.7/site-packages/werkzeug/utils.py /usr/lib/python2.7/site-packages/lash.pyc /usr/lib/python2.7/site-packages/Cython/Build/Inline.py /usr/lib/python2.7/site-packages/Cython/Build/Inline.pyo /usr/lib/python2.7/site-packages/Cython/Build/Inline.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/Main.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/Nodes.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/ExprNodes.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/Symtab.py /usr/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/ExprNodes.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/Pipeline.py /usr/lib/python2.7/site-packages/Cython/Compiler/Symtab.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/ExprNodes.py /usr/lib/python2.7/site-packages/Cython/Compiler/Main.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/CythonScope.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/Nodes.py /usr/lib/python2.7/site-packages/Cython/Compiler/Symtab.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/CythonScope.py /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py /usr/lib/python2.7/site-packages/Cython/Compiler/Pipeline.pyc /usr/lib/python2.7/site-packages/Cython/Compiler/Pipeline.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/Nodes.pyo /usr/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.py /usr/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.py /usr/lib/python2.7/site-packages/Cython/Compiler/CythonScope.pyo /usr/lib/python2.7/site-packages/six.py /usr/lib/python2.7/site-packages/pyximport/pyximport.py /usr/lib/python2.7/site-packages/pyximport/pyximport.pyc /usr/lib/python2.7/site-packages/pyximport/pyximport.pyo /usr/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.pyo /usr/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.pyc /usr/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.py /usr/lib/python2.7/site-packages/importlib_metadata/_compat.py /usr/lib/python2.7/site-packages/importlib_metadata/_compat.pyc /usr/lib/python2.7/site-packages/importlib_metadata/_compat.pyo /usr/lib/python2.7/site-packages/SCons/Tool/__init__.py /usr/lib/python2.7/site-packages/SCons/Tool/__init__.pyc /usr/lib/python2.7/site-packages/SCons/Tool/swig.pyc /usr/lib/python2.7/site-packages/SCons/Tool/__init__.pyo /usr/lib/python2.7/site-packages/SCons/Tool/swig.py /usr/lib/python2.7/site-packages/SCons/Tool/swig.pyo /usr/lib/python2.7/site-packages/SCons/Node/FS.py /usr/lib/python2.7/site-packages/SCons/Node/FS.pyo /usr/lib/python2.7/site-packages/SCons/Node/FS.pyc /usr/lib/python2.7/site-packages/SCons/Script/Main.pyo /usr/lib/python2.7/site-packages/SCons/Script/Main.pyc /usr/lib/python2.7/site-packages/SCons/Script/Main.py /usr/lib/python2.7/site-packages/six.pyc /usr/lib/python2.7/site-packages/mercurial/extensions.pyo /usr/lib/python2.7/site-packages/mercurial/extensions.py /usr/lib/python2.7/site-packages/mercurial/extensions.pyc /usr/lib/python2.7/site-packages/mercurial/chgserver.pyc /usr/lib/python2.7/site-packages/mercurial/chgserver.py /usr/lib/python2.7/site-packages/past/translation/__init__.py /usr/lib/python2.7/site-packages/past/translation/__init__.pyc /usr/lib/python2.7/site-packages/past/translation/__init__.pyo /usr/lib/python2.7/site-packages/gi/importer.pyo /usr/lib/python2.7/site-packages/gi/importer.pyc /usr/lib/python2.7/site-packages/gi/importer.py /usr/lib/python2.7/site-packages/virtualenv.pyc /usr/lib/python2.7/site-packages/virtualenv.py /usr/lib/python2.7/site-packages/_pytest/main.pyc /usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyo /usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyc /usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py /usr/lib/python2.7/site-packages/_pytest/main.py /usr/lib/python2.7/site-packages/_pytest/main.pyo /usr/lib/python2.7/site-packages/bottle.pyc /usr/lib/python2.7/site-packages/lash.py /usr/lib/python2.7/site-packages/urllib3/packages/six.py /usr/lib/python2.7/site-packages/urllib3/packages/six.pyc /usr/lib/python2.7/site-packages/urllib3/packages/six.pyo /usr/lib/python2.7/site-packages/nose/importer.pyo /usr/lib/python2.7/site-packages/nose/importer.pyc /usr/lib/python2.7/site-packages/nose/importer.py /usr/lib/python2.7/site-packages/lash.pyo /usr/lib/python2.7/site-packages/pbr/builddoc.pyo /usr/lib/python2.7/site-packages/pbr/builddoc.py /usr/lib/python2.7/site-packages/pbr/builddoc.pyc /usr/lib/python2.7/site-packages/cffi/vengine_cpy.pyc /usr/lib/python2.7/site-packages/cffi/vengine_gen.pyo /usr/lib/python2.7/site-packages/cffi/verifier.pyc /usr/lib/python2.7/site-packages/cffi/vengine_cpy.py /usr/lib/python2.7/site-packages/cffi/vengine_gen.pyc /usr/lib/python2.7/site-packages/cffi/verifier.pyo /usr/lib/python2.7/site-packages/cffi/verifier.py /usr/lib/python2.7/site-packages/cffi/vengine_cpy.pyo /usr/lib/python2.7/site-packages/cffi/vengine_gen.py /usr/lib/python2.7/site-packages/six.pyo
Good news is that I've been able to reproduce on my py-test chroot after installing a lot of packages while debugging logbook. Now just to rerun my testing loop in order to figure out which one was it ;-).
Some bad news: the test fails only when run via ebuild, and only on full test suite (i.e. if you run just test_bdb, it succeeds). This means my effort on triaging it today was a total waste of time and I need to start over, and make it much slower. Good news is that I've at least reduced the number of packages to test.
Ok, I've been able to establish that dev-python/docutils breaks it. It is possible that there are more similar packages but this is the first one I've found. The issue can be reproduced by running two tests: test___all__ (i.e. the usual all-breaker) and test_bdb.
Still happens in 2.7.18-r1.
Still in 2.7.18-r5.