Closed
Description
Firestore library doesn't work on Python 3.3. Here's a sequence of steps to reproduce:
$ virtualenv sandbox
$ cd sandbox
$ source bin/activate
$ pip install google-cloud-firestore --upgrade
$ python --version
Python 3.3.0
$ python -c 'from google.cloud import firestore'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/google/home/hkj/Projects/firebase-admin-python/public/sandbox/lib/python3.3/site-packages/google/cloud/firestore.py", line 18, in <module>
from google.cloud.firestore_v1beta1 import __version__
File "/usr/local/google/home/hkj/Projects/firebase-admin-python/public/sandbox/lib/python3.3/site-packages/google/cloud/firestore_v1beta1/__init__.py", line 20, in <module>
from google.cloud.firestore_v1beta1 import types
ImportError: cannot import name types
The issue seems to be grpc-related. The dependency takes an unusually long time to install.
Here's a link to a Travis build of the Firebase Admin SDK which depends on Firestore. Note how things fail only in the Python 3.3 environment.