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.

`test_from_dict_backends` failure on gpuCI

See original GitHub issue

See https://github.com/dask/dask/pull/9675#pullrequestreview-1186408344

10:10:22 ________________________ test_from_dict_backends[cudf] _________________________
10:10:22 [gw2] linux -- Python 3.9.13 /opt/conda/envs/dask/bin/python3.9
10:10:22 
10:10:22 backend = 'cudf'
10:10:22 
10:10:22     @pytest.mark.gpu
10:10:22     @pytest.mark.parametrize("backend", ["pandas", "cudf"])
10:10:22     def test_from_dict_backends(backend):
10:10:22         _lib = pytest.importorskip(backend)
10:10:22         with config.set({"dataframe.backend": backend}):
10:10:22             data = {"a": [1, 2, 3, 4], "B": [10, 11, 12, 13]}
10:10:22             expected = _lib.DataFrame(data)
10:10:22     
10:10:22             # Check dd.from_dict API
10:10:22             got = dd.from_dict(data, npartitions=2)
10:10:22             assert_eq(expected, got)
10:10:22     
10:10:22             # Check from_dict classmethod
10:10:22 >           got_classmethod = got.from_dict(data, npartitions=2)
10:10:22 
10:10:22 dask/dataframe/io/tests/test_io.py:988: 
10:10:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
10:10:22 dask/dataframe/core.py:6054: in from_dict
10:10:22     return from_dict(
10:10:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
10:10:22 
10:10:22 args = ({'B': [10, 11, 12, 13], 'a': [1, 2, 3, 4]}, 2)
10:10:22 kwargs = {'columns': None, 'constructor': <class 'cudf.core.dataframe.DataFrame'>, 'dtype': None, 'orient': 'columns'}
10:10:22 
10:10:22     @wraps(fn)
10:10:22     def wrapper(*args, **kwargs):
10:10:22 >       return getattr(self, dispatch_name)(*args, **kwargs)
10:10:22 E       TypeError: from_dict() got an unexpected keyword argument 'constructor'
10:10:22 
10:10:22 dask/backends.py:122: TypeError

cc @rjzamora @galipremsagar @charlesbluca

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
rjzamoracommented, Nov 18, 2022

FWIW I’m not viewing this as a blocker for the dask / distributed release today as the patch is needed in dask-cudf

Yeah, totally agree that this is not a dask blocker. Thanks for confirming!

3reactions
galipremsagarcommented, Nov 18, 2022

I’m looking into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gpuCI Usage Docs - RAPIDS Docs
Our gpuCI is responsible for testing each PR and commit with GPUs and building conda packages for all RAPIDS projects. Intended audience. Community....
Read more >
rapidsai/gpuci-build-environment - GitHub
Common build environment used by gpuCI for building RAPIDS - GitHub - rapidsai/gpuci-build-environment: Common ... Failed to load latest commit information.
Read more >
gpuci's Profile - Docker Hub
gpuci. Community Organization. gpuCI. https://gpuci.io. Joined September 18, 2018. Repositories. Displaying 25 of 50 repositories.
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