Skip to content

Python API import error on Windows and Python 3.8+ with Intel TBB #300

Open
@utilForever

Description

@utilForever

I encountered Python API import error while updating CubbyFlow.

import pyjet
ImportError: DLL load failed while importing pyjet:
The specified module could not be found. 

At first, I thought it was my problem, but after a few days of investigation, I found that there is a new Windows safety feature that changes how DLLs are loaded in Python 3.8.
To resolve this issue, I needed to tell Python how to find the library again like this:

import os
os.add_dll_directory(r'C:/Intel/tbb/bin/intel64/vc14') << (The path that Intel TBB is located)
import pyjet

I think we should add this situation and solution to README.md or INSTALL.md. What do you think?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions