<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: pynotify &#8211; CLI tool for Gnome libnotify</title>
	<atom:link href="http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/feed/" rel="self" type="application/rss+xml" />
	<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/</link>
	<description>Words from the geeky sysadmin</description>
	<lastBuildDate>Thu, 10 Sep 2009 13:58:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marius Scurtescu</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-19266</link>
		<dc:creator>Marius Scurtescu</dc:creator>
		<pubDate>Fri, 27 Feb 2009 05:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-19266</guid>
		<description>On debian based system there is a similar command line tool called notify-send, it is in the libnotify-bin package.</description>
		<content:encoded><![CDATA[<p>On debian based system there is a similar command line tool called notify-send, it is in the libnotify-bin package.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chess board</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-19223</link>
		<dc:creator>chess board</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-19223</guid>
		<description>Using the CLI tool growl notify to notify me from my scripts. Recent versions of Gnome use lib notify to display notifications similarly to Growl.A PI is very handy and easy to understand, but hardly documented at all.so thanks for informative blog.really interesting i want to use this and i will try so i appreciate to your efforts.</description>
		<content:encoded><![CDATA[<p>Using the CLI tool growl notify to notify me from my scripts. Recent versions of Gnome use lib notify to display notifications similarly to Growl.A PI is very handy and easy to understand, but hardly documented at all.so thanks for informative blog.really interesting i want to use this and i will try so i appreciate to your efforts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Russell</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-18404</link>
		<dc:creator>Jim Russell</dc:creator>
		<pubDate>Sun, 28 Dec 2008 04:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-18404</guid>
		<description>I had the &quot;init&quot; failure as well, and I now know why.  When you save Lonnie&#039;s script, don&#039;t call it pynotify or pynotify.py.  Call it pynot.py or something else.  You see, the library being used is called pynotify, and if you have a pynotify.py in your current directory, the import will look there instead of your site packages to try to find the init method.</description>
		<content:encoded><![CDATA[<p>I had the &#8220;init&#8221; failure as well, and I now know why.  When you save Lonnie&#8217;s script, don&#8217;t call it pynotify or pynotify.py.  Call it pynot.py or something else.  You see, the library being used is called pynotify, and if you have a pynotify.py in your current directory, the import will look there instead of your site packages to try to find the init method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AmÃ©rico Dias</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-11298</link>
		<dc:creator>AmÃ©rico Dias</dc:creator>
		<pubDate>Sun, 10 Feb 2008 03:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-11298</guid>
		<description>I have this problem too!</description>
		<content:encoded><![CDATA[<p>I have this problem too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oshu</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-8682</link>
		<dc:creator>Oshu</dc:creator>
		<pubDate>Tue, 25 Sep 2007 15:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-8682</guid>
		<description>Stefan, I use it like this:

import pynotify

pynotify.init(&quot;my program&quot;)
n = pynotify.Notification(&quot;Title&quot;, &quot;body&quot;, &quot;gtk.STOCK_INFO&quot;)
n.set_urgency(pynotify.URGENCY_NORMAL)
n.set_timeout(pynotify.EXPIRES_NEVER)
n.show()</description>
		<content:encoded><![CDATA[<p>Stefan, I use it like this:</p>
<p>import pynotify</p>
<p>pynotify.init(&#8220;my program&#8221;)<br />
n = pynotify.Notification(&#8220;Title&#8221;, &#8220;body&#8221;, &#8220;gtk.STOCK_INFO&#8221;)<br />
n.set_urgency(pynotify.URGENCY_NORMAL)<br />
n.set_timeout(pynotify.EXPIRES_NEVER)<br />
n.show()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-8203</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Fri, 14 Sep 2007 02:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-8203</guid>
		<description>Update: I changed the line &quot;from pynotify import *&quot; to &quot;from pynotify import init&quot; and the import immediately fails. 

That seems like it could be a problem.</description>
		<content:encoded><![CDATA[<p>Update: I changed the line &#8220;from pynotify import *&#8221; to &#8220;from pynotify import init&#8221; and the import immediately fails. </p>
<p>That seems like it could be a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-8202</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Fri, 14 Sep 2007 02:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-8202</guid>
		<description>Forgive my ignorance of Python on this one.

&quot;from pynotify import *&quot;
This imports everything in the current script into the current namespace? (I only ask because I&#039;ve seen pynotify and python-notify used interchangably, does this refer to your pynotify or the python-notify bindings?). Granted, it wouldn&#039;t make much sense to have a file import its own header, but I don&#039;t know Python. Maybe it&#039;s funky.

If init() refers to a function defined inside *your* pynotify code, then the problem seems to be that init() is not defined anywhere in the file you provided. The only functions I see are send_notification(), usage(), and main().

If init() is coming from python-notify, then I can think of two possible issues. One is that I have an incompatible version (praytell what version you built this on?)

The second is that I have your script located in a place where it cannot find the pynotify library. Must your script be located in a specific places in the file system in order to function?

Thanks,
-Stefan</description>
		<content:encoded><![CDATA[<p>Forgive my ignorance of Python on this one.</p>
<p>&#8220;from pynotify import *&#8221;<br />
This imports everything in the current script into the current namespace? (I only ask because I&#8217;ve seen pynotify and python-notify used interchangably, does this refer to your pynotify or the python-notify bindings?). Granted, it wouldn&#8217;t make much sense to have a file import its own header, but I don&#8217;t know Python. Maybe it&#8217;s funky.</p>
<p>If init() refers to a function defined inside *your* pynotify code, then the problem seems to be that init() is not defined anywhere in the file you provided. The only functions I see are send_notification(), usage(), and main().</p>
<p>If init() is coming from python-notify, then I can think of two possible issues. One is that I have an incompatible version (praytell what version you built this on?)</p>
<p>The second is that I have your script located in a place where it cannot find the pynotify library. Must your script be located in a specific places in the file system in order to function?</p>
<p>Thanks,<br />
-Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fungus</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-8201</link>
		<dc:creator>fungus</dc:creator>
		<pubDate>Fri, 14 Sep 2007 01:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-8201</guid>
		<description>init() is a function call inside the pynotify library.  

from pynotify import *
says to import everything in the module into the current namespace.  If the import of pynotify didn&#039;t fail, then there is a problem with the module itself.

Perhaps an incompatible version... I am not sure exactly.</description>
		<content:encoded><![CDATA[<p>init() is a function call inside the pynotify library.  </p>
<p>from pynotify import *<br />
says to import everything in the module into the current namespace.  If the import of pynotify didn&#8217;t fail, then there is a problem with the module itself.</p>
<p>Perhaps an incompatible version&#8230; I am not sure exactly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://lonnieolson.com/blog/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/comment-page-1/#comment-8196</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Fri, 14 Sep 2007 00:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kittypee.com/2007/06/22/pynotify-cli-tool-for-gnome-libnotify/#comment-8196</guid>
		<description>Hey there,

I like the idea of this tool a lot, but I&#039;m having a (probably stupid) issue. I&#039;m not familiar with python, but it seems that the call to init() in send_notification(config) doesn&#039;t point anywhere.

Consequently, the script is failing with the following stack trace:

Traceback (most recent call last):
  File &quot;/usr/bin/pynotify&quot;, line 72, in 
    main()
  File &quot;/usr/bin/pynotify&quot;, line 66, in main
    send_notification(config)
  File &quot;/usr/bin/pynotify&quot;, line 7, in send_notification
    init(config[&#039;appName&#039;])
NameError: global name &#039;init&#039; is not defined

Am I missing something, or was this an omission from the code?</description>
		<content:encoded><![CDATA[<p>Hey there,</p>
<p>I like the idea of this tool a lot, but I&#8217;m having a (probably stupid) issue. I&#8217;m not familiar with python, but it seems that the call to init() in send_notification(config) doesn&#8217;t point anywhere.</p>
<p>Consequently, the script is failing with the following stack trace:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/usr/bin/pynotify&#8221;, line 72, in<br />
    main()<br />
  File &#8220;/usr/bin/pynotify&#8221;, line 66, in main<br />
    send_notification(config)<br />
  File &#8220;/usr/bin/pynotify&#8221;, line 7, in send_notification<br />
    init(config['appName'])<br />
NameError: global name &#8216;init&#8217; is not defined</p>
<p>Am I missing something, or was this an omission from the code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
