Ryan,
Thank you very much for the tip.
I did as you suggested, and as evidence of it making the switch, when
I invoke "python", I see that it's now 2.5.4:
% defaults write com.apple.versioner.python Version 2.5
% defaults read com.apple.versioner.python
{
Version = "2.5";
}
% python
Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
However, when I run the AppEngine I still get the same result:
% python /usr/local/bin/dev_appserver.py helloworld/
Traceback (most recent call last):
File "/usr/local/bin/dev_appserver.py", line 60, in <module>
run_file(__file__, globals())
File "/usr/local/bin/dev_appserver.py", line 57, in run_file
execfile(script_path, globals_)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver_main.py", line 65, in <module>
from google.appengine.tools import os_compat
The same happens if I use the AppEngine Launcher.
On Nov 4, 12:51 pm, ryan baldwin <[email protected]> wrote:
> You have to switch to 2.5. Easy to do.
>
> Open a terminal and throw this command to the wind:
>
> defaults write com.apple.versioner.python Version 2.5
>
> Enjoy!
>
> - ryan.
>
>
>
> On Wed, Nov 4, 2009 at 8:37 AM, Glenn <[email protected]> wrote:
>
> > I'm running Snow Leopard and therefore by default Python 2.6.
>
> > I know that I need Python 2.5.
>
> > I'm running the first "Hello, World" example, and trying the following
> > at the Unix prompt in Terminal:
>
> > %python2.5 /usr/local/bin/dev_appserver.py helloworld/
>
> > and this is what I get:
>
> > Traceback (most recent call last):
> > File "/usr/local/bin/dev_appserver.py", line 60, in <module>
> > run_file(__file__, globals())
> > File "/usr/local/bin/dev_appserver.py", line 57, in run_file
> > execfile(script_path, globals_)
> > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> > google/appengine/tools/dev_appserver_main.py", line 65, in <module>
> > from google.appengine.tools import os_compat
> > ImportError: cannot import name os_compat
>
> > What am I missing?
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---