Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hey all,
I've been having troubles getting the gmail notifier from gmail-notify.sourceforge.net/ to work properly.
I downloaded and extracted the files without problems, and then I changed the notifier.conf file as specified by the readme file. I then created a link so it would autostart as per the readme. When I tried to run it, however, nothing useful happened. This is what happens when I try to open it in Konsole:
$ ./notifier.py
Traceback (most recent call last):
File "./notifier.py", line 20, in ?
gmailusername=config.get('options','gmailusername').replace('"','')
File "/usr/lib/python2.3/ConfigParser.py", line 286, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'options'
I have no idea what any of that is supposed to mean, and therefore don't konw why it isn't running. The only I can think of that I might need to do is if I'm missing any of the programs required to run it. The readme says I nead python, pygtk, and gtk. I know I have gtk, but as for the other two, I have no clue. When I went to the Mandrake CD's, the only programs that looked applicable were describded as add-ons.
If it helps, I'm running Mandrake 10.0 (on a dual boot with XP) and only have the three CD's that were available online (to the extent that I searched) and as such do not have the Installation CD 4 that I keep getting prompted for.
Thanks, but I've already configured that file.
Judging by the error message, it looks like the error is caused by the line:
self.window.set_keep_above(1)
I don't think this is being recognized as a valid command for some reason. I could be way off base though, I don't really know.
Sorry my english, well i have the same problem wen I write the full path of notifier.py, that is: $ ¨Desktop/Descargas/gmail-notify-1.5/notifier.py¨, but wen I navigate to the dir containing the file whit ¨$ cd¨ and I wrote ./notifier.py it works.
Hope this help.
Again sorry for my english writing.
I tried what you suggested, but it didn't help. However, I DID get a new error message... so now I can pick between the error messages, if only that helped. anyways, here are the two error messages I can get:
Quote:
Traceback (most recent call last):
File "/home/steven/Documents/gmail-notify-1.5/notifier.py", line 20, in ?
gmailusername=config.get('options','gmailusername').replace('"','')
File "/usr/lib/python2.3/ConfigParser.py", line 286, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'options'
The other is:
Quote:
Traceback (most recent call last):
File "./notifier.py", line 306, in ?
gmailnotify = GmailNotify()
File "./notifier.py", line 220, in __init__
self.window.set_keep_above(1)
AttributeError: 'gtk.Window' object has no attribute 'set_keep_above'
Does anyone know any missing packages that might cause these errors?
Btw, if I run from the gmail-notify-1.5 directory the command ./libgmail.py It loads a text based gmail browser. it's not really what I want, but it leads me to believe the problem is in the file notifier.py
Anyways, thanks for your suggestions so far, new suggestions are very much welcome
i'm also seeming to have a problem with this python script....
i've tried to run it with both pygtk versions 2.0 and 2.2 (compiled from source), but each time i try to run it, it spits this back out:
Code:
[alex@enterprise gmail-notify-1.5]$ ./notifier.py
Traceback (most recent call last):
File "./notifier.py", line 6, in ?
import pygtk
ImportError: No module named pygtk
[alex@enterprise gmail-notify-1.5]$
I DID indeed do a "./configure && make" and "su -c 'make install' " in the source directories of pygtk as it told me, but each time it (notifier.py) tells me it cannot import it.. whatever that means in that case.
As for the required packages and versions, this is what rpm is telling me that i have:
As an update to my last post... i found a pygtk2.0 RPM from a public mandrake mirror, and installed it. Now when i attempt to run the program, i see the same error as 43r05p4c3's second error:
Code:
[alex@enterprise gmail-notify-1.5]$ ./notifier.py
Traceback (most recent call last):
File "./notifier.py", line 306, in ?
gmailnotify = GmailNotify()
File "./notifier.py", line 220, in __init__
self.window.set_keep_above(1)
AttributeError: 'gtk.Window' object has no attribute 'set_keep_above'
I have no clue what that means... a bug perhaps? At least 43r05p4c3 and I have the same distro and same error! If anyone has a solution, he'll/she'll "kill two flies with the same stone"
Ok, I think I have the problem solved
I haven't tested it, but according to the website, the problem is the version of gtk. upgrade to 2.4 or higher and there should be no problems... or as few as there ever are
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.