Listen Media Player refuses to start after a big world update. It's hard to say which particular update caused it to break as over 150 ebuilds has been updated. Reproducible: Always Steps to Reproduce: Try to launch listen. Actual Results: The output from the terminal: $ listen /usr/lib/listen/stock.py:78: DeprecationWarning: Non-ASCII character '\xc3' in f ile /usr/lib/listen/const.py on line 117, but no encoding declared; see http://w ww.python.org/peps/pep-0263.html for details import const /usr/lib/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /usr/lib/listen/song.py on line 716, but no encoding declared; see http://w ww.python.org/peps/pep-0263.html for details from song import sType No musicbrainz support (musicbrainz2 missing) No iPod support No Audio cd support (musicbrainz2 missing) Traceback (most recent call last): File "/usr/lib/listen/listen.py", line 219, in ? ListenApp() File "/usr/lib/listen/listen.py", line 146, in __init__ self.listen_instance = Listen() File "/usr/lib/listen/widget/listen.py", line 121, in __init__ self.dbus_service = ListenDBus(self,player) File "/usr/lib/listen/dbus_manager.py", line 56, in __init__ dbus.service.Object.__init__(self, bus_name, object_path) File "//usr/lib/python2.4/site-packages/dbus/service.py", line 402, in __init_ _ _dbus_bindings.validate_object_path(object_path) ValueError: Invalid object path '/org/gnome/listen/': ends with '/' and is not j ust '/' $ Expected Results: Listen runs without any problems. $ emerge info Portage 2.1.2.7 (default-linux/x86/no-nptl, gcc-4.1.2, glibc-2.5-r2, 2.6.20-gentoo-r4 i686) ================================================================= System uname: 2.6.20-gentoo-r4 i686 AMD Athlon(TM) XP 3000+ Gentoo Base System release 1.12.10 Timestamp of tree: Fri, 18 May 2007 17:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.32 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="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -g" CHOST="i686-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/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.po.opole.pl http://src.gentoo.pl http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://ftp.citkit.ru/pub/Linux/gentoo ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.blueyonder.co.uk " LANG="pl_PL" LC_ALL="pl_PL.UTF-8" LINGUAS="pl en" 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/portage /usr/local/portage/xeffects/trunk /usr/local/portage/xeffects/experimental" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 alsa apm arts bash-completion berkdb bitmap-fonts bzip2 ccache cddb cdr cli cracklib crypt cups dbus dri dvd dvdread eds emboss encode ffmpeg firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv imlib ipv6 isdnlog jabber jack jpeg libg++ libnotify libwww mad midi mikmod motif mozbranding mp3 mpeg mplayer ncurses nls ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline real reflection samba sdl session spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis x86 xml xorg xv xvid zlib" 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 175495 ***
This is not a duplicate. Emerging dev-python/python-musicbrainz2 from an overlay maybe could help me with playing audio CDs, but my problem is not related to CDs but to launching Listen. Here's the output after emerging mentioned library. Listen still does not launch. Take a closer look at the lines below "No iPod support". These lines do not occur in the case described in bug #175495. $ listen /usr/lib/listen/stock.py:78: DeprecationWarning: Non-ASCII character '\xc3' in file /usr/lib/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details import const /usr/lib/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /usr/lib/listen/song.py on line 716, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details from song import sType No iPod support Traceback (most recent call last): File "/usr/lib/listen/listen.py", line 219, in ? ListenApp() File "/usr/lib/listen/listen.py", line 146, in __init__ self.listen_instance = Listen() File "/usr/lib/listen/widget/listen.py", line 121, in __init__ self.dbus_service = ListenDBus(self,player) File "/usr/lib/listen/dbus_manager.py", line 56, in __init__ dbus.service.Object.__init__(self, bus_name, object_path) File "//usr/lib/python2.4/site-packages/dbus/service.py", line 402, in __init__ _dbus_bindings.validate_object_path(object_path) ValueError: Invalid object path '/org/gnome/listen/': ends with '/' and is not just '/'
I can confirm the same problem in my amd64: "/usr/lib64/listen/stock.py:78: DeprecationWarning: Non-ASCII character '\xc3' in file /usr/lib64/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details import const /usr/lib64/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /usr/lib64/listen/song.py on line 716, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details from song import sType No musicbrainz support (musicbrainz2 missing) No iPod support No Audio cd support (musicbrainz2 missing) Traceback (most recent call last): File "/usr/lib/listen/listen.py", line 219, in ? ListenApp() File "/usr/lib/listen/listen.py", line 146, in __init__ self.listen_instance = Listen() File "/usr/lib64/listen/widget/listen.py", line 121, in __init__ self.dbus_service = ListenDBus(self,player) File "/usr/lib64/listen/dbus_manager.py", line 56, in __init__ dbus.service.Object.__init__(self, bus_name, object_path) File "//usr/lib/python2.4/site-packages/dbus/service.py", line 416, in __init__ self._connection._register_object_path(object_path, self._message_cb, self._unregister_cb) RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)"
Almost same error here: /usr/lib64/listen/stock.py:78: DeprecationWarning: Non-ASCII character '\xc3' in file /usr/lib64/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details import const /usr/lib64/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /usr/lib64/listen/song.py on line 716, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details from song import sType No musicbrainz support (musicbrainz2 missing) No iPod support No Audio cd support (musicbrainz2 missing) Traceback (most recent call last): File "/usr/lib/listen/listen.py", line 219, in ? ListenApp() File "/usr/lib/listen/listen.py", line 146, in __init__ self.listen_instance = Listen() File "/usr/lib64/listen/widget/listen.py", line 121, in __init__ self.dbus_service = ListenDBus(self,player) File "/usr/lib64/listen/dbus_manager.py", line 56, in __init__ dbus.service.Object.__init__(self, bus_name, object_path) File "//usr/lib/python2.4/site-packages/dbus/service.py", line 402, in __init__ _dbus_bindings.validate_object_path(object_path) ValueError: Invalid object path '/org/gnome/listen/': ends with '/' and is not just '/'
Please check http://bugs.gentoo.org/show_bug.cgi?id=179086 an try the fix provided there (helped me and I had the same problem). Close this one here if it works. Cheers, Marc.
(In reply to comment #1) > > *** This bug has been marked as a duplicate of bug 175495 *** > Hello Jakub, the problem is more specific to python 2.5. The ebuild definitely fails to compile for people who doesn't have other version of python installed. For people using python 2.5(.x), here is a mega patch and few more modifications in the ebuild to take account to the subversions of python 2.5 It would be great to add functions like isPython() i added to the ebuild in portage tree to make it more accurate when testing python versions :) Jj
Created attachment 122059 [details] listen for python 2.5.x
Created attachment 122061 [details, diff] patch that takes account of utf-8 encoding
Created attachment 122063 [details, diff] a dbus fix for python 2.5
(In reply to comment #5) > Please check http://bugs.gentoo.org/show_bug.cgi?id=179086 an try the fix > provided there (helped me and I had the same problem). > Close this one here if it works. I confirm that patches attached to bug #179086 solve the problem. $ listen /usr/lib/listen/stock.py:78: DeprecationWarning: Non-ASCII character '\xc3' in file /usr/lib/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details import const No Hal support /usr/lib/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /usr/lib/listen/song.py on line 716, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details from song import sType No musicbrainz support (musicbrainz2 missing) No iPod support No Audio cd support (musicbrainz2 missing) ...and it runs correctly. I can't say anything about Jj's ebuild as I haven't checked it. Thanks for help, Marc. Best regards, Jan
try 0.5-r1 thanks
Works perfectly. Thank you for your help.