Closed GoogleCodeExporter closed 9 years ago
I have same problem, on Ubuntu 9.10, Python 2.5.4 & Python 2.6.4rc2, App Engine
SDK 1.2.7
Original comment by igor.art...@gmail.com
on 5 Nov 2009 at 1:15
in Ubuntu 9.10 google package imports from /usr/lib/pymodules/python2.5
> import google
> print google.__file__
/usr/lib/pymodules/python2.5/google/__init__.pyc
Original comment by aachu...@gmail.com
on 5 Nov 2009 at 2:36
For solving this problem just add
if sys.modules.has_key('google'):
del sys.modules['google']
in appengine_django/__init__.py, line 85
=============================================================================
def LoadSdk():
# Try to import the appengine code from the system path.
try:
from google.appengine.api import apiproxy_stub_map
except ImportError, e:
# force removing 'google' package
if sys.modules.has_key('google'): #<--- Ubuntu 9.10 fix
del sys.modules['google'] #<--- Ubuntu 9.10 fix
# Not on the system path. Build a list of alternative paths where it may be.
# First look within the project for a local copy, then look for where the Mac
# OS SDK installs it.
Original comment by aachu...@gmail.com
on 5 Nov 2009 at 3:01
Thanks, I can confirm this works for me. Is this going to be added to the next
release? Thanks again for your help!
Original comment by fili...@gmail.com
on 5 Nov 2009 at 3:35
I confirm the problem and confirm the provided solution works
Original comment by thiagoga...@gmail.com
on 15 Nov 2009 at 1:26
This issue was closed by revision r99.
Original comment by mattbrow...@gmail.com
on 25 Nov 2009 at 1:31
You may get this same exception in production (not locally) when upgrading to
Python 2.7. Issue 205 may have clues
Original comment by kumar.mcmillan
on 22 Jan 2013 at 8:01
Original issue reported on code.google.com by
fili...@gmail.com
on 2 Nov 2009 at 10:04