Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410725 - dev-python/python-dateutil-2.1 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 193: ordinal not in range(128)
Summary: dev-python/python-dateutil-2.1 - UnicodeDecodeError: 'ascii' codec can't deco...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://code.launchpad.net/~floppym/d...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-03 22:50 UTC by Fred Krogh
Modified: 2012-04-08 20:17 UTC (History)
0 users

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


Attachments
emerge --info =dev-python/python-dateutil-2.1 (info_python_dateutil,4.99 KB, text/plain)
2012-04-03 22:50 UTC, Fred Krogh
Details
emerge -pqv =dev-python/python-dateutil-2.1 (emerge_python_dateutil,65 bytes, text/plain)
2012-04-03 22:51 UTC, Fred Krogh
Details
/var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log (build.log,3.58 KB, text/plain)
2012-04-03 22:52 UTC, Fred Krogh
Details
/var/tmp/portage/dev-python/python-dateutil-2.1/temp/environment (environment,152.86 KB, text/plain)
2012-04-03 22:53 UTC, Fred Krogh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Krogh 2012-04-03 22:50:38 UTC
Created attachment 307679 [details]
emerge --info =dev-python/python-dateutil-2.1

Problems appeared as:

copying dateutil/zoneinfo/zoneinfo--latest.tar.gz -> build-2.7/lib/dateutil/zoneinfo
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/python-dateutil-2.1 with CPython 3.2...
python3.2 setup.py build -b build-3.2
Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
  File "/usr/lib64/python3.2/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 193: ordinal not in range(128)
 * ERROR: dev-python/python-dateutil-2.1 failed (compile phase):
 *   Building failed with CPython 3.2 in distutils_building() function


I'm adding as attachments what what suggested in the output.
Comment 1 Fred Krogh 2012-04-03 22:51:18 UTC
Created attachment 307681 [details]
emerge -pqv =dev-python/python-dateutil-2.1
Comment 2 Fred Krogh 2012-04-03 22:52:31 UTC
Created attachment 307683 [details]
/var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log
Comment 3 Fred Krogh 2012-04-03 22:53:14 UTC
Created attachment 307685 [details]
/var/tmp/portage/dev-python/python-dateutil-2.1/temp/environment
Comment 4 Fred Krogh 2012-04-03 22:54:25 UTC
emerge --info
Portage 2.1.10.55 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.14.1-r2, 3.3.0-gentoo x86_64)
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 03 Apr 2012 22:00:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.4
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude=/.unionfs --exclude=.fuse_hidden*"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X acl alsa amd64 apache2 apng auctex bash-completion bcmath berkdb bzip2 cairo cdrom clamav clamd cli colordiff consolekit cracklib crypt cups cxx dbus debugger device-mapper dri dvd dvdr dvdread emacs emul-linux86 fastcgi fortran ftpuf g3dvl gdbm gdu gpm graphite gtk gudev iconv icu ipod ipv6 java javascript jpeg kpathsea latex latin1 libclamav libwww logrotate mbox mmx modules mouse mp3 mudflap multilib mysql nat ncurses nls nptl nptlonly nsplugin nvidia ogg openmp pam pcre pdf png policykit pop pop3d pppd preview-latex python qt3support qt4 readline regex samba session smbclient sockets sound spamassassin sqlite sse sse2 ssl svg symlink sysfs tcpd threads thunderbird truetype udev unicode vdpau vhosts webkit wxwidgets xcomposite xorg xulrunner zlib" 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" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers hwdb ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http python rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 5 Mike Gilbert gentoo-dev 2012-04-04 02:24:26 UTC
Please select a UTF-8 locale. For example:

eselect locale set en_US.UTF-8; . /etc/profile
Comment 6 Fred Krogh 2012-04-04 02:28:35 UTC
That fixed it.  I had no idea that something like this was needed.  Many thanks.
Comment 7 Mike Gilbert gentoo-dev 2012-04-04 02:50:29 UTC
That's really more of a workaround than a fix. I'm working on a patch.
Comment 8 Mike Gilbert gentoo-dev 2012-04-04 02:55:36 UTC
Fixed for real now. Just need to send it upstream.

+  04 Apr 2012; Mike Gilbert <floppym@gentoo.org>
+  +files/python-dateutil-2.1-open-utf-8.patch, python-dateutil-2.1.ebuild:
+  Fix UnicodeDecodeError in setup.py. Bug 410725.
Comment 9 Mike Gilbert gentoo-dev 2012-04-08 20:17:47 UTC
Merge request sent upstream.