Skip to content

Commit

Permalink
Fix import error messages (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Nov 20, 2020
1 parent 5664336 commit a190601
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dask_cloudprovider/aws/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
msg = (
"Dask Cloud Provider AWS requirements are not installed.\n\n"
"Please either conda or pip install as follows:\n\n"
" conda install dask-cloudprovider # either conda install\n"
' python -m pip install "dask-cloudprovider[aws]" --upgrade # or python -m pip install'
" conda install -c conda-forge dask-cloudprovider # either conda install\n"
' pip install "dask-cloudprovider[aws]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down
4 changes: 2 additions & 2 deletions dask_cloudprovider/aws/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
msg = (
"Dask Cloud Provider AWS requirements are not installed.\n\n"
"Please either conda or pip install as follows:\n\n"
" conda install dask-cloudprovider # either conda install\n"
' python -m pip install "dask-cloudprovider[aws]" --upgrade # or python -m pip install'
" conda install -c conda-forge dask-cloudprovider # either conda install\n"
' pip install "dask-cloudprovider[aws]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down
4 changes: 2 additions & 2 deletions dask_cloudprovider/azure/azurevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
msg = (
"Dask Cloud Provider Azure requirements are not installed.\n\n"
"Please either conda or pip install as follows:\n\n"
" conda install dask-cloudprovider # either conda install\n"
' python -m pip install "dask-cloudprovider[azure]" --upgrade # or python -m pip install'
" conda install -c conda-forge dask-cloudprovider # either conda install\n"
' pip install "dask-cloudprovider[azure]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down
2 changes: 1 addition & 1 deletion dask_cloudprovider/azureml/azureml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
msg = (
"Dask Cloud Provider Azure ML requirements are not installed.\n\n"
"Please either pip install as follows:\n\n"
' python -m pip install "dask-cloudprovider[azureml]" --upgrade # or python -m pip install'
' pip install "dask-cloudprovider[azureml]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down
5 changes: 2 additions & 3 deletions dask_cloudprovider/digitalocean/droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
except ImportError as e:
msg = (
"Dask Cloud Provider Digital Ocean requirements are not installed.\n\n"
"Please either conda or pip install as follows:\n\n"
" conda install dask-cloudprovider # either conda install\n"
' python -m pip install "dask-cloudprovider[digitalocean]" --upgrade # or python -m pip install'
"Please pip install as follows:\n\n"
' pip install "dask-cloudprovider[digitalocean]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down
4 changes: 2 additions & 2 deletions dask_cloudprovider/gcp/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
msg = (
"Dask Cloud Provider GCP requirements are not installed.\n\n"
"Please either conda or pip install as follows:\n\n"
" conda install -c conda-forge google-api-python-client google-auth # either conda install\n"
' python -m pip install "dask-cloudprovider[gcp]" --upgrade # or python -m pip install'
" conda install -c conda-forge dask-cloudprovider # either conda install\n"
' pip install "dask-cloudprovider[gcp]" --upgrade # or python -m pip install'
)
raise ImportError(msg) from e

Expand Down

0 comments on commit a190601

Please sign in to comment.