Closed
Description
If I install google-cloud
in a brand new virtual environment and don't use the wheel distribution, importing modules from the package causes the program to hang indefinitely.
pip install google-cloud --no-binary :all: # force pip to install sdist
python -c "from google.cloud import datastore" # hangs
The only material difference I see between installing wheel vs. egg is compiling the grpcio dependency, which has c extensions.
$ pip show google-cloud
Name: google-cloud
Version: 0.25.0
Summary: API Client library for Google Cloud
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google Cloud Platform
Author-email: jjg+google-cloud-python@google.com
License: Apache 2.0
Location: /home/yang/.virtualenvs/pyvatic/lib/python2.7/site-packages
Requires: google-cloud-bigquery, google-cloud-bigtable, google-cloud-core, google-cloud-datastore, google-cloud-dns, google-cloud-error-reporting, google-cloud-language, google-cloud-logging, google-cloud-monitoring, google-cloud-pubsub, google-cloud-resource-manager, google-cloud-spanner, google-cloud-speech, google-cloud-storage, google-cloud-translate, google-cloud-vision, google-cloud-runtimeconfig
$ python --version
Python 2.7.12
$ gcc --version
gcc (Ubuntu 4.9.4-2ubuntu1~16.04) 4.9.4
Installing from wheel distribution works fine, but if a package lists google-cloud
as a dependency in its own setup.py
, pip won't install wheels since its not supported in setuptools
and the program will hang whenever modules from google-cloud
are imported.
I'm running on Ubuntu 16.04 LTS.
Activity