Skip to content

FutureWarning: tmpfile is deprecated #557

Description

@tensionhead

What happened:

Plain import produces multi-line FutureWarning with newest dask and dask_jobqueue version. Multiple calls (e.g. for unit testing) pollute the terminal output with many of those.

What you expected to happen:

No FutureWarning

Minimal Complete Verifiable Example:

import dask_jobqueue
>>> lib/python3.8/site-packages/dask_jobqueue/core.py:20: FutureWarning: tmpfile is deprecated and will be removed in a future release. Please use dask.utils.tmpfile instead.
  from distributed.utils import tmpfile

Anything else we need to know?:

Happens on all tested platforms (various *nix, Mac OS)

Environment:

  • Dask version: 2022.5.0
  • Python version: 3.8.13
  • Operating System: Mac OS 12.2 / Ubuntu 20.04
  • Install method (conda, pip, source): conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions