#5365 NORM Never A: Read collaboration doesn't work

Zarro Boogs per Child bugtracker at laptop.org
Thu Dec 6 07:39:04 EST 2007


#5365: Read collaboration doesn't work
--------------------+-------------------------------------------------------
 Reporter:  sjoerd  |       Owner:  jg            
     Type:  defect  |      Status:  new           
 Priority:  normal  |   Milestone:  Never Assigned
Component:  distro  |     Version:                
 Keywords:          |    Verified:  0             
--------------------+-------------------------------------------------------
 When joining a Read activity, sharing the pdf fails. I get the following
 backtraces:

 On the originators side:
 {{{
 xo-03-34-4A.localdomain - - [05/Dec/2007 16:52:08] code 404, message File
 not found
 Traceback (most recent call last):
   File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
     self.process_request(request, client_address)
   File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
     self.finish_request(request, client_address)
   File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "/usr/lib/python2.5/site-packages/sugar/network.py", line 90, in
 __init__
     SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request,
 client_address, server)
   File "/usr/lib/python2.5/SocketServer.py", line 521, in __init__
     self.handle()
   File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
     self.handle_one_request()
   File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in
 handle_one_request
     method()
   File "/usr/lib/python2.5/site-packages/sugar/network.py", line 101, in
 do_GET
     self._file.close()
 AttributeError: 'NoneType' object has no attribute 'close'
 }}}

 On the joiners side:
 {{{
 1196891276.113010 DEBUG read-activity: I could download from that tube
 1196891276.134850 DEBUG read-activity: Accepted stream tube: listening
 address is dbus.Struct((dbus.UTF8String('127.0.0.1'),
 dbus.UInt32(37642L)), signature=None, variant_level=1)
 1196891276.137817 DEBUG read-activity: Starting download to
 /activities/uid_to_home_dir/1000/tmp/1196891276...
 1196891276.443286 DEBUG read-activity: Downloaded 195 bytes from tube
 1468079528...
 1196891276.446155 DEBUG read-activity: Got document
 /activities/uid_to_home_dir/1000/tmp/1196891276 (1196891276) from tube
 1468079528
 Error: Document has not the mandatory ending %EOF
 Error: Document has not the mandatory ending %EOF
 ---------------------------------------------------------------------------
 <class 'gobject.GError'>                  Traceback (most recent call
 last)

 /usr/share/activities/Read.activity/readactivity.py in
 _download_result_cb(self=<ReadActivity object at 0x8844fcc (SugarActivity
 at 0x892b000)>, getter=<GlibURLDownloader object at 0x88c8144
 (sugar+network+GlibURLDownloader at 0x8971a10)>,
 tempfile='/activities/uid_to_home_dir/1000/tmp/1196891276',
 suggested_name='1196891276', tube_id=dbus.UInt32(1468079528L))
     215         _logger.debug("Got document %s (%s) from tube %u",
     216                       tempfile, suggested_name, tube_id)
 --> 217         self._load_document("file://%s" % tempfile)
         self._load_document = <bound method ReadActivity._load_document of
 <ReadActivity object at 0x8844fcc (SugarActivity at 0x892b000)>>
         tempfile = '/activities/uid_to_home_dir/1000/tmp/1196891276'
     218         _logger.debug("Saving %s to datastore...", tempfile)
     219         self.save()

 /usr/share/activities/Read.activity/readactivity.py in
 _load_document(self=<ReadActivity object at 0x8844fcc (SugarActivity at
 0x892b000)>,
 filepath='file:///activities/uid_to_home_dir/1000/tmp/1196891276')
     286
     287     def _load_document(self, filepath):
 --> 288         self._document = evince.factory_get_document(filepath)
         self._document = None
         global evince.factory_get_document = <built-in function
 factory_get_document>
         filepath =
 'file:///activities/uid_to_home_dir/1000/tmp/1196891276'
     289         self._want_document = False
     290         self._view.set_document(self._document)

 <class 'gobject.GError'>: Failed to load document (error 3)
 'file:///activities/uid_to_home_dir/1000/tmp/1196891276'
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/5365>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list