an "import cudf" leads to an error #780
-
I have a python file that I can run successfully up to completion.
I did not see any similar issue reported and as a new user of scalene, I am not sure on which side the error would be. Does someone have an idea? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This issue (which appears to be some interference of printing to stdout instead of stderr) went away for me after running it once as root (a.k.a., superuser). That said, I'll change these print statements to go to stderr. In any event: I first created a virtual environment and installed Scalene and cudf (getting its dependencies first). $ sudo apt install nvidia-cuda-toolkit
$ python3 -m venv test-cudf
$ source ../test-cudf/bin/activate
(test-cudf) $ python3 -m pip install scalene cudf Then I ran the code as root. $ sudo bash
# source ../test-cudf/bin/activate
(test-cudf) # python3 -m scalene --cpu --gpu testcudf.py It continues to run fine afterwards when not running as root. (test-cudf) $ python3 -m scalene --cpu --gpu testcudf.py |
Beta Was this translation helpful? Give feedback.
This issue (which appears to be some interference of printing to stdout instead of stderr) went away for me after running it once as root (a.k.a., superuser). That said, I'll change these print statements to go to stderr.
In any event: I first created a virtual environment and installed Scalene and cudf (getting its dependencies first).
$ sudo apt install nvidia-cuda-toolkit $ python3 -m venv test-cudf $ source ../test-cudf/bin/activate (test-cudf) $ python3 -m pip install scalene cudf
Then I ran the code as root.
It continues to run fine afterwards when not running as root.