Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] webapp-config gives me UnicodeDecodeError
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nextgen
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2004
Posts: 107
Location: Montreal, Quebec, Canada

PostPosted: Thu Nov 18, 2010 5:01 am    Post subject: [SOLVED] webapp-config gives me UnicodeDecodeError Reply with quote

I want to test a new phpgedview install in my portage overlay. The ebuild installs ok, but when I try to upgrade my web site, webapp-config gives me an error. I have no idea how to fix this. Help would be appreciated. Here's the trace log and further down is my emerge info.

Code:
# webapp-config -U -h xxx.xx.xx -d /phpgedview phpgedview 4.2.3
* Upgrading phpgedview-4.2.1 to phpgedview-4.2.3
*   Installed by root on 2009-07-26 12:18:02
*   Config files owned by 0:0
/usr/lib64/python2.6/site-packages/WebappConfig/content.py:27: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5, re, os, os.path
Traceback (most recent call last):
  File "/usr/sbin/webapp-config", line 44, in <module>
    main()
  File "/usr/sbin/webapp-config", line 41, in main
    config.run()
  File "/usr/lib64/python2.6/site-packages/WebappConfig/config.py", line 1221, in run
    content.read()
  File "/usr/lib64/python2.6/site-packages/WebappConfig/content.py", line 256, in read
    + line_split[3]] = line_split
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 13: ordinal not in range(128)


Code:
# emerge --info
Portage 2.1.9.24 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 18 Nov 2010 02:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/X11/* /etc/ati /etc/ca-certificates.conf /etc/dbus-1 /etc/ekiga /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/gconf /etc/gimp /etc/gnome-vfs-2.0 /etc/init.d /etc/lynx /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/sane.d /etc/sound/events /etc/terminfo /etc/texmf /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev /etc/xdg /usr/lib/X11/* /usr/share/X11/xkb /usr/share/texmf"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://gentoo.mirrors.tera-byte.com/ http://adelie.polymtl.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.llarian.net/ "
LANG="en_US.ISO-8859-1"
LC_ALL="en_US.ISO-8859-1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr es"
MAKEOPTS="-j3"
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 /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb blas branding bzip2 cairo calendar cdr cli consolekit cracklib crypt cups cxx dbus divx dri dts dvd dvdr eds emboss emerald encode evo exif fam ffmpeg flac fortran gd gdbm gdu gif gimp glitz gmedia gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk iconv imagemagick ipv6 jpeg kvm lapack lcms ldap libnotify logrotate mad mailwrapper mikmod mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap multilib mysql nautilus ncurses netpbm nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl php png policykit postfix ppds pppd pulseaudio python qemu qt3support readline realmedia scanner sdl session snmp spell sql sse sse2 ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype udev unicode unzip usb v4l v4l2 vhosts vorbis webkit wmp x264 xcb xine xml xorg xulrunner xv xvid zip 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 cgi cgid 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" CAMERAS="*" 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" LINGUAS="en fr es" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by nextgen on Sun Nov 21, 2010 10:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Sat Nov 20, 2010 12:33 am    Post subject: Reply with quote

You may want to switch to LANG=en_US.UTF-8
http://www.gentoo.org/doc/en/utf-8.xml

I am not sure if it will fix your error but it has other advantages.
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
nextgen
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2004
Posts: 107
Location: Montreal, Quebec, Canada

PostPosted: Sun Nov 21, 2010 10:12 pm    Post subject: Reply with quote

Thanks for the advice.

I followed the guide to convert to en_US.UTF-8 and rebooted.

Still have this:
Code:
# webapp-config -U -h xxx.xxx.xx -d /phpgedview phpgedview 4.2.3
* Upgrading phpgedview-4.2.1 to phpgedview-4.2.3
*   Installed by root on 2009-07-26 12:18:02
*   Config files owned by 0:0
/usr/lib64/python2.6/site-packages/WebappConfig/content.py:27: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5, re, os, os.path
Traceback (most recent call last):
  File "/usr/sbin/webapp-config", line 44, in <module>
    main()
  File "/usr/sbin/webapp-config", line 41, in main
    config.run()
  File "/usr/lib64/python2.6/site-packages/WebappConfig/config.py", line 1227, in run
    content.read()
  File "/usr/lib64/python2.6/site-packages/WebappConfig/content.py", line 256, in read
    + line_split[3]] = line_split
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 13: ordinal not in range(128)


I'm reading some comments in the forum stating that webapp-config might be a dead app. So I might pursue other routes than webapp-config.

Regards,
Back to top
View user's profile Send private message
nextgen
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2004
Posts: 107
Location: Montreal, Quebec, Canada

PostPosted: Sun Nov 21, 2010 10:52 pm    Post subject: [solved] Reply with quote

Using a more "traditionnal" file copy method (instead of webapp-config), I managed to upgrade the site.

For phpgedview to work, I had to add "pdo" use flag to dev-lang/php.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum