On Windows, you probably need to manually add PATH entries to the main bin paths where the main DLLs live. This was fixed in VTK 9.0 with Python 3.9+ (through APIs that are not available before then, namely os.add_dll_directory).
Thanks for the quick response! regrettably it looks like Mayavi requires python 3.7, so I am stuck with VTK 8.2. I have added a PATH entry and a PYTHONPATH entry to that directory (C:\ProgramData\Miniconda3\envs\ssms_gias\Library\bin), and the error still persists.
Is there another environment variable that I should be using?
The dll that seems to not be found is tbb.dll, which as far as I can tell is Intel’s thread builder and should be non essential. All of the following were successfully checked at a file level (they went through the operations of CreateFile, QueryBasicInformationFile, CloseFile, CreateFileMapping, and Load Image successfully.
I have attached events that python.exe reported, if you are willing to take a closer look, although, it appeared that most of it was successful.
There were some calls to files that were never found, in particular:
Hi Ben, thanks for your replies so far. I have tbb.dll from other applications, and have copied it into a source where it was found by the project. I am now able to get further, but now when importing vtkIOParallelPython I get the following error:
ImportError: DLL load failed: The specified procedure could not be found.
ProcMon shows no unresolved dependencies found, so I speculate that I have a wrong copy of tbb.dll. Would there be any place I can search to find the right version? Alternately, do you have any other thoughts?