You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That failed like this, because the package uses packaging unconditionally.
ModuleNotFoundError: No module named 'packaging'
full traceback (click me)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/__init__.py", line 27, in <module>
from cuml.internals.base import Base, UniversalBase
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/__init__.py", line 17, in <module>
from cuml.internals.available_devices import is_cuda_available
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/available_devices.py", line 16, in <module>
from cuml.internals.device_support import GPU_ENABLED
File "device_support.pyx", line 18, in init cuml.internals.device_support
ModuleNotFoundError: No module named 'packaging'
That fails again, this time because of an import of cupy.
...
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/safe_imports.py", line 86, in __getattr__
raise UnavailableError(cls._msg)
cuml.internals.safe_imports.UnavailableError: cupy is not installed in non GPU-enabled installations
full traceback (click me)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/__init__.py", line 116, in <module>
from cuml.linear_model.linear_regression import LinearRegression
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/linear_model/__init__.py", line 21, in <module>
from cuml.linear_model.logistic_regression import LogisticRegression
File "logistic_regression.pyx", line 27, in init cuml.linear_model.logistic_regression
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/preprocessing/__init__.py", line 16, in <module>
from cuml.model_selection import train_test_split
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/model_selection/__init__.py", line 17, in <module>
from cuml.model_selection._split import train_test_split
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/model_selection/_split.py", line 41, in <module>
indices: cp.ndarray,
^^^^^^^^^^
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/safe_imports.py", line 86, in __getattr__
raise UnavailableError(cls._msg)
cuml.internals.safe_imports.UnavailableError: cupy is not installed in non GPU-enabled installations
So tried installing that and importing again.
conda install --yes cupy
python -c "import cuml"
That fails again, this time because of an import of cudf
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/safe_imports.py", line 86, in __getattr__
raise UnavailableError(cls._msg)
cuml.internals.safe_imports.UnavailableError: cudf is not installed in non GPU-enabled installations
full traceback (click me)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/__init__.py", line 116, in <module>
from cuml.linear_model.linear_regression import LinearRegression
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/linear_model/__init__.py", line 21, in <module>
from cuml.linear_model.logistic_regression import LogisticRegression
File "logistic_regression.pyx", line 27, in init cuml.linear_model.logistic_regression
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/preprocessing/__init__.py", line 17, in <module>
from cuml.preprocessing.LabelEncoder import LabelEncoder
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/preprocessing/LabelEncoder.py", line 56, in <module>
class LabelEncoder(Base):
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/preprocessing/LabelEncoder.py", line 212, in LabelEncoder
def transform(self, y) -> cudf.Series:
^^^^^^^^^^^
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cuml/internals/safe_imports.py", line 86, in __getattr__
raise UnavailableError(cls._msg)
cuml.internals.safe_imports.UnavailableError: cudf is not installed in non GPU-enabled installations
numba.cuda.cudadrv.error.CudaSupportError: Error at driver init:
...
CUDA driver library cannot be found.
...
/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cudf/utils/gpu_utils.py:62: UserWarning: Failed to dlopen libcuda.so.1
full traceback (click me)
/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cudf/utils/_ptxcompiler.py:64: UserWarning: Error getting driver and runtime versions:
stdout:
stderr:
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/opt/conda/envs/cuml-test/lib/python3.11/site-packages/numba_cuda/numba/cuda/cudadrv/driver.py", line 295, in __getattr__
raise CudaSupportError("Error at driver init: \n%s:" %
numba.cuda.cudadrv.error.CudaSupportError: Error at driver init:
CUDA driver library cannot be found.
If you are sure that a CUDA driver is installed,
try setting environment variable NUMBA_CUDA_DRIVER
with the file path of the CUDA driver shared library.
:
Not patching Numba
warnings.warn(msg, UserWarning)
/opt/conda/envs/cuml-test/lib/python3.11/site-packages/cudf/utils/gpu_utils.py:62: UserWarning: Failed to dlopen libcuda.so.1
warnings.warn(str(e)
Expected behavior
Expected to be able to use cuml-cpu in an environment
Environment details (please complete the following information):
Describe the bug
Working on #6400, I encountered multiple errors when trying to import
cuml
installed via thecuml-cpu
conda package in an environment without a GPU.Documenting those cases here.
Steps/Code to reproduce bug
Ran the following on an M2 (arm64) macbook pro:
Environment creation succeeded.
details (click me)
Output of
conda info
Output of
conda env export --name cuml-test
Tried to import like this:
python -c "import cuml"
That failed like this, because the package uses
packaging
unconditionally.full traceback (click me)
So tried installing that and importing again.
conda install --yes packaging python -c "import cuml"
That fails again, this time because of an import of
cupy
.full traceback (click me)
So tried installing that and importing again.
conda install --yes cupy python -c "import cuml"
That fails again, this time because of an import of
cudf
full traceback (click me)
Tried installing that and importing again.
That failed like this:
full traceback (click me)
Expected behavior
Expected to be able to use
cuml-cpu
in an environmentEnvironment details (please complete the following information):
See "Steps/Code to reproduce bug" section.
Additional context
This report might be related to these others:
From their contents, I'm not sure.
The text was updated successfully, but these errors were encountered: