Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245918 - Broken lyrics support in media-sound/amarok-1.4.10 with kde4
Summary: Broken lyrics support in media-sound/amarok-1.4.10 with kde4
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 01:51 UTC by Stephen E. Baker
Modified: 2009-10-14 15:14 UTC (History)
4 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 Stephen E. Baker 2008-11-07 01:51:19 UTC
Since removing kde3 and rebuilding media-sound/amarok-1.4.10 with -kde I have not been able to fetch lyrics.  I have tried a number of scripts without success.

Reproducible: Always

Steps to Reproduce:
1. Run Amarok
2. Play a song
3. Click the Lyric tab under Content

Actual Results:  
"Fetching Lyrics..." displays forever.

Expected Results:  
The lyrics for the song, or a list of suggestions would appear.

When I removed kde3 I ran an emerge --deepclean.

Running amarokapp --nocrashhandler causes the following exception to be displayed when using GoogleLyrics2:
Traceback (most recent call last):
File "/home/stephen/.kde3.5/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 47, in <module>
a.run()
File "/home/stephen/.kde3.5/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 30, in run
if outlyric is None:
UnboundLocalError: local variable 'outlyric' referenced before assignment

Lyrc doesn't display any errors.
Wiki-Lyrics refuses to Run but doesn't display any errors

Cached lyrics do show up.


Portage 2.2_rc13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)                                                                     
=================================================================                
System uname: Linux-2.6.25-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_T7400_@_2.16GHz-with-glibc2.0                                                                    
Timestamp of tree: Thu, 06 Nov 2008 23:31:01 +0000                               
ccache version 2.4 [enabled]                                                     
app-shells/bash:     3.2_p33                                                     
dev-java/java-config: 1.3.7, 2.1.6                                               
dev-lang/python:     2.4.4-r14, 2.5.2-r7                                         
dev-util/ccache:     2.4-r7                                                      
dev-util/cmake:      2.4.8                                                       
sys-apps/baselayout: 1.12.11.1                                                   
sys-apps/sandbox:    1.2.18.1-r2                                                 
sys-devel/autoconf:  2.13, 2.61-r2                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                
sys-devel/binutils:  2.18-r3                                                     
sys-devel/gcc-config: 1.4.0-r4                                                   
sys-devel/libtool:   1.5.26                                                      
virtual/os-headers:  2.6.23-r3                                                   
ACCEPT_KEYWORDS="x86"                                                            
CBUILD="i686-pc-linux-gnu"                                                       
CFLAGS="-O2 -march=pentium-m -msse3 -pipe"                                       
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/config"                                                          
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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 /etc/texmf/web2c /etc/udev/rules.d"                                                     
CXXFLAGS="-O2 -march=pentium-m -msse3 -pipe"                                     
DISTDIR="/usr/portage/distfiles"                                                 
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                           
GENTOO_MIRRORS="http://cdot.senecac.on.ca/software/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://adelie.polymtl.ca"                    
LDFLAGS="-Wl,-O1"                                                                
LINGUAS="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/portage/local/layman/interactive-fiction /usr/local/portage"                                                                                
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                   
USE="X a52 aac acl acpi alsa amarok apache2 bash-completion berkdb bittorrent bzip2 cairo cdda cddb cdr cli cracklib crypt cscope cups curl dbus dio dri dvd dvdr dvdread emacs encode fam ffmpeg firefox fortran gdbm gif gpm gtk hal htmlhandbook iconv icq imagemagick ipod ipv6 isdnlog java java5 javascript joystick jpeg jpeg2k kde kmid libnotify libwww midi mikmod mmx mmxext mng mozdevelop mp3 mpeg mplayer msn mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp pam pcmcia pcre pdf perl png posix postgres ppds pppd python qt3 qt4 quicktime readline reflection samda sdl session spell spl sse sse2 ssl subversion svg sysfs tcpd tetex threads truetype unicode usb videos vim-syntax vorbis wifi win32codecs wma wxwindows x86 xine xml xorg xosd 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_fsdav_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="synaptics keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Sturmlechner gentoo-dev 2009-01-26 20:43:26 UTC
Workaround: Install Qtruby, fetch the Wiki-Lyrics plugin for amarok.
Comment 2 Rotem Zach 2009-02-23 16:00:54 UTC
The problem is that the script can't find dcop, because it isn't on the path.
The way I fixed it was to hardcode the path into two places in the script:

os.spawnlp(os.P_WAIT,"/usr/kde/3.5/bin/dcop", "dcop", "amarok", "playlist", "popupMessage", "This script does not require any configuration.");

os.spawnlp(os.P_WAIT, "/usr/kde/3.5/bin/dcop", "dcop", "amarok", "contextbrowser", "showLyrics", doctxt);

Goto "Script Manager" and edit and it should be that file.
Comment 3 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-05-25 21:47:06 UTC
@Rotem Zach:
Can you provide me a patch? I didn't understand where am i suppose to hardcode the path. And if so, please do it for amarok-1.4_p20090130-r2 as it is to-be-stabilized-soon
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-10-13 16:49:00 UTC
(In reply to comment #3)
> @Rotem Zach:
> Can you provide me a patch? I didn't understand where am i suppose to hardcode
> the path. And if so, please do it for amarok-1.4_p20090130-r2 as it is
> to-be-stabilized-soon
> 

In fact, amarok-1.4_p20090130-r3 is the only KDE3 version left in tree.

Reporter, if this bug still applies to that version, please reopen.
Comment 5 Stephen E. Baker 2009-10-14 15:14:25 UTC
Sorry I can't verify, I've switched to another distro.