dask / dask/dask-cloudprovider
Conda package missing GCP packages (or wrong error message)
- Dominant language
- Python
- Stars
- 147
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
```bash
> conda install -c conda-forge dask-cloudprovider
> python
>>> from dask_cloudprovider.gcp import GCPCluster
Traceback (most recent call last):
File "/Users/rav/miniconda3/envs/dask_cloud/lib/python3.8/site-packages/dask_cloudprovider/gcp/instances.py", line 20, in
import googleapiclient.discovery
ModuleNotFoundError: No module named 'googleapiclient'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1, in
File "/Users/rav/miniconda3/envs/dask_cloud/lib/python3.8/site-packages/dask_cloudprovider/gcp/__init__.py", line 1, in
from .instances import GCPCluster
File "/Users/rav/miniconda3/envs/dask_cloud/lib/python3.8/site-packages/dask_cloudprovider/gcp/instances.py", line 29, in
raise ImportError(msg) from e
ImportError: Dask Cloud Provider GCP requirements are not installed.
Please either conda or pip install as follows:
conda install -c conda-forge dask-cloudprovider # either conda install
pip install "dask-cloudprovider[gcp]" --upgrade # or python -m pip install
```
`conda install -c conda-forge dask-cloudprovider` doesn't fix it, had to use pip. So either the conda package is missing GCP packages, or if that is intentional, then the error message is wrong at suggesting conda install for missing `googleapiclient`.
- dask 2020.12.0
- dask-cloudprovider 0.5.1
- dask-core 2020.12.0
- Python version: 3.8
- Operating System: mac
- Install method: conda
Contributor guide
Research direction
Reproduce the reported import failure with `conda install -c conda-forge dask-cloudprovider`, then inspect `gcp/instances.py` and the package metadata involved in the conda build. Verify whether the GCP dependencies are installed; done means the conda installation supports `from dask_cloudprovider.gcp import GCPCluster`, or the error message gives an accurate installation command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp, python
- Domain
- build-system, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100