Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed. #16

Closed
Anaziety opened this issue Aug 20, 2024 · 6 comments

Comments

@Anaziety
Copy link

My PDF is not uploading. It's giving following error:

ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

@ayus786
Copy link

ayus786 commented Sep 1, 2024

I'm facing the same issue.
Run "winget install --id Microsoft.VCRedist.2015+.x64 --source winget" on cmd/shell,
then download dll file "libomp140.x86_64.dll" and place its path on system32 folder
It worked for me
Ref - Gourieff/comfyui-reactor-node#384 (comment)

@ToniVacaESAT
Copy link

I have the same problem with a portable installation. Everything is fine, in fact, I have another installation (which I don't dare to touch) that works perfectly. In clean installations (I've already done 10 or 12) I have already updated ComfyUI, the Reactor install.bat and the already hackneyed: "python_embeded\python.exe -m pip install --upgrade --force-reinstall insightface-0.7.3-cp311-cp311-win_amd64.whl" countless times and it doesn't fix it. I have asked ChatGPT who has suggested countless reinstallations that don't solve the problem. I hope the version that still works for me doesn't break. It's very frustrating.

@jalejandro0211
Copy link

Downgrade pip install onnx==1.16.1

My PDF is not uploading. It's giving following error:

ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

@juanandres-montero
Copy link

Downgrade pip install onnx==1.16.1

My PDF is not uploading. It's giving following error:
ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

I had the same issue and this worked for me! Thank you!!

@ToniVacaESAT
Copy link

Cambiar a versión inferior pip install onnx==1.16.1

Mi PDF no se carga. Me arroja el siguiente error:
ImportError: Error en la carga de DLL durante la importación onnx_cpp2py_export: Falló una rutina de inicialización de la biblioteca de vínculo dinámico (DLL).

Oh my God! Thank you so much! It worked!

tonykipkemboi added a commit that referenced this issue Sep 15, 2024
Add "onnx==1.16.1" to requirements to resolve issue #16.
@tonykipkemboi
Copy link
Owner

Downgrade pip install onnx==1.16.1

My PDF is not uploading. It's giving following error:

ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

Thank you @jalejandro0211 for the solution. I haven't had much time to review the issues lately. I've updated the requirements file to include the correct version of onnx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants