Onnxruntime dependency issue

I want to make a news recommendation agent using crewai. I made a custom tool that gives agent access to a vector DB FAISS. But when I run the agent, it throws onnxruntime not installed error. Even after installing onnxruntime, it keeps throwing same error saying onnxruntime not installed. I have tried disabling the default memory of the agent so that it will rely on the vector Db tool but the error still persists. what should I do? Chatgpt is of no help.

This isn’t the same problem reported and resolved in this thread, is it?

No i dont think its the same. I even installed the latest version of onnxruntime which is compatible with my python version(3.12.4) and OS version (MS Windows 11 version-10.0.22631). Now I am getting an error like this: ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
I have cross checked the file location and path of my onnxruntime in site packages. The path seems correct but for some reason I am still facing the error and unable to run my agent.

The issue was resolved after I downgraded my Python version from 3.12 to 3.10

1 Like