Reputation:
I'm playing with GAE but I realized that when I try to start the .py file I get this error. What can I do? Thanks
python3 test.py runserver
Traceback (most recent call last):
File "test.py", line 6, in <module>
from google.appengine.ext import ndb
File "/usr/local/lib/python3.6/dist-packages/google/appengine/ext/ndb/__init__.py", line 7, in <module>
from tasklets import *
ModuleNotFoundError: No module named 'tasklets'
Upvotes: 1
Views: 702
Reputation: 39824
The NDB
library is only available in the standard environment GAE, which only works with python 2.7.
So either switch to the standard environment (and python 2.7) or use the flexible environment instructions for Using Cloud Datastore.
Maybe of interest: How to tell if a Google App Engine documentation page applies to the standard or the flexible environment
Upvotes: 4