-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ModuleNotFoundError: No module named 'pyarrow._cuda' when running rapids-colab.ipynb [BUG] #348
Comments
I am also getting exactly the same error in Colab using the same setup. |
Colab made some breaking changes a few weeks ago that we are still figuring out.. We weren't the only packages affected by it. Today, as Colab doesn't support the latest RAPIDS stable, we recommend transitioning to SageMaker Studio Lab. A notice will go out soon, along with a blog, but if you'd like, please try out the capability here: https://github.com/rapidsai-community/rapids-smsl You will need a SageMaker Studip Lab account to begin. All that information is in the readme. Hope this helps. |
Indeed this issue continues with the "new" issue in #10187, The link that was provided has a fix for this bug that resolves the issue for me. I run it immediately after the cell that starts with Posted here. import sys
# clear Pandas and PyArrow from the module cache
# and force them to be reloaded on import.
# WARNING: I don't know what else this might break.
# Ideally, none of this should be in the module cache
# in the first place.
mods = [mod for mod in sys.modules if mod.startswith(("pandas", "pyarrow"))]
for mod in mods:
del sys.modules[mod] Note that you'll need to make sure you start with a fresh runtime. Thus:
Originally posted by @shwina in rapidsai/cudf#10187 (comment) |
updating the thread, i've been working on nd off on a new Colab Script. RAPIDS installs, but
importing cudf or anything RAPIDS yields error with cuda.cudart,
It's not actually there, even after copying the libraries, even though it has the same library version as the docker containers, which does have cudart.
|
Describe the bug
When running the rapids-colab.ipynb as is (found here: https://colab.research.google.com/drive/1rY7Ln6rEE1pOlfSHCYOVaqt8OvDO35J0#forceEdit=true&offline=true&sandboxMode=true), I get: ModuleNotFoundError: No module named 'pyarrow._cuda'. The code error arises when doing: import cudf and import cuml (last cells in the notebook)
Steps/Code to reproduce bug
I am running the "rapids-colab.ipynb" notebook as is in Colab
Expected behavior
Successfully importing cuml and cudf packages.
Environment details (please complete the following information):
Additional context
Error log
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 import cudf
2 import io, requests
3
4 # download CSV file from GitHub
5 url="https://github.com/plotly/datasets/raw/master/tips.csv"
2 frames
/usr/local/lib/python3.7/site-packages/cudf/_lib/init.py in ()
2 import numpy as np
3
----> 4 from . import (
5 avro,
6 binaryop,
cudf/_lib/gpuarrow.pyx in init cudf._lib.gpuarrow()
ModuleNotFoundError: No module named 'pyarrow._cuda'
The text was updated successfully, but these errors were encountered: