ImportError: No module named hamster.configuration

Bug #600857 reported by Martin Pool
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Project Hamster
Fix Released
High
hamster-applet (Ubuntu)
Fix Released
Undecided
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/__init__.py", line 24, in <module>
    from activityentry import ActivityEntry
  File "/usr/lib/pymodules/python2.6/hamster/widgets/activityentry.py", 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
/usr/lib/pymodules/python2.6/hamster/configuration.py
/usr/lib/pymodules/python2.6/hamster/configuration.pyc
/usr/share/pyshared/hamster/configuration.py

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
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.utf8
 SHELL=/bin/zsh
SourcePackage: hamster-applet

Related branches

Revision history for this message
Martin Pool (mbp) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

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

Upstream in eg http://git.gnome.org/browse/hamster-applet/tree/src/hamster/widgets/timechart.py 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?

Revision history for this message
Martin Pool (mbp) wrote :

This fixes it.

Changed in hamster-applet (Ubuntu):
assignee: nobody → Martin Pool (mbp)
status: New → Fix Committed
Revision history for this message
Martin Pool (mbp) wrote :
Revision history for this message
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  
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.