{"id":2962,"date":"2008-03-15T15:35:00","date_gmt":"2008-03-15T15:35:00","guid":{"rendered":"http:\/\/www.flubu.com\/blog\/2008\/03\/15\/gmail-notifier-woes-on-x86_64\/"},"modified":"2008-03-15T15:35:00","modified_gmt":"2008-03-15T15:35:00","slug":"gmail-notifier-woes-on-x86_64","status":"publish","type":"post","link":"https:\/\/www.flubu.com\/blog\/2008\/03\/15\/gmail-notifier-woes-on-x86_64\/","title":{"rendered":"gmail-notifier woes on x86_64"},"content":{"rendered":"<p>One of the things I miss in linux was the windows Gmail notifier. There is a linux version, written in Python, but it wasn&apos;t working in a 64 bit distribution. If you tried to run it out of the box, you would get the dreaded &#8220;wrong ELF class: ELFCLASS32&#8221; exception, because the distributed shared object to create a tray icon was compiled in 32 bits. If you tried to grab another version compiled in 64 bits, you now got the &#8220;undefined symbol: Py_InitModule4&#8221; error, which was caused because some file headers were redefined and renamed to avoid conflicts (sic!) in 64 bits. I was going nuts at this point, because I am most certainly not a Python programmer. But I still managed to find a fix, before everybody else on the net, woohoo!<\/p>\n<p>A simple cure in 3 easy steps<\/p>\n<p>1. get package python-gnome2-extras<br \/>\n2. change a few lines in notify.py as described below:<\/p>\n<p>#comment out the pytrayicon import and import egg and egg.trayicon<br \/>\n#import pytrayicon<br \/>\nimport egg<br \/>\nimport egg.trayicon<\/p>\n<p>#change the way the tray object is built<br \/>\n#create the tray icon object<br \/>\n#self.tray = pytrayicon.TrayIcon(self.lang.get_string(21));<br \/>\nself.tray = egg.trayicon.TrayIcon(self.lang.get_string(21));<\/p>\n<p>3. enjoy!<\/p>\n<p>Works like a charm :D<\/p>\n<p>This makes me go squeeeeeeeeeeeeeeeee!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things I miss in linux was the windows Gmail notifier. There is a linux version, written in Python, but it wasn&apos;t working in a 64 bit distribution. If you tried to run it out of the box, you would get the dreaded &#8220;wrong ELF class: ELFCLASS32&#8221; exception, because the distributed shared object&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.flubu.com\/blog\/2008\/03\/15\/gmail-notifier-woes-on-x86_64\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;gmail-notifier woes on x86_64&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[17],"class_list":["post-2962","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-geek"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3u9vK-LM","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/2962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/comments?post=2962"}],"version-history":[{"count":0,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/2962\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/media?parent=2962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/categories?post=2962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/tags?post=2962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}