[Bugs] #1241 UNSP: ObjectChooser displays USB media files, but fails to access file (datastore traceback)
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Wed Aug 26 11:26:27 EDT 2009
#1241: ObjectChooser displays USB media files, but fails to access file (datastore
traceback)
------------------------------------------+---------------------------------
Reporter: garycmartin | Owner: tomeu
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar-datastore | Version: Git as of bugdate
Severity: Major | Keywords:
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------------------+---------------------------------
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
}}}
--
Ticket URL: <http://dev.sugarlabs.org/ticket/1241>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list