straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

No run from example, then AttributeError: 'FakeModelListProperty' object has no attribute 'indexed'. #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ubuntu 9.04, download
  * http://app-engine-patch.googlecode.com/files/app-engine-patch-1.1RC.zip
  * http://googleappengine.googlecode.com/files/google_appengine_1.2.0.zip
2.  unzip app-engine-patch,then put the unziped version of app engine in
app-engine-patch/commom/.google_appengine
3. Run the following,  go to the webpage

tyoc@tyoc-laptop:~/tyoc/app-engine-patch-sample$ python2.5 manage.py runserver
The Google App Engine SDK could not be found! (SEE THAT i ADDED THE
APPEGINE TEMPORARILY TO common/.google_appengine)
Visit http://code.google.com/p/app-engine-patch/ for installation instructions.
tyoc@tyoc-laptop:~/tyoc/app-engine-patch-sample$ python2.5 manage.py runserver
WARNING:root:Could not read datastore data from
/tmp/django_aep-sample.datastore
Running on app-engine-patch 1.1
INFO:root:Server: appengine.google.com
INFO:root:Checking for updates to the SDK.
WARNING:root:Could not read datastore data from
/tmp/django_aep-sample.datastore
INFO:root:Running application aep-sample on port 8000: http://localhost:8000
WARNING:root:Blocking access to skipped file
".../app-engine-patch-sample/common/.google_appengine/google/appengine/ext/foo"
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 2725, in _HandleRequest
    base_env_dict=env_dict)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 381, in Dispatch
    base_env_dict=base_env_dict)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 2012, in Dispatch
    self._module_dict)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 1930, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 1826, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File ".../app-engine-patch-sample/common/appenginepatch/main.py", line
15, in <module>
    from appenginepatcher.patch import patch_all, setup_logging
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 996, in decorate
    return func(self, *args, **kwargs)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 1586, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 996, in decorate
    return func(self, *args, **kwargs)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 1494, in FindAndLoadModule
    description)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 996, in decorate
    return func(self, *args, **kwargs)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/tools/dev
_appserver.py",
line 1444, in LoadModuleRestricted
    description)
  File
".../app-engine-patch-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 -

Then, the same copy I have in common/.google_appengine (this one is
removed, server stoped), I have one in the upper directory without the
preprended point, then I run

tyoc@tyoc-laptop:~/tyoc/app-engine-patch-sample$ python2.5
../google_appengine/dev_appserver.py .
INFO     2009-09-06 08:39:01,878 appengine_rpc.py] Server: appengine.google.com
INFO     2009-09-06 08:39:01,893 appcfg.py] Checking for updates to the SDK.
INFO     2009-09-06 08:39:02,264 dev_appserver_main.py] Running application
aep-sample on port 8080: http://localhost:8080

It display the index page OK. But if I hit
http://localhost:8080/person/create_admin_user, then this is the output

WARNING  2009-09-06 08:39:23,059 dev_appserver.py] Blocking access to
skipped file
".../app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/.svn/entr
ies"
INFO     2009-09-06 08:39:25,194 dev_appserver.py] "GET / HTTP/1.1" 200 -
INFO     2009-09-06 08:39:25,198 dev_appserver_index.py] Detected manual
index.yaml, will not update
ERROR    2009-09-06 08:39:28,498 signals.py] Exception in request:
Traceback (most recent call last):
  File
".../app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/hand
lers/base.py",
line 92, in get_response
  File ".../app-engine-patch-sample/myapp/views.py", line 51, in
create_admin_user
    user.put()
  File
".../app-engine-patch-sample/common/appenginepatch/appenginepatcher/patch.py",
line 579, in put
    result = old_put(self, *args, **kwargs)
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/ext/db/__
init__.py",
line 668, in put
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/ext/db/__
init__.py",
line 650, in _populate_internal_entity
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/ext/db/__
init__.py",
line 703, in _populate_entity
  File
".../app-engine-patch-sample/common/.google_appengine/google/appengine/ext/db/__
init__.py",
line 633, in _to_entity
  File
".../app-engine-patch-sample/common/appenginepatch/ragendja/dbutils.py",
line 581, in get_value_for_datastore
    if not self.indexed:
AttributeError: 'FakeModelListProperty' object has no attribute 'indexed'
INFO     2009-09-06 08:39:28,722 dev_appserver.py] "GET
/person/create_admin_user HTTP/1.1" 500 -

Also I have watched the  issue #130 but I havend added or moded the
appengine or app-engine-patch-sample and I think I have followed correctly
the instructions.

Original issue reported on code.google.com by 007...@gmail.com on 6 Sep 2009 at 8:44

GoogleCodeExporter commented 9 years ago
It's not an Appengine-Patch problem.

It's a mixup of two different Python versions problem.

See
http://groups.google.de/group/app-engine-patch/msg/9e9edfc837af9b43?hl=en

Original comment by w...@arcor.de on 7 Sep 2009 at 8:21

GoogleCodeExporter commented 9 years ago
I have the same problem, and I am sure that my computer only have Python 2.5.4 
installed.

Original comment by cyanb...@gmail.com on 12 Oct 2009 at 3:47

GoogleCodeExporter commented 9 years ago
I'm also getting an error "ImportError: No module named ext" when I try to run
dev_appserver.py with python2.5.  It won't run with python2.6 either.

Original comment by eazyigz on 19 Jan 2010 at 3:00