Importing dask.distributed.Client causes `TypeError: unhashable type: 'types.SimpleNamespace'` (not using it)
See original GitHub issueMy alive_bar was working quite well for some time. Then, I implemented an optional branch in my program for parallel execution of some stuff using a Dask dataframe. In the course of implementing that branch, the alive_bar stopped working even in the serial-only branch. Turns out, it’s due to the import statement importing the dask.distributed.Client class. See my MWE below. Thanks!
import time
import dask
from dask.distributed import Client # this is the one that breaks alive_progress!
from alive_progress import alive_bar
total_reps = 100
with alive_bar(total=total_reps, force_tty=True) as bar:
for i in range(total_reps):
time.sleep(0.5)
bar()
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Array compute method fails with "TypeError: unhashable type ...
from dask.core import flatten import dask.array as da from distributed import Client c = Client(resources={'a':2}) A = da.ones((100,100), ...
Read more >TypeError : Unhashable type - python - Stack Overflow
You are creating a set via set(...) call, and set needs hashable items. You can't have set of lists. Because list's arent hashable....
Read more >How to Handle Unhashable Type List Exceptions in Python
The Python TypeError: Unhashable Type: 'list' happens when a mutable list, instead of an immutable tuple, is used as a hash argument.
Read more >Unhashable Type Python Error Explained: How To Fix It
The message “TypeError: unhashable type” appears in a Python program when you try to use a data type that is not hashable in...
Read more >TypeError: unhashable type: 'dict' - Discussions on Python.org
Hello, Here is my error: TypeError: unhashable type: 'dict' Here is the source that is used to handle such an output error: #...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @chrsdrdt, but this ticket is specific for that Dask Client. The correct place would probably be #155. Please post it there, along with whether your setup might be reusing log handlers…
I do habe the same problem, running on version
2.4.1
. If I run the code again, it works fine for the failed setting. I’m running my code several times, but it seems that it fails randomly