Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557098 - dev-python/cffi-1.1.2 fails tests: testing/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_module FAILED
Summary: dev-python/cffi-1.1.2 fails tests: testing/cffi0/test_zintegration.py::TestZI...
Status: RESOLVED OBSOLETE
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:
 
Reported: 2015-08-09 08:22 UTC by Markus Meier
Modified: 2016-01-11 10:18 UTC (History)
1 user (show)

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


Attachments
dev-python:cffi-1.1.2:20150808-095359.log (dev-python:cffi-1.1.2:20150808-095359.log,146.40 KB, text/plain)
2015-08-09 08:22 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2015-08-09 08:22:18 UTC
Created attachment 408592 [details]
dev-python:cffi-1.1.2:20150808-095359.log

* Package:    dev-python/cffi-1.1.2
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        arm elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 python_targets_python3_4 userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

testing/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_module FAILED

=================================================================================================================================== FAILURES ===================================================================================================================================
___________________________________________________________________________________________________________________ TestZIntegration.test_setuptools_module ____________________________________________________________________________________________________________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 0xb57b1df0>

    def test_setuptools_module(self):
        run_setup_and_program("setuptools_module", '''
            import snip_setuptools_verify
            p = snip_setuptools_verify.C.getpwuid(0)
            assert snip_setuptools_verify.ffi.string(p.pw_name) == b"root"
>           ''')

testing/cffi0/test_zintegration.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_zintegration.py:78: in run_setup_and_program
    really_run_setup_and_program(dirname, venv_dir, python_snippet)
testing/cffi0/test_zintegration.py:71: in really_run_setup_and_program
    subprocess.check_call((vp, 'setup.py', 'install'), env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (('/var/tmp/portage/dev-python/cffi-1.1.2/temp/ffi-0/setuptools_module-cpy/bin/python', 'setup.py', 'install'),)
kwargs = {'env': {'A': 'cffi-1.1.2.tar.gz', 'ABI': 'arm', 'ACCEPT_LICENSE': 'MIT', 'APACHE2_MODULES': 'authn_core authz_core so...o mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias', ...}}, retcode = 1
cmd = ('/var/tmp/portage/dev-python/cffi-1.1.2/temp/ffi-0/setuptools_module-cpy/bin/python', 'setup.py', 'install')

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '('/var/tmp/portage/dev-python/cffi-1.1.2/temp/ffi-0/setuptools_module-cpy/bin/python', 'setup.py', 'install')' returned non-zero exit status 1

/usr/lib/python3.3/subprocess.py:547: CalledProcessError
----------------------------------------------------------------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------------------------------------------------------------
Already using interpreter /usr/bin/python3.3
Using base prefix '/usr'
New python executable in /var/tmp/portage/dev-python/cffi-1.1.2/temp/ffi-0/setuptools_module-cpy/bin/python3.3
Also creating executable in /var/tmp/portage/dev-python/cffi-1.1.2/temp/ffi-0/setuptools_module-cpy/bin/python
Please make sure you remove any previous custom paths from your /var/tmp/portage/dev-python/cffi-1.1.2/homedir/python3.3/.pydistutils.cfg file.
Installing setuptools, pip...done.
running clean
removing '/var/tmp/portage/dev-python/cffi-1.1.2/work/cffi-1.1.2-python3_3/build/temp.linux-armv5tel-3.3' (and everything under it)
running install
----------------------------------------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------------------------------------
/usr/lib/python3.3/site-packages/pkg_resources/__init__.py:2510: PEP440Warning: 'pyev (0.8.1-4.04)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to
 PEP 440 compatible versions.
  PEP440Warning,
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    ext_modules=[snip_setuptools_verify.ffi.verifier.get_extension()])
  File "/usr/lib/python3.3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.3/distutils/dist.py", line 930, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.3/distutils/dist.py", line 949, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.3/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/usr/lib/python3.3/site-packages/setuptools/command/install.py", line 103, in do_egg_install
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
  File "/usr/lib/python3.3/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python3.3/site-packages/setuptools/command/easy_install.py", line 316, in finalize_options
    self.index_url, search_path=self.shadow_path, hosts=hosts,
  File "/usr/lib/python3.3/site-packages/setuptools/package_index.py", line 269, in __init__
    Environment.__init__(self,*args,**kw)
  File "/usr/lib/python3.3/site-packages/pkg_resources/__init__.py", line 975, in __init__
    self.scan(search_path)
  File "/usr/lib/python3.3/site-packages/pkg_resources/__init__.py", line 1005, in scan
    self.add(dist)
  File "/usr/lib/python3.3/site-packages/pkg_resources/__init__.py", line 1025, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: NoneType() < str()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================================= 1 failed, 1183 passed, 60 skipped in 3863.27 seconds =============================================================================================================
 * ERROR: dev-python/cffi-1.1.2::gentoo failed (test phase):
 *   Testing failed with python3.3
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 3511:  Called distutils-r1_src_test
 *   environment, line  926:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  280:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3062:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2182:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2180:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  556:  Called distutils-r1_run_phase 'python_test'
 *   environment, line  863:  Called python_test
 *   environment, line 3391:  Called die
 * The specific snippet of code:
 *       py.test -x -v --ignore testing/test_zintegration.py c/ testing/ || die "Testing failed with ${EPYTHON}"

Portage 2.2.20 (python 2.7.9-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-4.8.4, glibc-2.20-r2, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-with-gentoo-2.2
KiB Mem:      513244 total,    280516 free
KiB Swap:    1535996 total,   1285384 free
Timestamp of repository gentoo: Sat, 08 Aug 2015 08:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.1.100/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /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="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" 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" 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" INPUT_DEVICES="keyboard mouse evdev" 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-2 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos freedreno omap" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-08-14 06:30:30 UTC
This looks totally spurious

~/github/gentoo/dev-python/cffi $ PYTHON_TARGETS=python3_3 ebuild cffi-1.1.2.ebuild clean test

yields

== 1652 passed, 66 skipped, 4 xfailed in 286.20 seconds ==
 * python3_3: running distutils-r1_run_phase _clean_egg_info
>>> Completed testing dev-python/cffi-1.1.2

So did not replicate.

This snippet

Please make sure you remove any previous custom paths from your /var/tmp/portage/dev-python/cffi-1.1.2/homedir/python3.3/.pydistutils.cfg file.
Installing setuptools, pip...done.

suggests your run did an install of setuptools using pip which is counter to a proper run.  How emerge missed emerging setuptools as a matter of course I have no idea. How it managed to download and install during the run means your probably didn't have network-sandbox set under FEATURES. It should have aborted with a sandbox violation attempting to access the net
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2016-01-11 10:18:08 UTC
commit 750bfe0c737dca7c61884c6b7bf2e2b1479a48cb
Author: Justin Lecher <jlec@gentoo.org>
Date:   Mon Jan 11 11:13:49 2016 +0100

    dev-python/cffi: Drop old

    obsoletes
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=557098

    Package-Manager: portage-2.2.26
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

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