{"id":2600,"date":"2012-01-08T07:18:00","date_gmt":"2012-01-07T23:18:00","guid":{"rendered":"http:\/\/chrislee.pro\/?p=2600"},"modified":"2012-01-08T07:18:00","modified_gmt":"2012-01-07T23:18:00","slug":"compile-pydev-google-app-engine-project-with-aptana-in-windows-7","status":"publish","type":"post","link":"https:\/\/chrislee.pro\/?p=2600","title":{"rendered":"Compile PyDev Google App Engine Project with Aptana in Windows 7"},"content":{"rendered":"<p>Needed Sofware :<\/p>\n<blockquote>\n<h5>Google App Engine SDK for Python(Windows) <a href=\"http:\/\/googleappengine.googlecode.com\/files\/GoogleAppEngine-1.6.1.msi\">GoogleAppEngine-1.6.1.msi<\/a><br \/>\nAptana Studio 3.0.7 <a href=\"http:\/\/aptana.com\/products\/studio3\/download \">http:\/\/aptana.com\/products\/studio3\/download <\/a><\/h5>\n<h5>Pyhton 2.54 For x86 processors: <a href=\"http:\/\/www.python.org\/ftp\/python\/2.5.4\/python-2.5.4.msi\">python-2.5.4.msi<\/a><\/h5>\n<p>&nbsp;<\/p><\/blockquote>\n<p><!--more-->1. Install the three required software.<br \/>\n2. Open Aptana Studio 3<br \/>\n3. Select the default workspace (Remember this path)<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image-1.png\" alt=\"\" width=\"550\" height=\"270\" \/><\/p>\n<p>4. Let Studio config Git support.<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B225255D.png\" alt=\"\" \/><\/p>\n<p><em><strong>We need to set the Python interperters first.<\/strong><\/em><\/p>\n<p><em><strong><\/strong><\/em>5.Go to Window-&gt;Perferences-&gt;Pydev-&gt;Interpreter \u2013 Python<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/2525E625259C2525AA2525E52525912525BD2525E525259025258D.jpg\" alt=\"\" \/><\/p>\n<p>6.Click New<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B325255D.png\" alt=\"\" \/><\/p>\n<p>7. Click Browse-&gt; Find the Python25 folder(default c:Python25)-&gt;choose python.exe-&gt;Click ok<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B525255D.png\" alt=\"\" \/><\/p>\n<p>8. Leave the setting default then click ok<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B625255D.png\" alt=\"\" width=\"549\" height=\"451\" \/><\/p>\n<p>9. Then Python interperters in Aptana Studio 3 are properly set.<\/p>\n<p><span style=\"text-decoration: underline;\"><em><strong>Now open a Google App Engine Project.<\/strong><\/em><\/span><\/p>\n<p>10. Go to File-&gt;New-&gt;Other<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/2525E625259C2525AA2525E52525912525BD2525E525259025258D1.jpg\" alt=\"\" \/><\/p>\n<p>11. Choose PyDev Google App Engine Project-&gt;Click Next<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B825255D.png\" alt=\"\" \/><\/p>\n<p>12. Enter project name \u201chelloword\u201d and change the Grammer Version to 2.5-&gt;Click Next<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B925255D.png\" alt=\"\" \/><\/p>\n<p>Now we need to set the path for Google App Engine launcher.<\/p>\n<p>13. Click browse and find the google app engine sdk folder.<br \/>\n(default C:Program Files (x86)Googlegoogle_appengine)<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1025255D.png\" alt=\"\" width=\"475\" height=\"545\" \/><\/p>\n<p>14. Leave the default setting-&gt; Click OK.<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1125255D.png\" alt=\"\" \/><\/p>\n<p>15. Click Finish<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1225255D.png\" alt=\"\" width=\"426\" height=\"489\" \/><\/p>\n<p>16. Click Yes.<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1325255D.png\" alt=\"\" \/><\/p>\n<p>Now Create a new helloworld.py and app.yaml in the helloworld directory.<\/p>\n<p>17. Right click the helloword project then New-&gt;File,<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/2525E625259C2525AA2525E52525912525BD2525E525259025258D2.jpg\" alt=\"\" \/><\/p>\n<p>18. In the File name field, enter helloworld.py Click finish. Repeat procedure for app.yaml.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1425255D.png\" alt=\"\" width=\"427\" height=\"497\" \/><\/p>\n<p>19. Give helloworld.py the following contents:<\/p>\n<blockquote><p>print &#8216;Content-Type: text\/plain&#8217;<br \/>\nprint &#8221;<br \/>\nprint &#8216;Hello, world!&#8217;<\/p><\/blockquote>\n<p>20. Give app.yaml the following contents:<\/p>\n<blockquote><p>application: helloworld<br \/>\nversion: 1<br \/>\nruntime: python<br \/>\napi_version: 1<\/p>\n<p>handlers:<br \/>\n&#8211; url: \/.*<br \/>\nscript: helloworld.py<\/p><\/blockquote>\n<p>21. Press Ctrl+F11 to compile. Leve the default then click ok.<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/Image25252025255B1625255D.png\" alt=\"\" \/><\/p>\n<p>22.\u00a0 Review the console for outopt.<br \/>\n<img decoding=\"async\" src=\"https:\/\/chrislee.pro\/wp-content\/uploads\/2012\/01\/2525E625259C2525AA2525E52525912525BD2525E525259025258D3.jpg\" alt=\"\" \/><\/p>\n<p>Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Needed Sofware : Google App Engine SDK for Python(Windo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[46,117,223,275],"class_list":{"0":"post-2600","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-chris-","8":"tag-aptana","9":"tag-google-app-engine","10":"tag-pydev","11":"tag-windows"},"_links":{"self":[{"href":"https:\/\/chrislee.pro\/index.php?rest_route=\/wp\/v2\/posts\/2600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chrislee.pro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chrislee.pro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chrislee.pro\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chrislee.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2600"}],"version-history":[{"count":0,"href":"https:\/\/chrislee.pro\/index.php?rest_route=\/wp\/v2\/posts\/2600\/revisions"}],"wp:attachment":[{"href":"https:\/\/chrislee.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chrislee.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chrislee.pro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}