Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464106 - app-emacs/pymacs-0.25-r1: UnicodeDecodeError in configure phase with C locale
Summary: app-emacs/pymacs-0.25-r1: UnicodeDecodeError in configure phase with C locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
: 464202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-01 17:26 UTC by Juergen Rose
Modified: 2023-06-14 08:03 UTC (History)
2 users (show)

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 Juergen Rose 2013-04-01 17:26:09 UTC
'emerge pymacs' fails with:
...
make -j2 PYSETUP=: PYTHON=python3.2 
python3.2 pppp -C ppppconfig.py *.in contrib tests
make -j2 PYSETUP=: PYTHON=python2.7 
python2.7 pppp -C ppppconfig.py *.in contrib tests
Traceback (most recent call last):
  File "pppp", line 421, in <module>
    main(*sys.argv[1:])
  File "pppp", line 80, in main
    exec(compile(open(value).read(), value, 'exec'), self.context)
  File "ppppconfig.py", line 16, in <module>
    VERSION = get_version()
  File "ppppconfig.py", line 11, in get_version
    for line in open('setup.py'):
  File "/usr/lib/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 699: ordinal not in range(128)
make: *** [all] Error 1
 * ERROR: app-emacs/pymacs-0.25-r1 failed (configure phase):




root@cheetah:/root(30)# emerge --info '=app-emacs/pymacs-0.25-r1'
Portage 2.1.11.59 (default/linux/x86/13.0, gcc-4.7.2, glibc-2.17, 3.8.2-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.2-gentoo-i686-AMD_Athlon-tm-_Processor-with-gentoo-2.2
KiB Mem:      512784 total,    179300 free
KiB Swap:    8385920 total,   8358200 free
Timestamp of tree: Mon, 01 Apr 2013 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science sunrise x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-10.3 cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
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/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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=athlon -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
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="/var/lib/layman/science /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext R X Xaw3d a52 aac acl acpi admin alsa ao apache2 apng applet archive arpack aspell assistant audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz gsl gstreamer gtk gtk3 gudev guile harness hddtemp hdf hdf5 hdri html http httpd hwdb iconv icq icu id3 id3tag imagemagick inotify introspection ipod ipv6 ithreads jadetex java jbig john jpeg jpeg2k kate kdrive kerberos keymap kpathsea ladspa lame latex ldap lensfun libffi libkms libnotify libsamplerate live lua lzo mad mail maildir math matroska media-library mercurial mikmod mmx mmxext mng mod modules mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp overview pam pcre pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout slang smart smbclient sndfile snmp soap sockets sound soup sox speex spell sql sqlite ssl stlport subtitles subversion sudo suexec svg svm swig szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales v4l vaapi vala vdpau video visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 x86 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid yaml youtube zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="mga matrox" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


root@cheetah:/root(31)# emerge -pqv '=app-emacs/pymacs-0.25-r1'
[ebuild     U ] app-emacs/pymacs-0.25-r1 [0.25] USE="doc" PYTHON_TARGETS="python2_7 python3_2%* -python2_5 -python2_6 -python3_1% (-python3_3)" 

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-01 23:09:14 UTC
Please attach the complete build log.
Comment 2 Ulrich Müller gentoo-dev 2013-04-02 12:33:37 UTC
(In reply to comment #1)
> Please attach the complete build log.

Actually, the information provided in comment #0 is sufficient. I can reproduce the bug.

Just to confirm, does the error still happen if you set LC_CTYPE=en_US.UTF-8 ?
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-02 14:39:39 UTC
*** Bug 464202 has been marked as a duplicate of this bug. ***
Comment 4 cmuelle8 2013-04-03 15:36:36 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Please attach the complete build log.
> 
> Actually, the information provided in comment #0 is sufficient. I can
> reproduce the bug.
> 
> Just to confirm, does the error still happen if you set LC_CTYPE=en_US.UTF-8
> ?

I have the same issue with a different python package
  dev-python/python-mpd-0.5.1
but same python version
  dev-lang/python-3.2.3-r2



I can confirm that setting LC_ALL helps, just setting LC_CTYPE was not sufficient here.  I put the following into /etc/paludis/bashrc to make the build work temporarily:
case "${CATEGORY}/${PN}" in
	*/python-mpd)   LC_ALL="de_DE.UTF-8" ;;
esac



Reinstalling python did not help, so I searched bugs.g.o with comment:ascii.py and stumbled upon this bug.  The error message for python.mpd is similar:
>>> Starting src_compile
 * python3_2: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.2 setup.py build --build-base /var/tmp/paludis/dev-python-python-mpd-0.5.1/work/python-mpd-0.5.1-python3_2 --build-platlib /var/tmp/paludis/dev-python-python-mpd-0.5.1/work/python-mpd-0.5.1-python3_2/lib --build-purelib /var/tmp/paludis/dev-python-python-mpd-0.5.1/work/python-mpd-0.5.1-python3_2/lib --build-scripts /var/tmp/paludis/dev-python-python-mpd-0.5.1/work/python-mpd-0.5.1-python3_2/scripts
Traceback (most recent call last):
  File "setup.py", line 56, in <module>
    long_description=read('README.rst'),
  File "setup.py", line 48, in read
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
  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 0xe2 in position 6692: ordinal not in range(128)

!!! ERROR in dev-python/python-mpd-0.5.1::gentoo:
!!! In esetup.py at line 2934
!!! (no message provided)
Comment 5 Lee Trager 2013-04-08 07:36:09 UTC
Setting LC_CTYPE=en_US.UTF-8 fixed it for me. I'm kind of confused because thats what my system is set for anyway.
Comment 6 Robert Golding 2013-08-28 10:35:01 UTC
I had this same emerge fail error with four packages in Gnome-3:-
   gnome-core-apps
   gnome-terminal
   gnome-shell
   gnome-screensaver

After remerging python and perl along with base-unicode not fixing it I was glad to find this fix here.

Setting LC_CTYPE=en_AU.UTF-8 did the trick nicely.
Comment 7 Maciej Barć gentoo-dev 2023-06-14 08:03:27 UTC
app-emacs/pymacs-0.25-r1 gone form the tree.

Duplicate closed but this one remains.

Can not reproduce with pymacs-0.26-r3.