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
google-bigquery
add a comment |
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
google-bigquery
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
add a comment |
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
google-bigquery
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
google-bigquery
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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