ImportError: No module named hamster.configuration

Bug #600857 reported by Martin Pool on 2010-07-02
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Project Hamster
Fix Released
hamster-applet (Ubuntu)
Martin Pool

Bug Description

Binary package hint: hamster-applet

On maverick:

mbp@grace% hamster-standalone
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Traceback (most recent call last):
  File "/usr/bin/hamster-standalone", line 39, in <module>
    from hamster import widgets
  File "/usr/lib/pymodules/python2.6/hamster/widgets/", line 24, in <module>
    from activityentry import ActivityEntry
  File "/usr/lib/pymodules/python2.6/hamster/widgets/", line 23, in <module>
    from .hamster.configuration import runtime
ImportError: No module named hamster.configuration

This is strange because I do have

 mbp@grace% locate hamster/configuration

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: hamster-applet 2.30.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-6.8-generic 2.6.35-rc3
Uname: Linux 2.6.35-6-generic x86_64
Architecture: amd64
Date: Fri Jul 2 11:04:53 2010
EcryptfsInUse: Yes
 PATH=(custom, user)
SourcePackage: hamster-applet

Related branches

Martin Pool (mbp) wrote :
Martin Pool (mbp) wrote :

I don't understand why he has this because this code is already inside the hamster namespace.

Upstream in eg does still have this problem.

All the current occurrences of this are inside the widgets module. I wonder if this is trying to do some import magic to allow widgets to be installed outside of the tree?

Martin Pool (mbp) wrote :

This fixes it.

Changed in hamster-applet (Ubuntu):
assignee: nobody → Martin Pool (mbp)
status: New → Fix Committed
Martin Pool (mbp) wrote :
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hamster-applet - 2.30.1-0ubuntu2

hamster-applet (2.30.1-0ubuntu2) maverick; urgency=low

  * Change strange "from .hamster import" statements occurring inside the
    hamster python module, causing ImportErrors. (LP: #600857)
    Patch from Martin Pool. Thanks!
 -- Christopher James Halse Rogers <email address hidden> Fri, 02 Jul 2010 12:27:54 +1000

Changed in hamster-applet (Ubuntu):
status: Fix Committed → Fix Released
tags: added: patch
Changed in hamster-applet:
status: Unknown → Fix Released
Changed in hamster-applet:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.