Import Error: No module named google.cloud when i tried to import the bigQuery

940 views
Skip to first unread message

user3709891 via StackOverflow

unread,
Mar 30, 2017, 1:58:11 PM3/30/17
to google-appengin...@googlegroups.com

When i try to use this statement in Google App Engine
"from google.cloud import big query"
It produces the error No Module Named Cloud but it runs fine and update the big Query tables if i run it from local machine. I want to make it a cron job on google app engine but this is not working. Please help as i am stuck in this Problem.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/43125078/import-error-no-module-named-google-cloud-when-i-tried-to-import-the-bigquery

user3709891 via StackOverflow

unread,
Mar 30, 2017, 2:38:09 PM3/30/17
to google-appengin...@googlegroups.com

When i try to use this statement in Google App Engine
"from google.cloud import big query"
It produces the error No Module Named Cloud but it runs fine and update the big Query tables if i run it from local machine. I want to make it a cron job on google app engine but this is not working. Please help as i am stuck in this Problem.

Environment: I am in the Standard Environment and its Python 2.7. I am not running the App Engine SDK development Server I am deploying the App live.

Qaisar Tariq via StackOverflow

unread,
Mar 30, 2017, 3:28:05 PM3/30/17
to google-appengin...@googlegroups.com

When i try to use this statement in Google App Engine
"from google.cloud import big query"
It produces the error No Module Named Cloud but it runs fine and update the big Query tables if i run it from local machine. I want to make it a cron job on google app engine but this is not working. Please help as i am stuck in this Problem.
Environment: I am in the Standard Environment and its Python 2.7. I am not running the App Engine SDK development Server I am deploying the App live.

When I run the Command "gcloud app browse" it opens a Browser and gives the following error
Error: Server Error
The server encountered an error and could not complete your request.

Qaisar Tariq via StackOverflow

unread,
Mar 30, 2017, 3:38:09 PM3/30/17
to google-appengin...@googlegroups.com

When i try to use this statement in Google App Engine
"from google.cloud import big query"
It produces the error No Module Named Cloud but it runs fine and update the big Query tables if i run it from local machine. I want to make it a cron job on google app engine but this is not working. Please help as i am stuck in this Problem.
Environment: I am in the Standard Environment and its Python 2.7. I am not running the App Engine SDK development Server I am deploying the App live.

My Code is
import time import uuid from google.cloud import bigquery client = bigquery.Client() jobid = "jid" + str(uuid.uuid4()) query = "Select * FROM Table" job = client.run_async_query(jobid, query)

When I run the Command "gcloud app browse" it opens a Browser and gives the following error
Error: Server Error
The server encountered an error and could not complete your request.

Qaisar Tariq via StackOverflow

unread,
Mar 30, 2017, 3:48:06 PM3/30/17
to google-appengin...@googlegroups.com

When I try to use this statement in Google App Engine

from google.cloud import big query

It produces the error No Module Named Cloud but it runs fine and update the big Query tables if i run it from local machine.

I want to make it a cron job on google app engine but this is not working.

Environment: I am in the Standard Environment and its Python 2.7. I am not running the App Engine SDK development Server I am deploying the App live.

My Code is:

 import time
 import uuid
 from google.cloud import bigquery
 client = bigquery.Client()
 jobid = "jid" + str(uuid.uuid4())
 query = "Select * FROM Table"
 job = client.run_async_query(jobid, query)

When I run the Command gcloud app browse it opens a Browser and gives the following error:

Error: Server Error 
The server encountered an error and could not complete your request.[![Error Trace][1]][1]
Reply all
Reply to author
Forward
0 new messages