You are not logged in.

#1 2008-11-12 17:48:21

qdiesel
Member
Registered: 2008-05-19
Posts: 61

can't read from gmailfs

writing seems to be ok (there is some new messages in my incoming which seem to be cointaining a fs).

gmailfs.log

11/12/08 20:33:57 ERROR      Exception getting query:subject:i=1226510997
11/12/08 20:34:22 ERROR      Exception getting query:subject:i=1226510997
11/12/08 20:35:26 ERROR      Error reading file/1

Traceback (most recent call last):
  File "/usr/share/gmailfs/gmailfs.py", line 1017, in read
    buf = f.read(readlen,offset)
  File "/usr/share/gmailfs/gmailfs.py", line 495, in read
    outbuf[upto:] = self.readFromGmail((offset+upto)/self.blocksize,0)[readoffset:readoffset+thisread]
  File "/usr/share/gmailfs/gmailfs.py", line 533, in readFromGmail
    self.lastBlockBuffer = a.content
  File "/usr/lib/python2.5/site-packages/libgmail.py", line 1507, in _getContent
    attid=self.id, th=self._parent._parent.id))
  File "/usr/lib/python2.5/site-packages/libgmail.py", line 358, in _retrievePage
    return pageData.decode('utf-8')
  File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 0: unexpected code byte

Offline

#2 2008-11-16 23:51:46

qdiesel
Member
Registered: 2008-05-19
Posts: 61

Re: can't read from gmailfs

bump

Offline

#3 2008-11-17 00:18:56

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: can't read from gmailfs

It seems if your script thing is referencing python2.5 and python2.6 paths. I don't believe that works well. Try making/installing the program again so it reflects python2.6 paths.

Last edited by pyther (2008-12-13 18:01:04)


Website - Blog - arch-home
Arch User since March 2005

Offline

#4 2008-11-18 01:58:59

qdiesel
Member
Registered: 2008-05-19
Posts: 61

Re: can't read from gmailfs

well, I rebuilt libgmail against python 2.6 and enabled loglevel=debug for gmailfs
that's what i get now in gmailfs.log

11/18/08 04:54:24 DEBUG      gmailfs.py:Gmailfs:release: /asadas 32768
11/18/08 04:55:30 DEBUG      get stat:/asadas
11/18/08 04:55:30 DEBUG      inode <gmailfs.GmailInode instance at 0x9a0e56c>
11/18/08 04:55:30 DEBUG      statsTuple <gmailfs.GmailStat object at 0x9aa00ec>
11/18/08 04:55:30 DEBUG      gmailfs.py:Gmailfs:open: /asadas
11/18/08 04:55:31 DEBUG      gmailfs.py:Gmailfs:read: /asadas
11/18/08 04:55:31 DEBUG      reading len:4096 offset:0
11/18/08 04:55:31 DEBUG      about to try and find inode:1226973203 blocknumber:0
11/18/08 04:55:32 DEBUG      got msg with subject:b=1226973203 x=0 q=__g__linux_fs_3__h__
11/18/08 04:55:32 DEBUG      got 1 attachments
11/18/08 04:55:32 DEBUG      read from gmail:ddasdfasf

11/18/08 04:55:33 DEBUG      still to read:0
11/18/08 04:55:33 ERROR      Error reading file/asadas
Traceback (most recent call last):
  File "/usr/share/gmailfs/gmailfs.py", line 1019, in read
    arr.fromlist(buf)
TypeError: array item must be char
11/18/08 04:55:33 DEBUG      gmailfs.py:Gmailfs:read: /asadas
11/18/08 04:55:33 DEBUG      reading len:4096 offset:0
11/18/08 04:55:33 DEBUG      about to try and find inode:1226973203 blocknumber:0
11/18/08 04:55:33 DEBUG      still to read:0
11/18/08 04:55:33 ERROR      Error reading file/asadas
Traceback (most recent call last):
  File "/usr/share/gmailfs/gmailfs.py", line 1019, in read
    arr.fromlist(buf)
TypeError: array item must be char
11/18/08 04:55:33 DEBUG      gmailfs.py:Gmailfs:release: /asadas 32768

UPD:
found the same questions unanswered
https://bugs.launchpad.net/ubuntu/+sour … bug/272275
https://bugs.launchpad.net/ubuntu/+sour … bug/298883

Last edited by qdiesel (2008-11-18 02:15:19)

Offline

#5 2008-12-02 22:13:59

qdiesel
Member
Registered: 2008-05-19
Posts: 61

Re: can't read from gmailfs

btw, is there someone who have it working?
can anyone write versions of python and other dependencies?

Offline

#6 2008-12-13 03:18:56

qdiesel
Member
Registered: 2008-05-19
Posts: 61

Re: can't read from gmailfs

bump

Offline

#7 2009-01-26 14:03:29

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: can't read from gmailfs

i have installed gmailfs from community and it doesn't work for me either. there are some messages in the inbox, but they don't contain anything and the subject seems strange as well. furthermore, there is no logfile in /var/log/. i don't have time to investigate this more for now, but i would still be interested, if someone has it working. btw GMail Drive under windows is working fine...

edit: typos

Last edited by jarda-wien (2009-01-26 14:04:07)

Offline

#8 2009-01-26 14:12:21

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: can't read from gmailfs

I'm guessing that there were changes in gmail which broke gmailfs.

You might want to look at dropbox if you need something like gmailfs. https://www.getdropbox.com/login#register


Website - Blog - arch-home
Arch User since March 2005

Offline

#9 2009-01-27 11:29:20

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: can't read from gmailfs

thanks for the tip, using it already!

Offline

#10 2009-01-27 11:42:51

rombeh
Member
Registered: 2008-08-24
Posts: 5

Re: can't read from gmailfs

sorry it's my fault

Last edited by rombeh (2009-01-27 11:43:43)

Offline

Board footer

Powered by FluxBB