Ticket #1241 (closed defect: fixed)
ObjectChooser displays USB media files, but fails to access file (datastore traceback)
| Reported by: | garycmartin | Owned by: | alsroot |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | 0.86 |
| Component: | sugar-toolkit | Version: | Git as of bugdate |
| Severity: | Major | Keywords: | r? |
| Cc: | sascha_silbe | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description
Using the ObjectChooser to open a file from external USB media fails to open a selected file with the below (datastore) traceback. Tested with ImageViewer and Write (inserting an image) using latest sugar-jhbuild.
1251299807.015424 DEBUG root: ObjectChooser.__chooser_response_cb: dbus.String(u'/media/USB/misc file backups/Getting involved icons/Developer3.png')
1251299807.047768 DEBUG root: datastore.get
1251299807.050838 DEBUG root: dbus_helpers.get_properties: /media/USB/misc file backups/Getting involved icons/Developer3.png
Traceback (most recent call last):
File "/home/garycmartin/sugar-jhbuild/install/share/sugar/activities/Write.activity/toolbar.py", line 186, in _image_cb
chooser.pick(what=chooser.IMAGE, cb=cb)
File "/home/garycmartin/sugar-jhbuild/install/share/sugar/activities/Write.activity/port/chooser.py", line 49, in pick
jobject = chooser.get_selected_object()
File "/home/garycmartin/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/graphics/objectchooser.py", line 102, in get_selected_object
return datastore.get(self._object_id)
File "/home/garycmartin/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/datastore/datastore.py", line 144, in get
metadata = dbus_helpers.get_properties(object_id)
File "/home/garycmartin/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/datastore/dbus_helpers.py", line 78, in get_properties
return _get_data_store().get_properties(uid, byte_arrays=True)
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.IOError: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/home/garycmartin/sugar-jhbuild/install/lib/python2.6/site-packages/carquinyol/datastore.py", line 271, in get_properties
metadata = self._metadata_store.retrieve(uid)
File "/home/garycmartin/sugar-jhbuild/install/lib/python2.6/site-packages/carquinyol/metadatastore.py", line 39, in retrieve
return metadatareader.retrieve(metadata_path, properties)
IOError: Couldn't open metadata directory /home/garycmartin/.sugar/default/datastore//m//media/USB/misc file backups/Getting involved icons/Developer3.png/metadata
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

