Skip to content Skip to sidebar Skip to footer

Google Cloud Bigquery Import Not Working In App Engine Project

I have used the following code to build an app engine project to move data from google cloud bucket into the bigquery table import argparse import time import uuid from google.clo

Solution 1:

Google Cloud uses the new Python namespace format (if you look at the source you'll notice that there's no __init__.py in the directory structure). This was changed in Python 3.3 with PEP-420

Fortunately in Python 2.7 you can fix this easily by avoiding implicit imports. Just add this to the very top of your file (before any other imports) to get the Python 3 behavior:

from __future__ import absolute_import

Post a Comment for "Google Cloud Bigquery Import Not Working In App Engine Project"