question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DASK distributed import Client error (ImportError: cannot import name future_set_exc_info)

See original GitHub issue

Hi! Along the line of “Import error in dask-scheduler #1120”, there is another problem. I use Datalab instance on Google cloud platform (GCP). For DASK installation I use the following command in a cell: !pip install dask[complete] distributed --upgrade Installation goes well and I can verify it: !dask-scheduler which produce an output:

distributed.scheduler - INFO - ----------------------------------------------- distributed.scheduler - INFO - Clear task state distributed.scheduler - INFO - Scheduler at: tcp://172.17.0.2:8786 distributed.scheduler - INFO - Local Directory: /tmp/scheduler-XAWu9a distributed.scheduler - INFO - -----------------------------------------------

On the other hand, I get

ImportError: cannot import name future_set_exc_info pointing to 100 from tornado.concurrent import (Future, is_future, chain_future, future_set_exc_info, 101 future_add_done_callback, future_set_result_unless_cancelled)

when I call from distributed import Client… Any ideas how to solve this???

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NatLun091238commented, Apr 23, 2018

It seems like we found rather stable solution which doesn’t interfere with existing datalab dask installation. We run an external script doing: !pip install tornado==4.5.1 distributed==1.21 dask-ml[complete] and restarting current server on GCP and then verifying installation. After that all packages need for development are available. It’s not a best way of solving the problem, but it works for us.

0reactions
mrocklincommented, Apr 18, 2018

Dask.distributed requires tornado 4.5 or greater. But no, the error that you’re seeing is likely something different. I recommend looking through datalab docs on how to install or upgrade libraries in your user environment. They should have a nice solution to this somewhere, but unfortunately I’m not very familiar with their service.

On Wed, Apr 18, 2018 at 9:07 AM, NatLun091238 notifications@github.com wrote:

Thank you so much. Indeed, that’s the case. from tornado import gen results in `ImportErrorTraceback (most recent call last) in () ----> 1 from tornado import gen

/usr/local/envs/py2env/lib/python2.7/site-packages/tornado/gen.py in () 98 import types 99 –> 100 from tornado.concurrent import (Future, is_future, chain_future, future_set_exc_info, 101 future_add_done_callback, future_set_result_unless_cancelled) 102 from tornado.ioloop import IOLoop

ImportError: cannot import name future_set_exc_info`

Another thing, Datalab has tornado-4.4.2 installed, but DASK requires tornado-5.0.2. Could this mismatch lead to the error shown above??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dask/distributed/issues/1924#issuecomment-382379858, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszPsgo1Ikh8s5jxumkOyq989yRz3dks5tpzqIgaJpZM4TZtpR .

Read more comments on GitHub >

github_iconTop Results From Across the Web

(From dask distributed) ImportError: cannot import name ...
Isn't it simply a case problem ? Looking at dask's repo, it seems you should import it this way: from dask.distributed import Scheduler....
Read more >
Source code for distributed.client
Source code for distributed.client. from __future__ import annotations import asyncio import atexit import copy import inspect import json import logging ...
Read more >
Source code for distributed.worker
Source code for distributed.worker. from __future__ import annotations import asyncio import ...
Read more >
Changelog — Dask.distributed 2022.12.1 documentation
Add ForwardOutput worker plugin to forward stdout and stderr to client. ... Fix import error when distributed.rmm.pool-size is set (GH#6482) KoyamaSohei ...
Read more >
distributed.utils — Dask.distributed 2022.12.1 documentation
getLogger(__name__) if TYPE_CHECKING: # TODO: import from typing ... + optional_packages: try: importlib.import_module(pkg) except ImportError: pass else: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found