[photo] photo lens not showing any of my photos

Bug #913762 reported by f_padia on 2012-01-09
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
One Hundred Scopes
High
David Callé

Bug Description

I installed the photo lens using sudo apt-get install unity-lens-photo but its not showing any of my photos. I have logged-out and back in but still nothing. Is there anything else I need to do to get it to work? I'm on ubuntu 11.10.

Thanks for another great lens!

David Callé (davidc3) wrote :

Hi, thank you for the report.
How many photos do you have in Shotwell? There is currently an issue with big collections.

f_padia (f-padia) wrote :

no problem.
I have 3849 photos in my library. Is this too big?
FYI: I also enabled the metadata option in preferences as it was advised on omgubuntu that this is necessary to get the tag searching to work.

David Callé (davidc3) wrote :

Try in a terminal:

killall unity-scope-shotwell
/usr/lib/unity-scope-shotwell/unity-scope-shotwell

Then open the lens, without searching and wait one or two minutes. Then search for something.
Please paste the terminal output here.

f_padia (f-padia) wrote :

ok this is the output:

faheem@faheem-HP-Laptop:~$ /usr/lib/unity-scope-shotwell/unity-scope-shotwell
Shotwell database backup: OK
Search changed to: 'None'
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 63, in on_search_changed
    self.update_results_model (search, results)
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 79, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 138, in shotwell
    metadata.read()
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 74, in _instantiate_image
    raise IOError(ENOENT, os.strerror(ENOENT), filename)
IOError: [Errno 2] No such file or directory: '/home/faheem/Pictures/2011/02/19/CameraZOOM-20110219161024_1.jpg'
Search changed to: 'None'
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 63, in on_search_changed
    self.update_results_model (search, results)
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 79, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 138, in shotwell
    metadata.read()
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 74, in _instantiate_image
    raise IOError(ENOENT, os.strerror(ENOENT), filename)
IOError: [Errno 2] No such file or directory: '/home/faheem/Pictures/2011/02/19/CameraZOOM-20110219161024_1.jpg'
Search changed to: 'me'
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 63, in on_search_changed
    self.update_results_model (search, results)
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 86, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 138, in shotwell
    metadata.read()
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 74, in _instantiate_image
    raise IOError(ENOENT, os.strerror(ENOENT), filename)
IOError: [Errno 2] No such file or directory: '/home/faheem/Pictures/2011/02/19/CameraZOOM-20110219161024_1.jpg'

dont know what the first bits mean but at the end it seems like it is searching for a particular photo for some reason?

David Callé (davidc3) wrote :

Thanks, I got it. A fix will land soon.

Changed in onehundredscopes:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → David Callé (davidc3)
f_padia (f-padia) wrote :

thank you

David Callé (davidc3) wrote :

This should be fixed with the incoming update.

Changed in onehundredscopes:
status: Confirmed → Fix Released
Nicola Jelmorini (jelmorini) wrote :

Hello,

I have the same problem here: no photos are listed in the dash. I have run the scope in a terminal, and these are the messages:

nicola@nicola-VirtualBox:~$ /usr/lib/unity-scope-shotwell/unity-scope-shotwell
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
Shotwell database backup: OK
TypeError: on_search_changed() takes exactly 5 arguments (2 given)

** CRITICAL **: pygobject_register_wrapper: assertion `PyObject_TypeCheck(self, &PyGObject_Type)' failed
Search changed to ""
Global view without search string : hide

** CRITICAL **: pygobject_register_wrapper: assertion `PyObject_TypeCheck(self, &PyGObject_Type)' failed
Search changed to ""
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 67, in on_search_changed
    self.update_results_model(search_string, model, 'lens')
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 84, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 131, in shotwell
    if gio.File(uri).query_exists():
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 100: ordinal not in range(128)

** CRITICAL **: pygobject_register_wrapper: assertion `PyObject_TypeCheck(self, &PyGObject_Type)' failed
Search changed to ""
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 67, in on_search_changed
    self.update_results_model(search_string, model, 'lens')
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 84, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 131, in shotwell
    if gio.File(uri).query_exists():
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 100: ordinal not in range(128)

** CRITICAL **: pygobject_register_wrapper: assertion `PyObject_TypeCheck(self, &PyGObject_Type)' failed
Search changed to "Amici"
Traceback (most recent call last):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 67, in on_search_changed
    self.update_results_model(search_string, model, 'lens')
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 84, in update_results_model
    for i in self.shotwell(search, date):
  File "/usr/lib/unity-scope-shotwell/unity-scope-shotwell", line 131, in shotwell
    if gio.File(uri).query_exists():
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 100: ordinal not in range(128)

David Callé (davidc3) wrote :

Reverting to "in progress".

Changed in onehundredscopes:
status: Fix Released → Confirmed
status: Confirmed → In Progress
Jorge Ortega (jorge-ortega111) wrote :

Same problem. The scope actually fails to start:

jorge@laptop:~$ '/usr/lib/unity-scope-shotwell/unity-scope-shotwell'
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Shotwell database backup: OK
Failed to own name net.launchpad.scope.image.shotwell. Bailing out.

This is in Ubuntu 12-04

Same problem than Jorge Ortega:

alessio@alessio-DesktopPC:~$ /usr/lib/unity-scope-shotwell/unity-scope-shotwell
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Shotwell database backup: OK
Failed to own name net.launchpad.scope.image.shotwell. Bailing out.

john doe (john--doe) wrote :

Same problem on 12.04 :

nono@pc:~$ /usr/lib/unity-scope-shotwell/unity-scope-shotwell
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Shotwell database backup: OK
Failed to own name net.launchpad.scope.image.shotwell. Bailing out.

(using ubuntu 64 bits, if it can help)

juanlucer (jlcv19) wrote :

Got the same problem on 12.04 64 bits:
jlcv@jlcv-ubuntu:~$ /usr/lib/unity-scope-shotwell/unity-scope-shotwell
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Shotwell database backup: OK
Failed to own name net.launchpad.scope.image.shotwell. Bailing out.

Changed in onehundredscopes:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers