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.

Unexpected kwargs error

See original GitHub issue

It appears that https://github.com/dask/distributed/pull/3117 introduced a check for whether certain kwargs were used when initializing a Client.

Previously, this sort of pattern was allowed:

from distributed import Client

c = Client(processes=True, silence_logs=True)

with the expectation that these kwargs were passed down to the LocalCluster object which is created when a scheduler address is not provided. Now this raises:

ValueError: Unexpected keyword arguments: ['processes', 'silence_logs']
  • is this an unsupported use of the API with the release of 2.6.0?
  • or should Dask only be raising these kwarg errors whenever a scheduler_address is actually passed?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
SOUMYASHUKLAcommented, Feb 18, 2022

@bryanwweber Thank you. This issue was reported already at discourse discussion

1reaction
cicdwcommented, Oct 16, 2019

That works for me! I had forgotten that these clients were created with this utility which force-fed the kwargs when I originally opened the issue - I’ve already fixed it on my side 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting this unexpected keyword argument TypeError?
When passing kwargs into a function, it expects to find the exact variable name in the list. If instead your dictionary keys were...
Read more >
False positive on unexpected argument for **kwargs with ...
It seems that the * pseudo-argument in f1 triggers the problem. Seems to be related to PY-14449.
Read more >
How to debug task "got an unexpected keyword argument"
1.) The part of the error message "Task tasks.product_add" looks to me like Celery thinks your product_add function is actually a task. However,...
Read more >
Unexpected Keyword Argument in Python - Codeigo
The primary solution to the error is to pass the keyword arguments expected by the function/class. This can be achieved in two ways....
Read more >
Error: got unexpected keyword argument when deleting object ...
Error: got unexpected keyword argument when deleting object in admin interface ... in _curried return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + ...
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