| Issue 39: | No module named ext.db | |
| 4 people starred this issue and may be notified of changes. | Back to list |
[Note: this is for reporting issues on the JaikuEngine open source project.
if you are reporting an issue with the jaiku.com service, please send it to
support@jaiku.com]
What steps will reproduce the problem?
1. svn co jaikuengine-read-only
2. cp local-setting-example.py local-setting.py
3. python manage runserver
4.
What is the expected output? What do you see instead?
no index page will be displayed on browser. but a lot of error info.
What version of the product are you using? On what operating system?
CentOS 5.2
Please provide any additional information below.
The server log is:
[root@newtest jaikuengine-read-only]# python manage.py runserver
\WARNING:root:Could not read datastore data
from /tmp/django_jaiku.datastore
WARNING:root:Could not read datastore data
from /tmp/django_jaiku.datastore.history
INFO:root:Trying to load components in
['tests.py', '__init__.py', 'models.py', '.svn', 'dummy_legal', '__init__.p
yc', 'models.pyc', 'dummy_analytics', 'dummy_sms_service', 'dummy_xmpp_serv
ice']...
INFO:root:Server: appengine.google.com
INFO:root:Checking for updates to the SDK.
INFO:root:The SDK is up to date.
WARNING:root:Could not read datastore data from /tmp/django_jaiku.datastore
WARNING:root:Could not read datastore data
from /tmp/django_jaiku.datastore.history
INFO:root:Running application jaiku on port 8000: http://localhost:8000
WARNING:root:Blocking access to skipped file "/root/jaikuengine-read-
only/django/foo"
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
2711, in _HandleRequest
base_env_dict=env_dict)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line 380,
in Dispatch
base_env_dict=base_env_dict)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1998, in Dispatch
self._module_dict)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1916, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1812, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/root/jaikuengine-read-only/main.py", line 30, in ?
from appengine_django import InstallAppengineHelperForDjango
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line 982,
in decorate
return func(self, *args, **kwargs)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1572, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line 982,
in decorate
return func(self, *args, **kwargs)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1480, in FindAndLoadModule
description)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line 982,
in decorate
return func(self, *args, **kwargs)
File "/root/jaikuengine-read-
only/.google_appengine/google/appengine/tools/dev_appserver.py", line
1430, in LoadModuleRestricted
description)
File "/root/jaikuengine-read-only/appengine_django/__init__.py", line
130, in ?
from django import VERSION
ImportError: No module named django
INFO:root:"GET / HTTP/1.1" 500 -
Mar 15, 2009
Issue 42 has been merged into this issue.
Mar 16, 2009
After modified file below,it get to work now.
But still can't load fixtures on my WinXP machine:-(
So I can't login:-(
Comment 1 by mika.raento, Mar 14 (47 hours ago)
There's an incompatibility with the current appengine SDK that is getting fixed.
Meanwhile, comment out the
lines
if FakeFile._skip_files.match(relative_filename):
logging.warning('Blocking access to skipped file "%s"',
logical_filename)
return False
in google/appengine/tools/dev_appserver.py.
Mar 24, 2009
Added a monkey patch to resolve this issue in r23, the patch described above is no longer necessary
Status:
Fixed
Owner: andyster |
o, I'm sorry. No module named ext.db Error will be under Windows XP. Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. D:\jaikuengine-read-only>c:\python25\python manage.py runserver WARNING:root:Could not read datastore data from c:\docume~1\刘文龙\locals~1\temp \django_jaiku.datastore WARNING:root:Could not read datastore data from c:\docume~1\刘文龙\locals~1\temp \django_jaiku.datastore.history INFO:root:Trying to load components in ['.svn', 'dummy_analytics', 'dummy_legal' , 'dummy_sms_service', 'dummy_xmpp_service', 'models.py', 'models.pyc', 'tests.p y', '__init__.py', '__init__.pyc']... INFO:root:Server: appengine.google.com INFO:root:Checking for updates to the SDK. INFO:root:The SDK is up to date. WARNING:root:Could not read datastore data from c:\docume~1\刘文龙\locals~1\temp \django_jaiku.datastore WARNING:root:Could not read datastore data from c:\docume~1\刘文龙\locals~1\temp \django_jaiku.datastore.history INFO:root:Running application jaiku on port 8000: http://localhost:8000 ERROR:root:Exception encountered handling request Traceback (most recent call last): File "c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py", line 2711, in _HandleRequest base_env_dict=env_dict) File "c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py", line 380, in Dispatch base_env_dict=base_env_dict) File "c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py", line 1998, in Dispatch self._module_dict) File "c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "D:\jaikuengine-read-only\main.py", line 33, in <module> InstallAppengineHelperForDjango() File "D:\jaikuengine-read-only\appengine_django\__init__.py", line 468, in Ins tallAppengineHelperForDjango InstallModelForm() File "D:\jaikuengine-read-only\appengine_django\__init__.py", line 517, in Ins tallModelForm from google.appengine.ext.db import djangoforms as aeforms ImportError: No module named ext.db INFO:root:"GET / HTTP/1.1" 500 - Errors on Broswer: <type 'exceptions.ImportError'> Python 2.5.2: c:\python25\python.exe Sun Mar 15 14:10:39 2009 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x0159E738>) 2709 infile, 2710 outfile, 2711 base_env_dict=env_dict) 2712 finally: 2713 self.module_manager.UpdateModuleFileModificationTimes() base_env_dict undefined, env_dict = {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_P ROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'} c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py in Dispatch (self=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x015A4D70>, relative_url='/', path=None, headers=<mimetools.Message instance at 0x0159E9E0>, infile=<cStringIO.StringI object at 0x015933F8>, outfile=<cStringIO.StringO object at 0x015A4AE0>, base_env_dict= {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_P ROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}) 378 infile, 379 outfile, 380 base_env_dict=base_env_dict) 381 382 if forward: base_env_dict = {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_P ROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'} c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py in Dispatch (self=<google.appengine.tools.dev_appserver.CGIDispatcher object at 0x015A40D0>, relative_url='/', path='main.py', headers=<mimetools.Message instance at 0x0159E9E0>, infile=<cStringIO.StringI object at 0x015933F8>, outfile=<cStringIO.StringO object at 0x015A4AE0>, base_env_dict= {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_P ROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}) 1996 infile, 1997 outfile, 1998 self._module_dict) 1999 handler.AddDebuggingConsole(relative_url, env, outfile) 2000 finally: self = <google.appengine.tools.dev_appserver.CGIDispatcher object at 0x015A40D0>, self._module_dict = {'__main__': <module 'main' from 'D:\jaikuengine-read- only\main.py'>, '_struct': <module '_struct' (built-in)>, '_types': <module '_types' (built-in)>, 'appengine_django': <module 'appengine_django' from 'D:\jaikuengine- read-only\appengine_django\__init__.pyc'>, 'appengine_django.appengine_django': None, 'appengine_django.db': <module 'appengine' from 'D:\jaikuengine-read- only\appengine_django\db\__init__.pyc'>, 'appengine_django.django': None, 'appengine_django.google': None, 'appengine_django.logging': None, 'appengine_django.os': None, ...} c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py in ExecuteCGI (root_path=ruD:\jaikuengine-read-onlyu, handler_path='main.py', cgi_path=ruD:\jaikuengine-read-only\main.pyu, env= {'APPLICATION_ID': 'jaiku', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTEN T_TYPE': 'application/x-www-form- urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEP T': 'image/gif, image/x-xbitmap, image/jpeg, image/pj...cation/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn', 'HTTP_CONNECTION': 'Keep- Alive', 'HTTP_HOST': 'localhost:8000', ...}, infile=<cStringIO.StringI object at 0x015933F8>, outfile=<cStringIO.StringO object at 0x015A4AE0>, module_dict= {'__main__': <module 'main' from 'D:\jaikuengine-read-only\main.py'>, '_struct': <module '_struct' (built-in)>, '_types': <module '_types' (built-in) >, 'appengine_django': <module 'appengine_django' from 'D:\jaikuengine-read- only\appengine_django\__init__.pyc'>, 'appengine_django.appengine_django': None, 'appengine_django.db': <module 'appengine' from 'D:\jaikuengine-read- only\appengine_django\db\__init__.pyc'>, 'appengine_django.django': None, 'appengine_django.google': None, 'appengine_django.logging': None, 'appengine_django.os': None, ...}, exec_script=<function ExecuteOrImportScript at 0x010B7F70>) 1914 logging.debug('Executing CGI with env:\n%s', pprint.pformat(env)) 1915 try: 1916 reset_modules = exec_script(handler_path, cgi_path, hook) 1917 except SystemExit, e: 1918 logging.debug('CGI exited with status: %s', e) reset_modules = True, exec_script = <function ExecuteOrImportScript at 0x010B7F70>, handler_path = 'main.py', cgi_path = ruD:\jaikuengine-read-only\main.pyu, hook = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x015A48D0> c:\python25\lib\site-packages\google\appengine\tools\dev_appserver.py in ExecuteOrImportScript(handler_path='main.py', cgi_path=ruD:\jaikuengine-read- only\main.pyu, import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x015A48D0>) 1810 try: 1811 if module_code: 1812 exec module_code in script_module.__dict__ 1813 else: 1814 script_module.main() module_code = <code object <module> at 01590338, file "D:\jaikuengine-read- only\main.py", line 21>, script_module = <module 'main' from 'D:\jaikuengine-read- only\main.py'>, script_module.__dict__ = {'InstallAppengineHelperForDjango': <function InstallAppengineHelperForDjango at 0x0161DAB0>, '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, ...}, '__doc__': 'Bootstrap for running a Django app under Google ...ly -- everything else is controlled from there.\n\n', '__file__': r'D:\jaikuengine-read-only\main.py', '__loader__': <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x015A48D0>, '__name__': 'main', 'django_zip_path': r'D:\jaikuengine-read- only\django.zip', 'have_django_zip': False, 'logging': <module 'logging' from 'c:\python25\lib\logging\__init__.pyc'>, 'os': <module 'os' from 'c:\python25 \lib\os.pyc'>, ...} D:\jaikuengine-read-only\main.py in () 31 from appengine_django import have_django_zip 32 from appengine_django import django_zip_path 33 InstallAppengineHelperForDjango() 34 35 # Load extra components InstallAppengineHelperForDjango = <function InstallAppengineHelperForDjango at 0x0161DAB0> D:\jaikuengine-read-only\appengine_django\__init__.py in InstallAppengineHelperForDjango() 466 InstallReplacementImpModule() 467 InstallAppengineDatabaseBackend() 468 InstallModelForm() 469 InstallGoogleMemcache() 470 InstallDjangoModuleReplacements() global InstallModelForm = <function InstallModelForm at 0x0161DB70> D:\jaikuengine-read-only\appengine_django\__init__.py in InstallModelForm() 515 """Replace Django ModelForm with the AppEngine ModelForm.""" 516 # This MUST happen as early as possible, but after any auth model patching. 517 from google.appengine.ext.db import djangoforms as aeforms 518 try: 519 # pre 1.0 google undefined, djangoforms undefined, aeforms undefined <type 'exceptions.ImportError'>: No module named ext.db args = ('No module named ext.db',) message = 'No module named ext.db'