Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402751 - dev-python/virtualenv-1.7 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)
Summary: dev-python/virtualenv-1.7 - UnicodeDecodeError: 'ascii' codec can't decode by...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 18:56 UTC by Laurens Vets
Modified: 2012-02-18 18:06 UTC (History)
0 users

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 Laurens Vets 2012-02-08 18:56:02 UTC
Trying to emerge virtualenv 1.7 results in an error:

walhalla ~ # emerge virtualenv
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/virtualenv-1.7
>>> Downloading 'http://de-mirror.org/gentoo/distfiles/virtualenv-1.7.tar.gz'
--2012-02-08 17:58:11--  http://de-mirror.org/gentoo/distfiles/virtualenv-1.7.tar.gz
Resolving de-mirror.org... 87.106.54.147
Connecting to de-mirror.org|87.106.54.147|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2125413 (2.0M) [application/x-gzip]
Saving to: `/usr/portage/distfiles/virtualenv-1.7.tar.gz'

100%[======================================>] 2,125,413   2.95M/s   in 0.7s

2012-02-08 17:58:12 (2.95 MB/s) - `/usr/portage/distfiles/virtualenv-1.7.tar.gz' saved [2125413/2125413]

 * virtualenv-1.7.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking virtualenv-1.7.tar.gz to /var/tmp/portage/dev-python/virtualenv-1.7/work
>>> Source unpacked in /var/tmp/portage/dev-python/virtualenv-1.7/work
>>> Preparing source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
 * Building of dev-python/virtualenv-1.7 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib
copying virtualenv.py -> build-2.7/lib
creating build-2.7/lib/virtualenv_support
copying virtualenv_support/__init__.py -> build-2.7/lib/virtualenv_support
copying virtualenv_support/setuptools-0.6c11-py2.7.egg -> build-2.7/lib/virtualenv_support
copying virtualenv_support/distribute-0.6.24.tar.gz -> build-2.7/lib/virtualenv_support
copying virtualenv_support/pip-1.0.2.tar.gz -> build-2.7/lib/virtualenv_support
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/virtualenv-1.7 with CPython 3.1...
python3.1 setup.py build -b build-3.1
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    long_description += "\n\n" + f.read()
  File "/usr/lib/python3.1/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)
 * ERROR: dev-python/virtualenv-1.7 failed (compile phase):
 *   Building failed with CPython 3.1 in distutils_building() function
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3605:  Called distutils_src_compile
 *   environment, line  930:  Called python_execute_function 'distutils_building'
 *   environment, line 1993:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *
 * If you need support, post the output of 'emerge --info =dev-python/virtualenv-1.7',
 * the complete build log and the output of 'emerge -pqv =dev-python/virtualenv-1.7'.
 * The complete build log is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/environment'.
 * S: '/var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7'

>>> Failed to emerge dev-python/virtualenv-1.7, Log file:

>>>  '/var/tmp/portage/dev-python/virtualenv-1.7/temp/build.log'

 * Messages for package dev-python/virtualenv-1.7:

 * ERROR: dev-python/virtualenv-1.7 failed (compile phase):
 *   Building failed with CPython 3.1 in distutils_building() function
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3605:  Called distutils_src_compile
 *   environment, line  930:  Called python_execute_function 'distutils_building'
 *   environment, line 1993:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *
 * If you need support, post the output of 'emerge --info =dev-python/virtualenv-1.7',
 * the complete build log and the output of 'emerge -pqv =dev-python/virtualenv-1.7'.
 * The complete build log is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/environment'.
 * S: '/var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7'
walhalla ~ #



walhalla ~ # emerge --info =dev-python/virtualenv-1.7
Portage 2.1.10.45 (default/linux/powerpc/ppc32/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 ppc)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-r2-ppc-7447A,_altivec_supported-with-gentoo-2.0.3
Timestamp of tree: Wed, 08 Feb 2012 16:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.4
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.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="=icinga-1.6.1-r2 >=media-libs/gd-2.0.35-r3 acl altivec apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gd gdbm gpm iconv jpeg modules mudflap mysql mysqli ncurses nfs nls nptl nptlonly openmp pam pcre php plugins png ppc pppd readline session ssl sysfs tcpd unicode vhosts web xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident dummy v4l" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
walhalla ~ #


walhalla ~ # cat /var/tmp/portage/dev-python/virtualenv-1.7/temp/build.log
 * Package:    dev-python/virtualenv-1.7
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        elibc_glibc kernel_linux ppc userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking virtualenv-1.7.tar.gz to /var/tmp/portage/dev-python/virtualenv-1.7/work
>>> Source unpacked in /var/tmp/portage/dev-python/virtualenv-1.7/work
>>> Preparing source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7 ...
 * Building of dev-python/virtualenv-1.7 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib
copying virtualenv.py -> build-2.7/lib
creating build-2.7/lib/virtualenv_support
copying virtualenv_support/__init__.py -> build-2.7/lib/virtualenv_support
copying virtualenv_support/setuptools-0.6c11-py2.7.egg -> build-2.7/lib/virtualenv_support
copying virtualenv_support/distribute-0.6.24.tar.gz -> build-2.7/lib/virtualenv_support
copying virtualenv_support/pip-1.0.2.tar.gz -> build-2.7/lib/virtualenv_support
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/virtualenv-1.7 with CPython 3.1...
python3.1 setup.py build -b build-3.1
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    long_description += "\n\n" + f.read()
  File "/usr/lib/python3.1/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)
 * ERROR: dev-python/virtualenv-1.7 failed (compile phase):
 *   Building failed with CPython 3.1 in distutils_building() function
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3605:  Called distutils_src_compile
 *   environment, line  930:  Called python_execute_function 'distutils_building'
 *   environment, line 1993:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *
 * If you need support, post the output of 'emerge --info =dev-python/virtualenv-1.7',
 * the complete build log and the output of 'emerge -pqv =dev-python/virtualenv-1.7'.
 * The complete build log is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/virtualenv-1.7/temp/environment'.
 * S: '/var/tmp/portage/dev-python/virtualenv-1.7/work/virtualenv-1.7'
walhalla ~ #

Reproducible: Always

Steps to Reproduce:
1. Emerge virtualenv
2. Wait
3. Boom, error!


Expected Results:  
Virtualenv should install?
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-02-17 08:39:08 UTC
Can you try with virtualenv-1.7.1.1?
Comment 2 Laurens Vets 2012-02-18 18:06:55 UTC
Virtualenv-1.7.1.1 works! Thank You.