Unity-lens-photos crashes on start, photos in dash is empty

Bug #1135029 reported by John Kuang
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-lens-photos (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

My photo lens in dash is always empty, despite having many tagged photos in shotwell, and with facebook and picasa linked. I get the following error message when I try to start it manually from terminal.

jkuang@momo:~$ /usr/lib/unity-lens-photos/unity-lens-photos
/usr/lib/python3/dist-packages/gi/_gobject/__init__.py:279: Warning: attempting to add an interface (UnityMergeStrategy) to class (__main__+Merger) after class_init
  type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
  File "/usr/lib/unity-lens-photos/unity-lens-photos", line 103, in <module>
    class Merger (GObject.Object, Unity.MergeStrategy):
  File "/usr/lib/python3/dist-packages/gi/types.py", line 230, in __init__
    cls._setup_vfuncs()
  File "/usr/lib/python3/dist-packages/gi/types.py", line 118, in _setup_vfuncs
    for vfunc_name, py_vfunc in cls.__dict__.items():
  File "/usr/lib/python3.2/warnings.py", line 18, in showwarning
    file.write(formatwarning(message, category, filename, lineno, line))
  File "/usr/lib/python3.2/warnings.py", line 25, in formatwarning
    line = linecache.getline(filename, lineno) if line is None else line
  File "/usr/lib/python3.2/linecache.py", line 15, in getline
    lines = getlines(filename, module_globals)
  File "/usr/lib/python3.2/linecache.py", line 41, in getlines
    return updatecache(filename, module_globals)
  File "/usr/lib/python3.2/linecache.py", line 81, in updatecache
    stat = os.stat(fullname)
RuntimeError: Couldn't find GType of implementor of interface UnityMergeStrategy. Forgot to set __gtype_name__?

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity-lens-photos 0.9-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-26.40-generic 3.5.7.6
Uname: Linux 3.5.0-26-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Wed Feb 27 19:06:41 2013
InstallationDate: Installed on 2011-11-19 (466 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: unity-lens-photos
UpgradeStatus: Upgraded to quantal on 2012-10-22 (128 days ago)

Revision history for this message
John Kuang (xiphosurus) wrote :
Revision history for this message
David Callé (davidc3) wrote :

Thank you for the report,
what version of python-gobject do you have installed?

You can find out with:
$ apt-cache policy python-gobject

Revision history for this message
John Kuang (xiphosurus) wrote : Re: [Bug 1135029] Re: Unity-lens-photos crashes on start, photos in dash is empty

jkuang@momo:~$ apt-cache policy python-gobject
python-gobject:
  Installed: 3.4.0-1ubuntu0.1
  Candidate: 3.4.0-1ubuntu0.1
  Version table:
 *** 3.4.0-1ubuntu0.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main
amd64 Packages
        100 /var/lib/dpkg/status
     3.4.0-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/main amd64
Packages
        500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64
Packages

The strange thing is that everything works on my desktop, which have
identical versions (photo lens and gobject). The problem happens only
on my laptop. I have tried purging and reinstalling unity-lens-photos.
but no diff. Are there other steps that I can take to reset it?

On Thu 28 Feb 2013 05:07:25 AM CST, David Callé wrote:
> Thank you for the report,
> what version of python-gobject do you have installed?
>
> You can find out with:
> $ apt-cache policy python-gobject
>

Revision history for this message
Michal Hruby (mhr3) wrote :

More importantly what version of libglib2.0-0 do you have?

Changed in unity-lens-photos (Ubuntu):
status: New → Incomplete
Revision history for this message
John Kuang (xiphosurus) wrote :

Ah this should be the problem.

libglib2.0-0:
  Installed: 2.35.4-0ubuntu5~webupd8~quantal

On Thu 28 Feb 2013 10:00:03 AM CST, Michal Hruby wrote:
> More importantly what version of libglib2.0-0 do you have?
>
> ** Changed in: unity-lens-photos (Ubuntu)
> Status: New => Incomplete
>

Revision history for this message
Martin Pitt (pitti) wrote :

Michal: see the Dependencies.txt attachment (all hail apport):

libglib2.0-0 2.35.4-0ubuntu5~webupd8~quantal [origin: LP-PPA-webupd8team-gvfs-libmtp]
libglib2.0-data 2.35.4-0ubuntu5~webupd8~quantal [origin: LP-PPA-webupd8team-gvfs-libmtp]

I'm afraid quantal's pygobject doesn't yet work with glib 2.35.x, you would have to update pygobject to 3.7.x for this.

Changed in unity-lens-photos (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
John Kuang (xiphosurus) wrote :

I downgraded glib back to 2.34.1-1ubuntu1 and everything is working
again. Thanks for the help!

On Thu 28 Feb 2013 10:38:43 AM CST, Martin Pitt wrote:
> Michal: see the Dependencies.txt attachment (all hail apport):
>
> libglib2.0-0 2.35.4-0ubuntu5~webupd8~quantal [origin: LP-PPA-webupd8team-gvfs-libmtp]
> libglib2.0-data 2.35.4-0ubuntu5~webupd8~quantal [origin: LP-PPA-webupd8team-gvfs-libmtp]
>
> I'm afraid quantal's pygobject doesn't yet work with glib 2.35.x, you
> would have to update pygobject to 3.7.x for this.
>
> ** Changed in: unity-lens-photos (Ubuntu)
> Status: Incomplete => Invalid
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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