bulletmark / gmail-indicator

A gmail indicator/notifier for new mail messages.
5 stars 0 forks source link

Trying to run on non-Ubuntu system #1

Closed Gen2ly closed 12 years ago

Gen2ly commented 12 years ago

First, I appreciate you work on this. I've been looking for a good gmail indicator for GNOME 3 and this looks to be what I need. I try to run ~/bin/./gmail-indicator and am getting this error:

  File "/home/todd/bin/./gmail-indicator", line 50
    print now, text
            ^
SyntaxError: invalid syntax

I've installed python2-imapclient which resolved to here so I'm pretty sure that's correct but I think my problem may have to do with unresolved dependencies. Could you help me out?

Edit:

Ok, I figured the first issue out: Arch Linux uses python 3 so changing the interpreter (sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' gmail-indicator) fixes the first problem.


Now when I try to run the script I'm getting:

** (process:3261): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:3261): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:3261): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "./gmail-indicator", line 385, in <module>
    indicator = Indicator.create(folder, args.other_desktop)
  File "./gmail-indicator", line 198, in create
    return Indicator.Msg(folder) if mtype else Indicator.App(folder)
  File "./gmail-indicator", line 151, in __init__
    import appindicator
ImportError: No module named appindicator```
bulletmark commented 12 years ago

Yes, this program requires python 2 and will not yet work with python 3. I will port it to python 3 when the IMAPClient library I use here is ported to python 3 and according to http://imapclient.freshfoo.com/ that is in progress. In the meantime, I will now change the shebang line to explicitly specify python2 as I find that link also exists in Ubuntu so I can use it.

The reason I titled this program in the README as "Gmail-indicator for Ubuntu" is because it relies on the Ubuntu specific appindicator module (for gnome shell), or indicate module (for Unity, classic, etc). As far as I know these modules are only available on Ubuntu, not more generally in the debian packages so I doubt you will be able to use them or this program. Yes, this is annoying and a mess but hopefully Gnome and Ubuntu will eventually resolve their currrently acrimonious issues and then developers will get a single compatible API to code apps for.

Gen2ly commented 12 years ago

Hey, great answer. I too would like to see a standardized notification system can be created. Yeah, the libappindicator is Ubuntu-specific; luckily, there is a package in the AUR repository for it and because of it I'm able to run it successfully! Good detail, appreciate it.