开发者

Configuring App Engine path for PyDev on Mac

开发者 https://www.devze.com 2023-02-08 15:27 出处:网络
I\'ve just installed Eclipse and the Pydev plug-in on my Mac (OS X 10.6.6) and I\'m having trouble using the Google App Engine project \'template\'. I\'m really stuck here so your help would be really

I've just installed Eclipse and the Pydev plug-in on my Mac (OS X 10.6.6) and I'm having trouble using the Google App Engine project 'template'. I'm really stuck here so your help would be really appreciated.

I can get as far as adding a New Project > Pydev > Pydev Google App Engine Project and setup the project name, directory and type etc no problem.

It then 开发者_运维知识库asks for the Google App Engine directory "Select the Google App Engine root directory (dir containing dev_appserver.py, appcfg.py, lib etc" but I can't find these files anywhere. I have of course already installed the Google App Engine SDK.

I did find a post that says I should specify the following path:

"/Applications/**GoogleAppEngineLauncher.app**/Contents/Resources/ 
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/"

Notice this path includes a .app file (!?). I tried to navigate this structure and I can find the GoogleAppEngineLauncher.app file but can't navigate into it. I even tried pasting the path into the dialog directly... no luck.

What am I doing wrong? Help!

Yours, Confoosed.


Put /usr/local/google_appengine as the path to ${GOOGLE_APP_ENGINE} and Eclipse will resolve that symlink to /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine.

You should be able to see the /usr folder under Eclipse, which you normally won't see under Finder.


I had the same problem and I was stuck for days. I simply searched for the dev_appserver.py file in the Finder and inserted that dir. Mine was just under the folder I initially pointed it toward on my Desktop and I was wasting time looking in the App folder. I hope that helps, even though its so simple to just search your whole dir sys for the file.

I had downloaded this AppEngine SDK for Python on Mac OS X and it seemed like it was just the SDK without the dir that we need for the lib.

Good luck,


You need to download and run the Google App Engine SDK for Python (the AppEngine SDK for Python on Mac OS X may be found at that link), and you need to run the installer program. It will install the dev_appserver binary in /usr/local/bin/. You shouldn't try running the bundled code; one of the reasons why it is necessary to run in the installer and have it install the code in /usr/local/bin/, is that the installer will also periodically update those files which it has installed; if you run them directly from within the bundle, then you risk running out-of-date versions of those files.

0

精彩评论

暂无评论...
验证码 换一张
取 消