When I try to run Thousand Parsec wxPython Client with python-2.5.2-r8 I get the error: TypeError: character mapping must return integer, None or unicode No such error with python-2.5.2-r7 Reproducible: Always Steps to Reproduce: 1. Install Thousand Parsec wxPython client. Instructions for Gentoo are here: http://www.thousandparsec.net/tp/downloads.php 2. Run the client with tp-pywx-installed Actual Results: You get this error: Traceback (most recent call last): File "/usr/games/lib64/tpclient-pywx/tpclient-pywx", line 487, in <module> app = Application(url) File "/usr/games/lib64/tpclient-pywx/tpclient-pywx", line 458, in __init__ ClientApplication.__init__(self) File "/usr/lib64/python2.5/site-packages/tp/client/threads.py", line 63, in __init__ self.gui = self.GUIClass(self) File "/usr/games/lib64/tpclient-pywx/tpclient-pywx", line 237, in __init__ mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True) File "/usr/lib64/python2.5/gettext.py", line 465, in translation mofiles = find(domain, localedir, languages, all=1) File "/usr/lib64/python2.5/gettext.py", line 437, in find for nelang in _expand_lang(lang): File "/usr/lib64/python2.5/gettext.py", line 132, in _expand_lang locale = normalize(locale) File "/usr/lib64/python2.5/locale.py", line 307, in normalize fullname = localename.translate(_ascii_lower_map) TypeError: character mapping must return integer, None or unicode Expected Results: Client should run just fine like it does with python-2.5.2-r7 This looks like a problem with locale support. My locale is set to Slovenian (sl_SI.utf8).
Please post your `emerge --info dev-lang/python' and reopen this bug report.
Portage 2.2_rc20 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.28-gentoo-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-56-with-glibc2.2.5 Timestamp of tree: Thu, 01 Jan 2009 05:00:17 +0000 app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r5 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1-r1 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="sl_SI.utf8" LC_ALL="sl_SI.utf8" LDFLAGS="-Wl,-O1" LINGUAS="sl en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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="/usr/local/portage/layman/x11 /usr/local/portage/layman/thousand-parsec /root/portage-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 ao apache2 audiofile avahi bash-completition berkdb bluetooth bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread encode exif expat fam ffmpeg fftw flac foomaticdb ftp gdbm geoip gif gmp gphoto2 gpm graphviz gsl gstreamer gtk hal iconv idn ieee1394 imagemagick ipv6 isdnlog jabber jpeg kde kdehiddenvisibility lcms lesstif libsamplerate lm_sensors mad matroska midi mime mmx mng mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcmcia pcre pdf perl php plotutils png ppds pppd python qt3 qt4 quicktime readline recode reflection samba scanner sdl session shorten sndfile speex spell spl sqlite sqlite3 sse sse2 ssl svg sysfs syslog tcpd theora threads tidy tiff truetype unicode usb videos vorbis wifi wmf x264 xattr xcb xcomposite xine xinerama xml xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" 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 ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sl en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-lang/python-2.5.2-r7 was built with the following: CFLAGS="-O2 -fwrapv -march=athlon64 -pipe" CXXFLAGS="-O2 -fwrapv -march=athlon64 -pipe" LDFLAGS="-L. -Wl,-O1" >>> Attempting to run pkg_info() for 'dev-lang/python-2.5.2-r7' * pkg_info() is not defined: 'python-2.5.2-r7.ebuild'
The bug is still present in dev-lang/python-2.5.4
Just updated to dev-lang/python-2.5.4-r1 and all is working fine again. I guess I can mark this bug as fixed.