Cannot use bigquery in appengine : “ImportError: No module named google.cloud.bigquery”











up vote
1
down vote

favorite












Tried everything possible to fix this bug am not sure where I'm going wrong. I've run pip already and seems like everything is in place, but the lib errors are still there.



Need guidance on what else to check



pip install --system --upgrade -r requirements.txt -t lib




$ cat appengine_config.py
import sys
import os
sys.path.insert(0, 'lib')
# appengine_config.py
from google.appengine.ext import vendor

# Add any libraries install in the "lib" folder.


vendor.add('lib')



$ cat requirements.txt 
GoogleAppEngineCloudStorageClient==1.9.22.1
google-api-python-client
google-cloud
google-cloud-bigquery




#Inside the code
from google.cloud import bigquery
from google.cloud.bigquery import Dataset




ERROR    2018-11-10 16:24:47,981 wsgi.py:263] 
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/royans/repository/tesmon/tesmonweb/tmon.py", line 32, in <module>
from google.cloud import bigquery
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1149, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.bigquery









share|improve this question






















  • Is this useful? stackoverflow.com/q/43085047/6253347
    – Elliott Brossard
    Nov 10 at 21:59










  • Try removing "google-cloud": stackoverflow.com/questions/53173371/…
    – Graham Polley
    Nov 12 at 12:38

















up vote
1
down vote

favorite












Tried everything possible to fix this bug am not sure where I'm going wrong. I've run pip already and seems like everything is in place, but the lib errors are still there.



Need guidance on what else to check



pip install --system --upgrade -r requirements.txt -t lib




$ cat appengine_config.py
import sys
import os
sys.path.insert(0, 'lib')
# appengine_config.py
from google.appengine.ext import vendor

# Add any libraries install in the "lib" folder.


vendor.add('lib')



$ cat requirements.txt 
GoogleAppEngineCloudStorageClient==1.9.22.1
google-api-python-client
google-cloud
google-cloud-bigquery




#Inside the code
from google.cloud import bigquery
from google.cloud.bigquery import Dataset




ERROR    2018-11-10 16:24:47,981 wsgi.py:263] 
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/royans/repository/tesmon/tesmonweb/tmon.py", line 32, in <module>
from google.cloud import bigquery
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1149, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.bigquery









share|improve this question






















  • Is this useful? stackoverflow.com/q/43085047/6253347
    – Elliott Brossard
    Nov 10 at 21:59










  • Try removing "google-cloud": stackoverflow.com/questions/53173371/…
    – Graham Polley
    Nov 12 at 12:38















up vote
1
down vote

favorite









up vote
1
down vote

favorite











Tried everything possible to fix this bug am not sure where I'm going wrong. I've run pip already and seems like everything is in place, but the lib errors are still there.



Need guidance on what else to check



pip install --system --upgrade -r requirements.txt -t lib




$ cat appengine_config.py
import sys
import os
sys.path.insert(0, 'lib')
# appengine_config.py
from google.appengine.ext import vendor

# Add any libraries install in the "lib" folder.


vendor.add('lib')



$ cat requirements.txt 
GoogleAppEngineCloudStorageClient==1.9.22.1
google-api-python-client
google-cloud
google-cloud-bigquery




#Inside the code
from google.cloud import bigquery
from google.cloud.bigquery import Dataset




ERROR    2018-11-10 16:24:47,981 wsgi.py:263] 
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/royans/repository/tesmon/tesmonweb/tmon.py", line 32, in <module>
from google.cloud import bigquery
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1149, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.bigquery









share|improve this question













Tried everything possible to fix this bug am not sure where I'm going wrong. I've run pip already and seems like everything is in place, but the lib errors are still there.



Need guidance on what else to check



pip install --system --upgrade -r requirements.txt -t lib




$ cat appengine_config.py
import sys
import os
sys.path.insert(0, 'lib')
# appengine_config.py
from google.appengine.ext import vendor

# Add any libraries install in the "lib" folder.


vendor.add('lib')



$ cat requirements.txt 
GoogleAppEngineCloudStorageClient==1.9.22.1
google-api-python-client
google-cloud
google-cloud-bigquery




#Inside the code
from google.cloud import bigquery
from google.cloud.bigquery import Dataset




ERROR    2018-11-10 16:24:47,981 wsgi.py:263] 
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/royans/repository/tesmon/tesmonweb/tmon.py", line 32, in <module>
from google.cloud import bigquery
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1149, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.bigquery






google-bigquery






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 16:34









Royans K Tharakan

61




61












  • Is this useful? stackoverflow.com/q/43085047/6253347
    – Elliott Brossard
    Nov 10 at 21:59










  • Try removing "google-cloud": stackoverflow.com/questions/53173371/…
    – Graham Polley
    Nov 12 at 12:38




















  • Is this useful? stackoverflow.com/q/43085047/6253347
    – Elliott Brossard
    Nov 10 at 21:59










  • Try removing "google-cloud": stackoverflow.com/questions/53173371/…
    – Graham Polley
    Nov 12 at 12:38


















Is this useful? stackoverflow.com/q/43085047/6253347
– Elliott Brossard
Nov 10 at 21:59




Is this useful? stackoverflow.com/q/43085047/6253347
– Elliott Brossard
Nov 10 at 21:59












Try removing "google-cloud": stackoverflow.com/questions/53173371/…
– Graham Polley
Nov 12 at 12:38






Try removing "google-cloud": stackoverflow.com/questions/53173371/…
– Graham Polley
Nov 12 at 12:38



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53241034%2fcannot-use-bigquery-in-appengine-importerror-no-module-named-google-cloud-bi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53241034%2fcannot-use-bigquery-in-appengine-importerror-no-module-named-google-cloud-bi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

Bicuculline

さくらももこ