Skip to content

Error importing check_python_3 with new version of distributed #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kmpaul opened this issue Apr 13, 2022 · 0 comments · Fixed by #85
Closed

Error importing check_python_3 with new version of distributed #84

kmpaul opened this issue Apr 13, 2022 · 0 comments · Fixed by #85

Comments

@kmpaul
Copy link
Collaborator

kmpaul commented Apr 13, 2022

What happened:

When dask-mpi CLI is used, it attempts to import check_python_3 from distributed.cli.utils, which now fails because that function has been removed.

What you expected to happen:

We shouldn't need to check for Python 3 any more.

Minimal Complete Verifiable Example:

$ conda create -y --name test dask-mpi
$ dask-mpi --help
Traceback (most recent call last):
  File ".../envs/daskmpi/bin/dask-mpi", line 7, in <module>
    from dask_mpi.cli import go
  File ".../envs/daskmpi/lib/python3.10/site-packages/dask_mpi/cli.py", line 6, in <module>
    from distributed.cli.utils import check_python_3
ImportError: cannot import name 'check_python_3' from 'distributed.cli.utils' (.../envs/daskmpi/lib/python3.10/site-packages/distributed/cli/utils.py)

Anything else we need to know?:

I'm working on a PR to fix this now.

Environment:

  • Dask version: 2022.4.0
  • Python version: 3.10.4
  • Operating System: MacOS
  • Install method (conda, pip, source): conda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant