Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329171 - gnome-extra/hamster-applet-2.30.2 - ImportError: No module named hamster.configuration
Summary: gnome-extra/hamster-applet-2.30.2 - ImportError: No module named hamster.conf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 22:00 UTC by Jbal
Modified: 2010-07-21 19:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
import fix patch (hamster-applet-2.30.2-import.patch,4.39 KB, patch)
2010-07-21 11:30 UTC, Tom-Steve Watzke
Details | Diff
overlay tarball (hamster-applet_overlay.tar.gz,2.41 KB, application/octet-stream)
2010-07-21 11:33 UTC, Tom-Steve Watzke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jbal 2010-07-20 22:00:48 UTC
hamster-applet-2.30.2 does nothing when attemtping to either click the icon in applications -> accessories. Additionally, hamster-applet's website says that it should run by using the command "/usr/lib/hamster-applet/hamster-applet -w" This command fails with the following output:

2010-07-20 16:49:22,193 ERROR: Traceback (most recent call last):
  File "/usr/lib/hamster-applet/hamster-applet", line 128, in <module>
    applet_factory(applet, None)
  File "/usr/lib/hamster-applet/hamster-applet", line 35, in applet_factory
    from hamster.applet import HamsterApplet
  File "/usr/lib/python2.6/site-packages/hamster/applet.py", line 40, in <module>
    import widgets
  File "/usr/lib/python2.6/site-packages/hamster/widgets/__init__.py", line 24, in <module>
    from activityentry import ActivityEntry
  File "/usr/lib/python2.6/site-packages/hamster/widgets/activityentry.py", line 23, in <module>
    from .hamster.configuration import runtime
ImportError: No module named hamster.configuration



Reproducible: Always

Steps to Reproduce:
1. emerge hamster-applet-2.30.2
2. run "/usr/lib/hamster-applet/hamster-applet -w"
3. hamster-applet fails to run




I feel as though the problem is because the hamster.import lines in python apparently are declared weird, A similar error was recognized (and fixed) in Ubuntu here: https://bugs.launchpad.net/ubuntu/+source/hamster-applet/+bug/600857 . Strangely, it claims to be from 2.30.1 instead of 2.30.2. However, the error is identical and the files that the .diff claims to be the culprit may very well be what is causing this problem
Comment 1 Wormo (RETIRED) gentoo-dev 2010-07-20 23:14:19 UTC
The leading '.' is valid python syntax indicating relative imports 
http://www.python.org/dev/peps/pep-0328/

so here is the upstream patch for this issue, though the developer said the original version works for most installs so the fix won't go into 2.30 branch:

https://bugzilla.gnome.org/show_bug.cgi?id=623336

Please post your 'emerge --info'; maintainers may need it since upstream claims this issue is rather rare
Comment 2 Jbal 2010-07-20 23:34:29 UTC
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 20 Jul 2010 20:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
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:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1"
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="/usr/local/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss emerald encode evo exif fam ffmpeg firefox flac fortran gdbm gdu gif gnome gnome-keyring gnutls gpg gpm gstreamer gtk hal iconv icu imap ipv6 jpeg lcms ldap libnotify mad matroska mikmod mng modules mp3 mp4 mpeg mudflap mysql nautilus ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf perl png policykit pop ppds pppd python qt3support readline reflection sasl sdl session smime smtp spell spl sqlite ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vorbis win32codecs x x264 x86 xcb xml xorg xulrunner 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Tom-Steve Watzke 2010-07-21 11:30:09 UTC
Created attachment 239665 [details, diff]
import fix patch

This patch fixes the import error. As commited by gnome git I adopted those fixes for the current version hamster-applet-2.30.2 (see portage).

Overlay tarball follows ...
Comment 4 Tom-Steve Watzke 2010-07-21 11:33:24 UTC
Created attachment 239667 [details]
overlay tarball

As previous Comment this tarball includes the overlay directory, which includes the changed ebuild to install hamster-applet using the patch.
Comment 5 Pacho Ramos gentoo-dev 2010-07-21 17:58:01 UTC
+*hamster-applet-2.30.2-r1 (21 Jul 2010)
+
+  21 Jul 2010; Pacho Ramos <pacho@gentoo.org>
+  +hamster-applet-2.30.2-r1.ebuild,
+  +files/hamster-applet-2.30.2-fix-import.patch:
+  Fix import in some setups (upstream bug #623336, bug #329171 by Jbal).
+  Thanks a lot to Tom-Steve Watzke for backporting upstream patch.
+
Comment 6 Tom-Steve Watzke 2010-07-21 19:08:56 UTC
Thanks, Pacho Ramos, for adding this to the Changelog file. :)