Brauche Hilfe beim Cloudspeicher :(

34 views
Skip to first unread message

Pascal B.

unread,
Aug 26, 2017, 6:23:14 PM8/26/17
to Google App Engine

Momentan bin ich dabei mit AI2 eine App zu entwickeln und wollte dafür einen online Speicher haben. Aber jedes mal wenn ich auf "Deploy" klicke kommt nur diese Fehlermeldung:

2017-08-26 21:27:54 Running command: "['C:\\Python27\\python.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--oauth2_credential_file=C:\\Users\\Passi/.appcfg_oauth2_tokens', 'update', 'E:\\customtinywebdb\\customtinywebdb']"
09:27 PM Application: test-178018; version: 1
09:27 PM Host: appengine.google.com
09:27 PM Starting update of app: test-178018, version: 1
09:27 PM Getting current resource limits.
09:27 PM Scanning files on local disk.
Error 400: --- begin server output ---
Python 2.5 is not supported in 'e' partition.
--- end server output ---
2017-08-26 21:27:59 (Process exited with code 1)

You can close this window now.


Ich werde daraus nicht schlau, vor allem weil auf einmal irgendwas mit Python 2.5 da drin ist, obwohl ich nur Version 2.7 habe. Vielleicht hängt das damit zusammen, dass ich vorher einen anderen Fehler behoben hab, indem ich was weggenommen habe?

2017-08-26 21:15:23 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'E:\\customtinywebdb\\customtinywebdb']"
WARNING  2017-08-26 21:15:25,871 application_configuration.py:189] The "python" runtime specified in "E:\customtinywebdb\customtinywebdb\app.yaml" is not supported - the "python27" runtime will be used instead. A description of the differences between the two can be found here:
INFO     2017-08-26 21:15:25,871 devappserver2.py:116] Skipping SDK update check.
INFO     2017-08-26 21:15:26,098 api_server.py:313] Starting API server at: http://localhost:51240
INFO     2017-08-26 21:15:26,102 dispatcher.py:226] Starting module "default" running at: http://localhost:8080
INFO     2017-08-26 21:15:26,104 admin_server.py:116] Starting admin server at: http://localhost:8000
INFO     2017-08-26 21:16:11,234 module.py:416] [default] Detected file changes:
  main.py
INFO     2017-08-26 19:17:35,193 stubs.py:50] Sandbox prevented access to file "E:\customtinywebdb\customtinywebdb\main.pyc"

INFO     2017-08-26 19:17:35,194 stubs.py:51] If it is a static file, check that `application_readable: true` is set in your app.yaml

ERROR    2017-08-26 19:17:35,315 cgi.py:122] Traceback (most recent call last):

  File "E:\customtinywebdb\customtinywebdb\main.py", line 18, in <module>

    from django.utils import simplejson as json

ImportError: No module named django.utils



INFO     2017-08-26 21:17:35,326 module.py:832] default: "GET / HTTP/1.1" 500 -
INFO     2017-08-26 21:17:55,250 module.py:416] [default] Detected file changes:
  main.py
INFO     2017-08-26 21:18:01,153 api_server.py:945] Applying all pending transactions and saving the datastore
INFO     2017-08-26 21:18:01,153 api_server.py:948] Saving search indexes
2017-08-26 21:18:01 (Process exited with code 0)

2017-08-26 21:18:02 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'E:\\customtinywebdb\\customtinywebdb']"
WARNING  2017-08-26 21:18:04,263 application_configuration.py:189] The "python" runtime specified in "E:\customtinywebdb\customtinywebdb\app.yaml" is not supported - the "python27" runtime will be used instead. A description of the differences between the two can be found here:
INFO     2017-08-26 21:18:04,263 devappserver2.py:116] Skipping SDK update check.
INFO     2017-08-26 21:18:04,536 api_server.py:313] Starting API server at: http://localhost:51354
INFO     2017-08-26 21:18:04,539 dispatcher.py:226] Starting module "default" running at: http://localhost:8080
INFO     2017-08-26 21:18:04,540 admin_server.py:116] Starting admin server at: http://localhost:8000
INFO     2017-08-26 19:18:09,944 stubs.py:50] Sandbox prevented access to file "E:\customtinywebdb\customtinywebdb\main.pyc"

INFO     2017-08-26 19:18:09,944 stubs.py:51] If it is a static file, check that `application_readable: true` is set in your app.yaml

INFO     2017-08-26 21:18:10,078 module.py:832] default: "GET / HTTP/1.1" 200 2401
INFO     2017-08-26 21:18:10,118 module.py:832] default: "GET /images/customLogo.gif HTTP/1.1" 304 -
INFO     2017-08-26 21:26:38,720 api_server.py:945] Applying all pending transactions and saving the datastore
INFO     2017-08-26 21:26:38,720 api_server.py:948] Saving search indexes
2017-08-26 21:26:39 (Process exited with code 0)

2017-08-26 21:30:22 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'E:\\customtinywebdb\\customtinywebdb']"
WARNING  2017-08-26 21:30:24,914 application_configuration.py:189] The "python" runtime specified in "E:\customtinywebdb\customtinywebdb\app.yaml" is not supported - the "python27" runtime will be used instead. A description of the differences between the two can be found here:
INFO     2017-08-26 21:30:24,914 devappserver2.py:116] Skipping SDK update check.
INFO     2017-08-26 21:30:25,115 api_server.py:313] Starting API server at: http://localhost:51495
INFO     2017-08-26 21:30:25,119 dispatcher.py:226] Starting module "default" running at: http://localhost:8080
INFO     2017-08-26 21:30:25,121 admin_server.py:116] Starting admin server at: http://localhost:8000
INFO     2017-08-26 19:30:29,503 stubs.py:50] Sandbox prevented access to file "E:\customtinywebdb\customtinywebdb\main.pyc"

INFO     2017-08-26 19:30:29,503 stubs.py:51] If it is a static file, check that `application_readable: true` is set in your app.yaml

ERROR    2017-08-26 19:30:29,618 cgi.py:122] Traceback (most recent call last):

  File "E:\customtinywebdb\customtinywebdb\main.py", line 18, in <module>

    from django.utils import simplejson as json

ImportError: No module named django.utils



INFO     2017-08-26 21:30:29,628 module.py:832] default: "GET / HTTP/1.1" 500 -


Diese Fehlermeldung kam immer, wenn ich auf localhost:8080 gegangen bin, aber seid dem ich in der anhängenden Datei Zeile 18 (from django.utils import simplejson as json) entfernt habe, hat das funktioniert. Allerdings bringt mir ja ein localhost nichts, wenn die App für alle zugägnlich sein soll^^. Würde mich sehr freuen wenn mir wer helfen könnte :)

Lg Pascal
main.py

Attila-Mihaly Balazs

unread,
Aug 28, 2017, 11:32:41 PM8/28/17
to Google App Engine
Hello Pascal,

I understand that you're trying to use Django on App Engine standard.

To do that, you either need to use the Django provided by App Engine or install Django in the project's folder yourself. This link should get you started: https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27

Regards,
Attila

PS. You should get quicker answers if you post in English.

PS2. Just be aware that Django announced that the next release won't support legacy-python (AKA Python 2) while there is no timeline for AppEngine standard for supporting Python 3, so starting a new project with Django + AppEngine standard might not be a great choice.
Reply all
Reply to author
Forward
0 new messages