DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Most likely someone can help you. However, you greatly increase your chances of getting help if you read and take to heart "How to ask questions the smart way" (Raymond) and "reporting bugs effectively" (Tatham). Any decent web search engine will help you find them.
ok i admit that my question was stuppid. now let's go again. i followed the instructions from the web page i mentioned and then i added a line in /etc/fstab with the following:
/usr/local/bin/gmailfs.py /mnt/gmailfs gmailfs noauto,username=gmailuser,password=gmailpass,fsname=zOlRRa
where is says gmailuser i replaced it with the login name from the gmail account (eg. gotcha), and where is says gmailpass i replaced it with the passord for that account (eg. 1234). though when i go to mount it, it says that there is a mistake. now could someone point to me what i am doing wrong?
And don't apologise! Every time I try and talk to someone it's "sorry this" and "forgive me that" and "I'm not worthy"... --God, MP&THG. (ha ha only serious)
Quote:
(...) I added a line in /etc/fstab with the following:
(...) When i go to mount it, it says that there is a mistake.
Exactly what does it say? I don't have a gmail account to test with (pimping: I'd rather have 1G of POPable disk space *without the ads* from www.mailshack.com), and I haven't used gmailFS, so I probably can't be very helpful except by asking probing questions (sorry).
Try grepping gmailfs.py for the error message, or at least the parts which are constant (if it says "Sorry, I couldn't open /path/to/file: No such file or directory", search for "Sorry, I couldn't open").
I don't expect of you to understand python or have a firm grasp of what it is, but I do, and I might be able to figure out some of the details by reading gmailfs.py
(If you're insulted by me talking to you like the newbie I mistake you for: sorry)
first i tried to put a line in the /etc/fstab as it is described in the forementioned url:
mount -t gmailfs /usr/local/bin/gmailfs.py /mnt/gmailfs -o username=dreamer.binary,password=******,fsname=zOlRRa
the ****** is my password.
then i did it manually as root from the console:
mount -t gmailfs /usr/local/bin/gmailfs.py /mnt/gmailfs -o username=dreamer.binary,password=******,fsname=zOlRRa
and it returned to me:
/sbin/mount.gmailfs: file /usr/local/bin/gmailfs.py doesn't exist, or is not a file
what is wrong. i did install the file through apt-get. what am i missing?
Ah. The error message is quite clear: the file (/usr/local/bin/gmailfs.py) doesn't exist.
If the package conforms to the debian policy (and I've checked that it does for the purposes of this conclusion), it does not ever put files in /usr/local -- that the sysadmin's playground.
If you do a `dpkg -L gmailfs', it should tell you that that the file you're looking for is /usr/share/gmailfs/gmailfs.py instead of /usr/local/bin/gmailfs.py
looks wonky. I installed the version you're using (there's a newer one in the repositories), and looked at (and around) line 281 of __init__.py; nothing fishy going on there, AFAICT.
Try upgrading python-libgmail. If that doesn't work, make a backup copy of /usr/lib/python2.3/site-packages/libgmail/__init__.py, and apply this patch, like this:
Code:
$ patch -p0 < name-is-irrelevant.patch
And here is name-is-irrelevant.patch:
Code:
--- /usr/lib/python2.3/site-packages/libgmail/__init__.py 2005-05-15 18:58:02.000000000 +0200
+++ __init__.py 2006-08-26 19:35:33.000000000 +0200
@@ -275,8 +275,19 @@
RE_PAGE_REDIRECT = 'top\.location\W=\W"CheckCookie\?continue=([^"]+)'
# TODO: Catch more failure exceptions here...?
try:
- redirectURL = urllib.unquote(re.search(RE_PAGE_REDIRECT,
- pageData).group(1))
+ print '--------------------'
+ print pageData
+ print '--------------------'
+ s = re.search(RE_PAGE_REDIRECT, pageData)
+ print s
+ s_1 = s.group(1)
+ s_all = s.groups()
+ print s_all
+ q = urllib.unquote(s_1)
+ print q
+ redirectURL = q
+ print redirectURL
+
except AttributeError:
raise GmailLoginFailure
# We aren't concerned with the actual content of this page,
Try running it again, and post the output. If I hose your python-libgmail (sorry) or you don't like my modifications (they're meant for debugging only), then restore __init__.py from your backup, or un-and-re-install it.
hi and thanks a lot for all you support in that issue. to be honest with you, you missed me in the last step. it is not quite clear what do i have to do in order to fix the problem.
Well, my last post won't fix your problem, but it will hopefully help us diagnose it. Please check that the password works. Log in to your account with the web interface. Does that work? Does using gmailfs work with another version of a depended-upon library? Does another version of gmailfs work? How about both at the same time?
If nothing else works, do this:
Code:
# wget -qO - http://www.linuxquestions.org/questions/showthread.php?p=2398660 | sed -n '/---.*site-packages/,/concerned with the actual/p' | tr '>' '\n' | sed '1,2d' | head -n 22 > /root/foo.patch
# # look inside foo.patch. It should be the same as what I caled name-is-irrelevant.patch,
# # except that the last line is missing.
# cp /usr/lib/python2.3/site-packages/libgmail/__init__.py /root/libgmail-init.py
# patch -p0 < /root/foo.patch
# python /usr/share/gmailfs/gmailfs.py /where/ever/you/mount/it options=put-them-here > /root/my-gmailfs.log
# # sanitize /root/my-gmailfs.log if you feel a need, I don't want your password.
# # post /root/my-gmailfs.log to this thread
# cp /root/libgmail-init.py /usr/lib/python2.3/site-packages/libgmail/__init__.py
This makes a minor modification to gmailfs, such that it tells you a bit about its internal state; hopefully this should help us figure out why it doesn't cooperate. Also, punting an exception all the way out to the user is bad form, so you should probably file a bug report. Does google have a gmail account for public testing? Care to send me an invite?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.