Error when launching after install
File "E:\AI\Flux\FLUX-Prompt-Generator\app.py", line 10, in
import torch
File "E:\AI\Flux\FLUX-Prompt-Generator\env\lib\site-packages\torch_init_.py", line 148, in
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "E:\AI\Flux\FLUX-Prompt-Generator\env\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
ran into exact same issue.
I used perplexity to figure the issue missing windows dll. (ibomp140.x86_64.dll)
Install Required Libraries
libomp140.x86_64.dll: This is another dependency that might be missing. Installing Visual Studio Community Edition can add this library to your system, but you can also install it separately.
Ensure that libomp140.x86_64.dll is in your system's PATH. If not, you can manually add it by copying the DLL to a directory already in the PATH, such as C:\Windows\System32.
It also said downgrading torch might help
I googled and found the dll it available on dllme, running in sandbox first. Might have to install visualstudio.
that seems to be version mismatch between the wandb library and the protobuf library. Downgrading protobuf might help this was what I found to try.
pip install wandb==0.16.6
pip install protobuf==3.20.1