kes@eclipse ~ $ ftpcube
Traceback (most recent call last):
File "/usr/bin/ftpcube", line 24, in ?
main.main(sys.argv)
File "/usr/lib64/python2.4/site-packages/libftpcube/main.py", line 216, in main
app.createMainWindow()
File "/usr/lib64/python2.4/site-packages/libftpcube/main.py", line 65, in createMainWindow
self.main_window = mainwin.MainWindow(None, _("Ftpcube"))
File "/usr/lib64/python2.4/site-packages/libftpcube/mainwin.py", line 124, in __init__
self.localwin = browsewin.LocalWindow(bsplitter)
File "/usr/lib64/python2.4/site-packages/libftpcube/browsewin.py", line 281, in __init__
self.updateListing(self.getDir())
File "/usr/lib64/python2.4/site-packages/libftpcube/browsewin.py", line 545, in updateListing
self.list.InsertImageStringItem(i, item[0], img_index)
File "/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_controls.py", line 4817, in InsertImageStringItem
return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs)
File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xab in position 3: unexpected code byte
--------------------------------------
From root program starts normally, but it's not good method to work.
Logged In: NO
If this is important, there is info about my system:
Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21-ck2 x86_64)
=================================================================
System uname: 2.6.21-ck2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 07 Jun 2007 22:30:09 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-tsk-01.gentoo.tonet.ru ftp://ftp-tsk-02.gentoo.tonet.ru ftp://ftp-tsk-03.gentoo.tonet.ru ftp://ftp-tsk-04.gentoo.tonet.ru ftp://ftp-tsk-05.gentoo.tonet.ru ftp://ftp-svr-01.gentoo.tonet.ru ftp://ftp-svr-02.gentoo.tonet.ru ftp://ftp-svr-03.gentoo.tonet.ru ftp://ftp-svr-04.gentoo.tonet.ru ftp://ftp-svr-05.gentoo.tonet.ru ftp://ftp-svr-06.gentoo.tonet.ru ftp://darkside.tomsk.ru"
LANG="en_US.utf-8"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.tonet.ru/gentoo-portage/"
USE="X acl alsa amd64 berkdb bitmap-fonts cli cracklib crypt cups dbus dri fortran gdbm gpm iconv isdnlog jpeg libg++ mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Logged In: NO
same problem here...
Logged In: NO
the following fixed it for me:
add a file called "sitecustomize.py" to /usr/lib64/python2.4/site-packages with the following content:
import sys
sys.setdefaultencoding('latin1')
(use codepage you need instead of latin1).