Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392615 - dev-python/unittest2-0.5.1 - /usr/lib/python3.1/distutils/core.py: TypeError: can't use a bytes pattern on a string-like object
Summary: dev-python/unittest2-0.5.1 - /usr/lib/python3.1/distutils/core.py: TypeError:...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 14:16 UTC by Tom Hendrikx
Modified: 2011-12-07 18:15 UTC (History)
0 users

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


Attachments
Complete build log for unittest2 (unittest2-build.log,20.58 KB, text/plain)
2011-11-30 14:16 UTC, Tom Hendrikx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hendrikx 2011-11-30 14:16:05 UTC
Created attachment 294313 [details]
Complete build log for unittest2

This ebuild fails on a stable gentoo environment: 

changing mode of /var/tmp/portage/dev-python/unittest2-0.5.1/temp/images/3.1/usr/bin/unit2.py to 755
Traceback (most recent call last):
  File "setup.py", line 82, in <module>
    setup(**params)
  File "/usr/lib/python3.1/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python3.1/distutils/dist.py", line 919, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.1/site-packages/setuptools/command/install.py", line 53, in run
    return _install.run(self)
  File "/usr/lib/python3.1/distutils/command/install.py", line 592, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.1/distutils/cmd.py", line 315, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.1/site-packages/setuptools/command/install_scripts.py", line 37, in run
    for args in get_script_args(dist, executable, is_wininst):
  File "/usr/lib/python3.1/site-packages/setuptools/command/easy_install.py", line 1750, in get_script_args
    header = get_script_header("", executable, wininst)
  File "/usr/lib/python3.1/site-packages/setuptools/command/easy_install.py", line 1602, in get_script_header
    match = first_line_re.match(first)
TypeError: can't use a bytes pattern on a string-like object
 * ERROR: dev-python/unittest2-0.5.1 failed (install phase):
 *   Installation failed with CPython 3.1 in distutils_installation() function
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 3656:  Called distutils_src_install
 *   environment, line  996:  Called python_execute_function '-s' 'distutils_installation'
 *   environment, line 2032:  Called die


output of "emerge --info =dev-python/unittest2-0.5.1":
=====
Portage 2.1.10.11 (hardened/linux/x86, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-hardened-r4 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.4-hardened-r4-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 30 Nov 2011 11:45:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise whyscream-experimental
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://trumpetti.atm.tut.fi/gentoo http://mirror.uni-c.dk/pub/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.heanet.ie/pub/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/whyscream-experimental"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="bash-completion bzip2 cracklib crypt cxx gdbm hardened iconv mudflap ncurses nptl nptlonly pam pax_kernel pcre pic readline ssl sysfs tcpd unicode urandom x86 zlib" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" ELIBC="glibc" KERNEL="linux" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=====
Comment 1 Arfrever Frehtes Taifersar Arahesis 2011-12-06 01:56:26 UTC
You have old version of dev-python/setuptools installed, which is incompatible with >=dev-lang/python-3.1.4:3.1 and >=dev-lang/python-3.2.1.
Comment 2 Tom Hendrikx 2011-12-07 18:15:21 UTC
Confirmed, after upgrading setuptools from dev-python/setuptools-0.6.14 to dev-python/setuptools-0.6.21, the error disappeared. somehow, this dependency was not picked by 'emerge --deep --upgrade ...'

Thanks for helping out.