peter,

i have no doubts that your Python 2.6 is working via the cmd-line. i'm
just not convinced that your App Engine code is executing that same
version.

robert will know this as well, but it is a well-known problem users
installing/upgrading Python on a Mac. it's even hard to Google for,
but here is an old link:
http://wiki.answers.com/Q/How_do_you_uninstall_python_in_mac_os_x_tiger

the main issue that people run into when installing/upgrading is that
they cannot fully remove the Python that Apple has installed. import
problems are a primary symptom of not only upgrading or
(re)installing, but also having multiple versions of Python installed.
i cannot help but conclude that this is the main cause, esp. seeing
your environment, but there's no easy way that i know of to clean it
out.

at this point, i would bite the bullet, back up the original
groctimespecification.py file, then modify it so that somehow either
logs or outputs to the screen the path as *it* knows it (before
importing groc of course), e.g., dump sys.path as you did earlier, but
directly from groctimespecification, and also sys.modules just to
confirm what's been loaded so far.

please let us know if you're somehow able to do this, or repair the
various Python installations you have on your machine.

best of luck!
-wesley


On Mon, Dec 28, 2009 at 6:23 PM, Peter Behr <[email protected]> wrote:
> Well, it looks like the darndest thing. First off, here's the path
> from within Python (and it has remained unchanged through all of the
> events below).
>
> Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.path
> ['', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python26.zip', '/System/Library/Frameworks/Python.framework/Versions/
> 2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/
> Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/
> Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/
> Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-
> mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/
> Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/
> Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/
> Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/
> System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> lib-dynload', '/Library/Python/2.6/site-packages', '/System/Library/
> Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/
> System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/
> python/wx-2.8-mac-unicode']
>
> I removed the Python 3.1 reference but that changed nothing. But I
> found that in my admin account (in which I had installed the Launcher
> in the first place) running appcfg.py did produce the desired result.
> Truly bizarre that in my regular user account, groctimespecification
> couldn't find the module groc, even though they're both in the same
> directory, and the first one was found no problem in the first place.
> Anyway, what I did was, without wiping anything out except /
> Applications/GoogleAppEngineLauncher.app, I took the SDK image in my
> regular user account, copied the Launcher to my desktop, opened it and
> made (revised?) symlinks, and suddenly everything works fine here. I
> have no idea why, because as far as I know the symlinks in /usr/local/
> google_appengine/ are the same as before.
>
> One problem I can point out is that the README refers to a .pkg
> installer, but there is none. Was that the state of affairs
> previously?
>
> Anyway, this problem has taken up a lot of my time today so I have to
> move on, but if you guys have any commentary or want to try to
> reproduce it, I will be following up. Thank you so much for your
> prompt comments!


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: [email protected]
developer relations :: google app engine

--

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.


Reply via email to