hecato
September 7th, 2009, 04:24 PM
Hi there, like you know ubuntu 9.04 come with python2.6 by default, I want to develop a gae app but I think they use python2.5 because running under 2.6 show that they use some deprecated things (hash?).
So Im trying to use app-engine-patch, but it doesnt work and the guy there, say that is because I have 2 python variants, so for isolate python2.5 I have done the next.
virtualenv -p python2.5 p25
source p25/bin/activateand it prints something like
(p25)tyoc@tyoc-laptop:If you want to see the full description http://code.google.com/p/app-engine-patch/issues/detail?id=214
But running again ./manage.py runserver show this
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 2725, in _HandleRequest
base_env_dict=env_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 381, in Dispatch
base_env_dict=base_env_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 2012, in Dispatch
self._module_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1930, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1826, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File ".../appenginepatch-sample/common/appenginepatch/main.py", line 15, in <module>
from appenginepatcher.patch import patch_all, setup_logging
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1586, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1494, in FindAndLoadModule
description)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1444, in LoadModuleRestricted
description)
File ".../appenginepatch-sample/common/appenginepatch/appenginepatcher/patch.py", line 7, in <module>
from google.appengine.ext import db
ImportError: No module named ext
INFO:root:"GET / HTTP/1.1" 500 -
By the way /bin/env python launch me to python2.5 and also from an interactive shell when active I can do
from google.appengine.ext import db
Without problems... I will give it a shoot later today, so waiting for your tips.
So Im trying to use app-engine-patch, but it doesnt work and the guy there, say that is because I have 2 python variants, so for isolate python2.5 I have done the next.
virtualenv -p python2.5 p25
source p25/bin/activateand it prints something like
(p25)tyoc@tyoc-laptop:If you want to see the full description http://code.google.com/p/app-engine-patch/issues/detail?id=214
But running again ./manage.py runserver show this
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 2725, in _HandleRequest
base_env_dict=env_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 381, in Dispatch
base_env_dict=base_env_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 2012, in Dispatch
self._module_dict)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1930, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1826, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File ".../appenginepatch-sample/common/appenginepatch/main.py", line 15, in <module>
from appenginepatcher.patch import patch_all, setup_logging
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1586, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1494, in FindAndLoadModule
description)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate
return func(self, *args, **kwargs)
File ".../appenginepatch-sample/common/.google_appengine/google/appengine/tools/dev_appserver.py", line 1444, in LoadModuleRestricted
description)
File ".../appenginepatch-sample/common/appenginepatch/appenginepatcher/patch.py", line 7, in <module>
from google.appengine.ext import db
ImportError: No module named ext
INFO:root:"GET / HTTP/1.1" 500 -
By the way /bin/env python launch me to python2.5 and also from an interactive shell when active I can do
from google.appengine.ext import db
Without problems... I will give it a shoot later today, so waiting for your tips.