-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Troubleshooting Installation Via Pip #2440
Description
[Background: I am a product analyst with experience in python and would like to use the google cloud package for python to query directly from my company's BigQuery instead of using a bash wrapper and the gcloud sdk.]
I was unable to install use pip (I forget the exact error as this was yesterday) but it finally installed when I used the flag --ignore-installed
However, when I then ran from google.cloud import bigquery I then ran into an IOError: Permission Denied: <'path/to/protobuf-3.0.0-py2.7.egg/EGG-INFO/namespace_packages.txt'> which I solved by changing the permissions on that. Now, I receive this traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/google/cloud/bigquery/__init__.py", line 26, in <module>
from google.cloud.bigquery.client import Client
File "/Library/Python/2.7/site-packages/google/cloud/bigquery/client.py", line 18, in <module>
from google.cloud.client import JSONClient
File "/Library/Python/2.7/site-packages/google/cloud/client.py", line 20, in <module>
from google.cloud._helpers import _determine_default_project
File "/Library/Python/2.7/site-packages/google/cloud/_helpers.py", line 28, in <module>
from google.protobuf import timestamp_pb2
File "/Library/Python/2.7/site-packages/google/protobuf/timestamp_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "/Library/Python/2.7/site-packages/google/protobuf/descriptor.py", line 39, in <module>
from google.protobuf.internal import api_implementation
ImportError: cannot import name api_implementation--
I'm not sure if this is an error with my installation or with the google cloud package itself, and I'm not sure exactly what the problem is, so apologies that I cannot ask a clearer question. Thank you.