Search code examples
pythonpython-3.xubuntutask-queuegoogle-cloud-sdk

How to import google's taskqueue library in python


I am trying to use google task queues in python3, but I am facing some trouble while importing taskqueue library. On issuing the following command

from google.appengine.api import taskqueue

I am getting this error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google.appengine'

I have installed Google Cloud SDK and additionally installed 2 more packages as mentioned in the link.

google-cloud-sdk-app-engine-python

google-cloud-sdk-app-engine-python-extras

I have checked the version of gcloud components that has been installed

$ gcloud --version
Google Cloud SDK 206.0.0
alpha 2018.06.18
app-engine-python 1.9.70
app-engine-python-extras 1.9.70
beta 2018.06.18
bq 2.0.34
core 2018.06.18
gsutil 4.32

Why I cannot be able to import taskqueue, Any help would appreciated.


Solution

  • The Task Queue service has limited availability outside of the App Engine standard environment. This issue was reported at, please deploy an App Engine standard app to test this out. You can find sample code at.