Search code examples
pythonwindowspycuda

import pycuda.driver returns ImportError: No module named 'Error'


I am on Windows 8.1, and have installed Cuda 5.5 and then installed PyCuda via building it from source. These steps seem to have worked correctly, however, when I do "import pycuda.driver" it complains that Error doesn't exist. I know that via this the Error class is supposed to be defined in pycuda.driver, as many other errors inherit from this. Yet it's not there.

The only place I could find an error class was in cuda.hpp. So is there simply some flag I am missing? Or some include path that I need to add?


Solution

  • I figured this out, it was because, when compiing, it threw an error then continued to finish the installation and installed it. And then when I tried again to build and install it just said it was successful. So if you are having the same problem, delete the build folder that is in the same directory as setup.py, and then you can build again and look for errors.