dask-cuda: SyntaxError when importing LocalCUDACluster from dask_cuda

System: Red Hat Enterprise Linux Server release 7.7 (Maipo) CUDA: 10.2 dask-cuda: 0.19.0 python: 3.7.10

I’m getting a SyntaxError whenever I try to import LocalCUDACluster from dask_cuda:

Traceback (most recent call last):
  File "lcs_dask.py", line 2, in <module>
    from dask_cuda import LocalCUDACluster
  File "/path/to/anaconda3/envs/dask-cudf/lib/python3.7/site-packages/dask_cuda/__init__.py", line 5, in <module>
    from .cuda_worker import CUDAWorker
  File "/path/to/anaconda3/envs/dask-cudf/lib/python3.7/site-packages/dask_cuda/cuda_worker.py", line 21, in <module>
    from .device_host_file import DeviceHostFile
  File "/path/to/anaconda3/envs/dask-cudf/lib/python3.7/site-packages/dask_cuda/device_host_file.py", line 23, in <module>
    from .utils import nvtx_annotate
  File "/path/to/anaconda3/envs/dask-cudf/lib/python3.7/site-packages/dask_cuda/utils.py", line 9, in <module>
    import pynvml
  File "/cm/local/apps/cuda/libs/current/pynvml/pynvml.py", line 1671
    print c_count.value
                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(c_count.value)?

Any thoughts about what I might be doing wrong?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

Awesome! That solved everything! I’m now able to import it successfully, although I’m getting another error when my script continues to run. I will open up a separate issue for that.