<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vivisecting Media &#187; Google App Engine</title>
	<atom:link href="http://blog.vivisectingmedia.com/category/ria/google-app-engine-ria/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vivisectingmedia.com</link>
	<description>Looking at the world of media: from music to RIA.</description>
	<lastBuildDate>Fri, 09 Oct 2009 15:29:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Run and Debug Config for PyDev w/ Google Apps Engine</title>
		<link>http://blog.vivisectingmedia.com/2008/05/run-and-debug-config-for-pydev-w-google-apps-engine/</link>
		<comments>http://blog.vivisectingmedia.com/2008/05/run-and-debug-config-for-pydev-w-google-apps-engine/#comments</comments>
		<pubDate>Thu, 01 May 2008 15:51:32 +0000</pubDate>
		<dc:creator>James Polanco</dc:creator>
				<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PyDev]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.vivisectingmedia.com/2008/05/run-and-debug-config-for-pydev-w-google-apps-engine/</guid>
		<description><![CDATA[Now that I have PyDev running in my Eclipse the next big step was to get support for running and debugging the Google App Engine SDK.  This will be a simple post since Josh Feth Suttgart already took care of figuring out, by far, the simplest and most robust way of building your run [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-105" style="float: left; margin-top: 5px; margin-bottom: 5px; margin-left: 10px; margin-right: 10px;" title="Google App Engine Logo"src="http://blog.vivisectingmedia.com/wp-content/uploads/2008/05/google-app-engine-logo.jpg" alt="Google App Engine Logo" width="100" height="79" />Now that I have <a href="http://blog.vivisectingmedia.com/2008/04/installing-pydev-on-os-x-1052/" title="Installing PyDev in OS X">PyDev running in my Eclipse</a> the next big step was to get support for running and debugging the <a href="http://code.google.com/appengine/docs/" title="Google App Engine Docs">Google App Engine SDK</a>.  This will be a simple post since Josh Feth Suttgart already took care of figuring out, by far, the simplest and most robust way of building your run configuration in Eclipse. Follow his step by step instructions here:</p>

<blockquote>
  <p><a href="http://daily.profeth.de/2008/04/google-app-engine-eclipse-pydev.html" title="Step by step configuration...">Google App Engine &amp; eclipse (PyDev)</a></p>
</blockquote>

<p>Once you have configured your run environment his setup also allows for you to debug from the same launch profile.  To debug you just use the Debug version of the launch profile, no changes have to be made! There are a few things to note about this configuration:</p>

<ul>
<li>When you start a run session this only starts the Google App Engine server.  Unlike using Flex Builder or Aptana, this does not launch a browser window to your application path.  You will need to open a browser window and then navigate to the localhost:[port] that you have configured. <em>If someone knows how to directly launch to a specified path let me know and I will update this post.</em></li>
<li>Since you are starting a server with your run session you need to stop the session before starting a new debug session (or visa versa). If you do not stop (terminate) the previous session you will get an error in the Eclipse console. </li>
<li>The Google App Engine is smart enough to check touch times so when you update a file you can just refresh the browser (&#8217;course you probably know that if you did the gApp tutorial).  This makes the workflow with PyDev really easy.  Keep you browser window open and keep hitting refresh after any changes.  Unless of course you are using a lot of JavaScript then you may need to clear you cache.</li>
</ul>

<p>Have fun and let me know if you have any tips on improving the workflow!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vivisectingmedia.com/2008/05/run-and-debug-config-for-pydev-w-google-apps-engine/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing PyDev on OS X 10.5.2</title>
		<link>http://blog.vivisectingmedia.com/2008/04/installing-pydev-on-os-x-1052/</link>
		<comments>http://blog.vivisectingmedia.com/2008/04/installing-pydev-on-os-x-1052/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 16:48:10 +0000</pubDate>
		<dc:creator>James Polanco</dc:creator>
				<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PyDev]]></category>
		<category><![CDATA[10.5.2]]></category>
		<category><![CDATA[eclipse. Leopard]]></category>

		<guid isPermaLink="false">http://blog.vivisectingmedia.com/2008/04/installing-pydev-on-os-x-1052/</guid>
		<description><![CDATA[Update: If you are receiving an error when attempting to point PyDev to the OS X 10.5 install of Python 2.5 and are looking for the proper path to fix the error, then feel free to skip my rant by jumping down to here.

During the weekend I decided to begin playing with the Google App [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-105" style="float: left;" title="Python Logo" src="http://blog.vivisectingmedia.com/wp-content/uploads/2008/04/python-logo.gif" alt="Python Logo" width="211" height="71" /><strong>Update</strong>: If you are receiving an error when attempting to point PyDev to the OS X 10.5 install of Python 2.5 and are looking for the proper path to fix the error, then feel free to skip my rant by <a href="#solution">jumping down to here</a>.</p>

<p>During the weekend I decided to begin playing with the <a href="http://code.google.com/appengine/" title="Google App Engine">Google App Engine</a> and see what all the hubbub was about.  Like most developers I couldn&#8217;t get into the preview (yet) but I could download and run the SDK.  The SDK is all <a href="http://www.python.org/" title="Python official homepage">Python</a>, a language I knew a little about but never delved into.  Actually, the only thing I knew about it was that whitespace matters and having a good IDE is critical.  Knowing this I looked up IDE options and found a <a href="http://pydev.sourceforge.net/" title="Eclipse IDE for Python">plugin called PyDev</a> for my favorite IDE, Eclipse.</p>

<p>After taking a brief look at the feature set I saw the important ones; code completion, debugging, refactoring and I was sold.  I downloaded the plugin into Eclipse 3.3.2 and fired it up.  The <del datetime="2008-04-29T08:27:18+00:00">fist</del> first thing I tried to do was create a new project, when I tried that I got a message informing me that I had to define the Python interpreter settings before I could create a project.  Okay, makes sense to me.</p>

<p>I looked up the help docs and it said to open Eclipse > preferences > PyDev > Interpreter &#8211; Python, choose new&#8230; from the Interpreters section and point to my Python install directory.  I knew that OS X Leopard has Python built in so I look into the usual locations such as ~/Library/, /Library/ and /System/.  Nothing obvious jumped out so I did a quick search on the web and find the default install location is:</p>

<pre>/System/Library/Frameworks/Python.framework/</pre>

<p>Awesome, so I point the Interpreter to the Python exec yet it won&#8217;t let me choose it.  Well, it is a symlink so maybe I need to go to the actual exec.  I know that OS X has 2.5 installed so I navigate down to:   </p>

<pre>/System/Library/Frameworks/Python.framework/Versions/2.5/</pre>

<p>and try to choose the Python exec located there.  It accepts this location and then when I select it I get the &#8220;Error getting info on interpreter&#8221; dialog. What the hell does that mean?  It has some notes in the dialog that says that common errors include specifying an invalid interpreter and/or spaces in the Eclipse path.  Oops.  I have have a space in my Eclipse path, I fix it then try again.  Same error.  Hmmmm&#8230;.</p>

<p>There is also a bug documentation URL referenced in dialog so I do some searching and it tells me that if you get this error you are pointing to an invalid interpreter.  Well duh, the dialog told me that much.  What frustrates me is that the bug URL has the people responding back with &#8220;Hey, I fixed it.&#8221; with no statement on how, just that they fixed it!  Okay, that&#8217;s not helping&#8230; time to do some testing.</p>

<p>I try using 2.3 to see if that works.  Nope, same error.  Okay, what other paths are there?  I do some more digging and find out there is actually an APP file located at:</p>

<pre>/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/</pre>

<p>I try both the Python.app and Python Launcher.app.  This time a get a different error:  </p>

<blockquote>
Check your error log for more details.<br/><br/>
More info can also be found at the bug report:<br/>
http://sourceforge.net/tracker/index.php?func=detail&#038;aid=1523582&#038;group_id=85796&#038;atid=577329
<br/><br/>
java.io.IOException: /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app: cannot execute
</blockquote>

<p>WTF!?!?  I do more digging and people are having the same issue but NO WHERE IS IT DOCUMENTED ON HOW TO FIX IT!?!?! Okay, deep breaths&#8230; I want to use this plugin and people have it working in OS X and swear by it, I must prevail!</p>

<p>I do some more searching and stumble upon a <a href="http://www.mail-archive.com/pydev-users@lists.sourceforge.net/msg01855.html" title="Hinted at correct Python path">forum that talks about getting PyDev running</a> with Maya.  </p>

<p><a name="solution" />&#8211; SOLUTION HERE &#8211;</a></p>

<p><strong>Update</strong>: Gabriel Lamounier provided the direct path to Python for Leopard in the comments section for my original post.  He points out that the correct path is:</p>

<p>/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5</p>

<p>I verified it and PyDev does like this path.  Thanks Gabriel, I swore I tried this path during my testing but I must not have, after multiple hours of digging it&#8217;s sometimes easy to miss the semi-obvious.  So, the easy answer is&#8230; use this path when setting up your Python interpreter.  For grins, read the rest of the post to find out the &#8220;hack&#8221; way I came upon.</p>

<hr />

<p>It seems that you cannot point to the APP but you have to point to the contents in the APP which contains the Python interpreter.  <em>sigh</em>  Seriously, who would have thunk it?  So, the path for the Python interpreter in OS X 10.5 is:</p>

<pre>
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/
Contents/MacOS
</pre>

<p>Remember, an OS X APP is really just a fancy Directory.  But wait, there&#8217;s more!  You can&#8217;t actually navigate to the contents of an APP file from your standard OS X open dialog.  Well thank god for kessaris who posted the Maya solution because he mentions that when you are in the open dialog you can press <del datetime="2008-04-29T08:19:55+00:00">SHIT-CMD-G</del> SHIFT-CMD-G to open a URL dialog that allows you to paste a path in.  In most cases you have to Right click (CMD-Click) > Paste&#8230; to get the path in, but once you do you will see the Python interpreter in the MacOS folder.  Select it and it works! You are now off to the Python races.</p>

<p>I want to give a big shout out to kessaris, whoever you are, for posting this incredibly helpful reply.  Also, I hope this post helps someone install PyDev, because it really, really is a great IDE.  More on PyDev and the Google App Engine coming soon!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vivisectingmedia.com/2008/04/installing-pydev-on-os-x-1052/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
