LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   troubles installing gmail notifier (from sourceforge.com) (https://www.linuxquestions.org/questions/linux-software-2/troubles-installing-gmail-notifier-from-sourceforge-com-300938/)

43r05p4c3 03-12-2005 08:46 PM

troubles installing gmail notifier (from sourceforge.com)
 
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 in advance,
Steve

XavierP 03-13-2005 05:51 AM

You need to edit the file with your username and password for it to work.

43r05p4c3 03-13-2005 01:12 PM

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.

Well, I hope someone can help,

Steve

Daniel.Gorila 03-17-2005 06:59 PM

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.

43r05p4c3 03-17-2005 11:32 PM

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

Steve

student04 03-21-2005 08:17 PM

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:
Code:

[alex@enterprise pygtk-2.0.0]$ rpm -qa | grep python
python-numeric-23.1-2mdk
python-2.3.3-2.1.100mdk
python-base-2.3.3-2.1.100mdk
libpython2.3-2.3.3-2.1.100mdk
pythonlib-1.28-5mdk
libpython2.3-devel-2.3.3-2.1.100mdk

Code:

[alex@enterprise pygtk-2.0.0]$ rpm -qa | grep gtk
libgtk+2.0_0-devel-2.2.4-10.1.100mdk
libgtkmm2.0_1-devel-2.2.9-1mdk
libgtk+1.2-1.2.10-38mdk
gtkdialogs-2.1-1mdk
libgtk+1.2-devel-1.2.10-38mdk
libwxgtkgl2.5-2.5.0-0.cvs20030817.1.5.100mdk
libgtksourceview-1.0_0-0.7.0-1mdk
libgtkxmhtml1-1.4.2-7mdk
gtk+2.0-2.2.4-10.1.100mdk
libwxgtk2.5-2.5.0-0.cvs20030817.1.5.100mdk
libgtkspell0-2.0.3-5mdk
libgtk+-x11-2.0_0-2.2.4-10.1.100mdk
libgtk+2.0_0-2.2.4-10.1.100mdk
libwxgtk2.5-devel-2.5.0-0.cvs20030817.1.5.100mdk
libgtkmm1.2-devel-1.2.10-7mdk
gtk-engines-0.12-8mdk
libgtkmm1.2-1.2.10-7mdk
libgtkhtml2_0-2.4.1-2mdk
gtk-engines2-2.2.0-5mdk
libgtkhtml-3.0_4-3.0.10-1mdk
libgtkmm2.0_1-2.2.9-1mdk
libgtkhtml1.1_3-1.1.10-4mdk
gtksourceview-0.7.0-1mdk

libgmail, says the REAME, is included in the source tarball, and the pygtk i explained above.

If i'm not doing something out of stupidity, lemme know. Thanks. :)

student04 03-21-2005 10:47 PM

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" :D

43r05p4c3 04-12-2005 12:16 AM

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 ;)

Steve


All times are GMT -5. The time now is 03:46 PM.