python3 fixes and patches

This commit is contained in:
Kaan Soral
2024-02-06 23:38:44 +03:00
parent c9c28e7be6
commit 889e3b2ac2
12 changed files with 69 additions and 22 deletions
+5 -1
View File
@@ -8,9 +8,13 @@ The python3 dev_appserver uses Java objects, test it according to your needs and
Useful: https://cloud.google.com/appengine/docs/standard/tools/local-devserver-command?tab=python
Useful for testing, creates a copy: node ~/gscripts/create_python3_copy.js
alias run_thegame3="python3.11 /Users/kaan/Desktop/APPENGINE/google-cloud-sdk/bin/dev_appserver.py --storage_path=/Users/kaan/Desktop/DEPLOY/python3/storage/ --blobstore_path=/Users/kaan/Desktop/DEPLOY/python3/storage/blobstore/ --datastore_path=/Users/kaan/Desktop/DEPLOY/python3/storage/new_db.bin --host=0.0.0.0 --port=8083 /Users/kaan/Desktop/DEPLOY/python3/thegame/ --require_indexes --enable_host_checking=False"
Suggestions:
1) Invoke /admin/make with your email put in admin.py
2) From /admin/executor - call empty_fill_maps()
3) After getting rid of the initial errors, figure out the rest
3) After getting rid of the initial errors, figure out the rest
Useful for pulling logs: gcloud app logs tail -v 20240206t194907
+2 -3
View File
@@ -1,7 +1,5 @@
runtime: python312
runtime: python39
app_engine_apis: true
threadsafe: true
api_version: 1
builtins:
- deferred: on
@@ -33,6 +31,7 @@ handlers:
script: auto
env_variables:
# NDB_PY2_UNPICKLE_COMPAT: True
NDB_USE_CROSS_COMPATIBLE_PICKLE_PROTOCOL: True
MEMCACHE_USE_CROSS_COMPATIBLE_PROTOCOL: True
DEFERRED_USE_CROSS_COMPATIBLE_PICKLE_PROTOCOL: True