Error when launching after install

#1
by NateMac00 - opened

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.

@creeduk thanks, that error dissapeared. But now I recieve:

File "C:\Programs\Python\Python310\lib\site-packages\wandb\sdk\lib\mailbox.py", line 103, in _MailboxSlot
_result: Optional[pb.Result]
AttributeError: module 'wandb.proto.wandb_internal_pb2' has no attribute 'Result'

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

It works, thanks @creeduk

Sign up or log in to comment