[Sugar-devel] Unable to open files in Read Activity
Gaurav Parida
gparida94 at gmail.com
Sat Jul 5 06:17:21 EDT 2014
I am trying to open a txt file in Read activity, but unable to do so.
I have attached the log file of the activity.
-- Gaurav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140705/2962668a/attachment-0001.html>
-------------- next part --------------
1404552926.495604 DEBUG root: cannot open path /home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/locale/C/activity.linfo
1404552926.833162 WARNING root: icon_size is deprecated. Use pixel_size instead.
1404552926.850184 DEBUG root: datastore.get
1404552926.866809 DEBUG root: Calling GetActivity on /org/freedesktop/Telepathy/Account/salut/local_xmpp/account0
1404552926.869997 DEBUG root: There's no shared activity with the id effd9a8d2136ac072153238fb360aaeaba74ef42
1404552926.870164 DEBUG root: *** Act effd9a8d2136ac072153238fb360aaeaba74ef42, mesh instance None, scope private
1404552926.870564 DEBUG read-activity: Starting Read...
1404552926.870753 DEBUG read-activity: Setting dpi to 95.000000
1404552926.874258 WARNING root: icon_size is deprecated. Use pixel_size instead.
1404552926.878125 WARNING root: icon_size is deprecated. Use pixel_size instead.
1404552926.925113 WARNING root: No Gtk.AccelGroup in the top level window.
1404552926.935014 WARNING root: No Gtk.AccelGroup in the top level window.
1404552926.942189 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.050052 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.051907 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.052197 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.052412 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.053910 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.054166 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.054376 WARNING root: No Gtk.AccelGroup in the top level window.
1404552927.065644 INFO read-activity: Hardware manager service not found, no idle suspend.
1404552927.070749 DEBUG read-activity: ReadActivity.read_file: /home/broot/sugar-build/home/dotsugar/default/data/a6058ac8-1d18-4f60-855a-468974af0ffa_gUkZwM.bin
1404552927.080725 ERROR read-activity: Can not load document: File type plain text document (text/plain) is not supported
1404552927.082434 DEBUG root: loading 0 bookmarks
Traceback (most recent call last):
File "/home/broot/sugar-build/build/out/install/bin/sugar-activity", line 164, in <module>
main()
File "/home/broot/sugar-build/build/out/install/bin/sugar-activity", line 159, in main
instance = create_activity_instance(activity_constructor, activity_handle)
File "/home/broot/sugar-build/build/out/install/bin/sugar-activity", line 44, in create_activity_instance
activity = constructor(handle)
File "/home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/readactivity.py", line 371, in __init__
self.read_file(self._jobject.file_path)
File "/home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/readactivity.py", line 743, in read_file
self._load_document('file://' + tempfile)
File "/home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/readactivity.py", line 978, in _load_document
self._update_toc()
File "/home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/readactivity.py", line 625, in _update_toc
if self._view.update_toc(self):
File "/home/broot/sugar-build/build/out/install/share/sugar/activities/Read.activity/evinceadapter.py", line 273, in update_toc
doc = self._model.get_document()
AttributeError: EvinceViewer instance has no attribute '_model'
1404552927.085010 DEBUG root: _cleanup_temp_files
Exited with status 1, pid 5181 data (None, <open file '<fdopen>', mode 'w' at 0x94c1a70>, dbus.ByteArray('effd9a8d2136ac072153238fb360aaeaba74ef42', variant_level=1))
More information about the Sugar-devel
mailing list