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

[Bug]: Import Error: DLL load failed while importing onnxruntime #3760

Open
2 of 5 tasks
Razza555 opened this issue Nov 29, 2024 · 0 comments
Open
2 of 5 tasks

[Bug]: Import Error: DLL load failed while importing onnxruntime #3760

Razza555 opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working triage This needs an (initial) review

Comments

@Razza555
Copy link

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

I have installed Fooocus, upon running it, it wont load. It gives me an error as follows:
ImportError: DLL load failed while importing onnxruntime_pybind11_state: The specified module could not ne found.
i have tried installing onnxruntime manually, also installed the version it required.
Please see below full log:

Steps to reproduce the problem

  1. Install 2. Run program

What should have happened?

Program should start?

What browsers do you use to access Fooocus?

Google Chrome

Where are you running Fooocus?

Locally

What operating system are you using?

Windows 11

Console logs

C:\Fooocus_win64_2-5-0>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\\entry_with_update.py']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.5.5
[Cleanup] Attempting to delete content of temp dir C:\Users\raven\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Total VRAM 8192 MB, total RAM 16234 MB
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce RTX 2070 : native
VAE dtype: torch.float32
Traceback (most recent call last):
  File "C:\Fooocus_win64_2-5-0\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "C:\Fooocus_win64_2-5-0\Fooocus\launch.py", line 152, in <module>
    from webui import *
  File "C:\Fooocus_win64_2-5-0\Fooocus\webui.py", line 10, in <module>
    import modules.async_worker as worker
  File "C:\Fooocus_win64_2-5-0\Fooocus\modules\async_worker.py", line 3, in <module>
    from extras.inpaint_mask import generate_mask_from_image, SAMOptions
  File "C:\Fooocus_win64_2-5-0\Fooocus\extras\inpaint_mask.py", line 8, in <module>
    from rembg import remove, new_session
  File "C:\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\rembg\__init__.py", line 5, in <module>
    from .bg import remove
  File "C:\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\rembg\bg.py", line 6, in <module>
    import onnxruntime as ort
  File "C:\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\onnxruntime\__init__.py", line 57, in <module>
    raise import_capi_exception
  File "C:\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\onnxruntime\__init__.py", line 23, in <module>
    from onnxruntime.capi._pybind_state import ExecutionMode  # noqa: F401
  File "C:\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module>
    from .onnxruntime_pybind11_state import *  # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: The specified module could not be found.

C:\Fooocus_win64_2-5-0>pause
Press any key to continue . . .

Additional information

No response

@Razza555 Razza555 added bug Something isn't working triage This needs an (initial) review labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

1 participant