Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running dask-cudf test showing ModuleNotFoundError: No module named 'cudf.bindings' #5651

Closed
lk1983823 opened this issue Jul 7, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@lk1983823
Copy link

I have successfully installed upgraded dask-cudf following "https://github.com/rapidsai/dask-cudf". However, when I try to test it using py.test dask_cudf, it shows:

_______________ ERROR collecting dask_cudf/io/tests/test_csv.py ________________
ImportError while importing test module '/media/lksgcc/new_disk/lk_git/dask-cudf/dask_cudf/io/tests/test_csv.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
dask_cudf/__init__.py:1: in <module>
    from .core import (
dask_cudf/core.py:24: in <module>
    import cudf.bindings.reduce as cpp_reduce
E   ModuleNotFoundError: No module named 'cudf.bindings'

Anyone can help? Thanks

@lk1983823 lk1983823 added Needs Triage Need team to review and classify bug Something isn't working labels Jul 7, 2020
@github-actions github-actions bot added this to Needs prioritizing in Bug Squashing Jul 7, 2020
@lk1983823
Copy link
Author

After I build another environment and install it again from source. The testing error shows:

ERROR collecting dask_cudf/tests/test_sort.py _______________________________________________________________________________
/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/lib/python3.6/site-packages/py/_path/local.py:662: in pyimport
    __import__(modname)
dask_cudf/__init__.py:1: in <module>
    from .core import (
dask_cudf/core.py:8: in <module>
    import dask.dataframe as dd
/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/lib/python3.6/site-packages/dask/dataframe/__init__.py:3: in <module>
    from .core import (DataFrame, Series, Index, _Frame, map_partitions,
/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/lib/python3.6/site-packages/dask/dataframe/core.py:40: in <module>
    pd.core.computation.expressions.set_use_numexpr(False)
E   AttributeError: module 'pandas.core.computation' has no attribute 'expressions'

Even when I pip install --upgrade dask to 2.20.0, the error still exists.
My cuda version is 10.1 and pandas 0.25.3

@galipremsagar
Copy link
Contributor

Looks like you shouldn't be getting this error on dask 2.20.0. pandas-dev/pandas#18355

Can you try running this and share what version it shows:

import dask
dask.__version__

@galipremsagar
Copy link
Contributor

From the stack-trace you have posted, the issue is already fixed in dask 2.20.0.

https://github.com/dask/dask/blob/2.20.0/dask/dataframe/core.py#L79

Maybe you are having multiple versions of dask in your lib directory - A manual delete of all those versions of dask or a clean create & install of a new environment should fix this issue. I have verified this issue doesn't exist in dask-2.20.0(installing both from source and conda).

@kkraus14
Copy link
Collaborator

kkraus14 commented Aug 5, 2020

Fixed as of dask 2.20.0

@kkraus14 kkraus14 closed this as completed Aug 5, 2020
Bug Squashing automation moved this from Needs prioritizing to Closed Aug 5, 2020
@bdice bdice removed the Needs Triage Need team to review and classify label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

4 participants