uci-rendering / psdr-cuda

Path-space differentiable renderer
BSD 3-Clause "New" or "Revised" License
155 stars 11 forks source link

Windows/python installation help #17

Closed ankarako closed 2 years ago

ankarako commented 2 years ago

Hello and thanks for sharing your work!

Regarding the Windows installation, should a DLL lib be exported when compiling the projects? Basically, I successfully compiled the library, however I cannot import the psdr_cuda module. The error I get is the following: ImportError: DLL load failed: The specified module could not be found.

I copied the .pyd module from the Release folder. I also tried to import the module through sys:

import sys
sys.path.append("Path/to/directory/of/pyd")
import psdr_cuda

and I receive the same error.

The only discrepancy of my environment is that I use python 3.7, could that be problematic?

ankarako commented 2 years ago

So, I actually managed to find what was going on. You just need to add some paths to your PATH environment variable. Don't know yet the specifics as I managed to import the module, by running interactive python through Visual Studio's Native cmd.