krita-ai-diffusion icon indicating copy to clipboard operation
krita-ai-diffusion copied to clipboard

fbgemm.dll - The specified module could not be found

Open Hii-ops opened this issue 1 year ago • 21 comments

I have problem with launch local managed server on AI plugin.

INFO OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\opako\AppData\Roaming\krita\pykrita\ComfyUI\python\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. ERROR

Is there any solution?

Thanx

Hii-ops avatar Jul 23 '24 19:07 Hii-ops

I have the same issue

hermessalomon avatar Jul 23 '24 23:07 hermessalomon

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

hermessalomon avatar Jul 23 '24 23:07 hermessalomon

Thanks bro manually adding dll fixed it. Its working now

Hii-ops avatar Jul 24 '24 07:07 Hii-ops

Thank a lot. I solved the same problem here with your tip.

ChelOis avatar Jul 24 '24 20:07 ChelOis

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

thanx this works for me, windows 11 just drop .dll on /windows/system32 folder

bitjager avatar Jul 25 '24 01:07 bitjager

Same issue, and I can't download that DLL, for some reason i can't access to DLLMe in my country, and i don't find it anywhere else

meikodunois avatar Jul 25 '24 12:07 meikodunois

Same issue, and I can't download that DLL, for some reason i can't access to DLLMe in my country, and i don't find it anywhere else

Try with VPN joining with other country

Hii-ops avatar Jul 25 '24 13:07 Hii-ops

SetupVPN extension for your browser.

ChelOis avatar Jul 25 '24 13:07 ChelOis

For the latest release v1.21.0 I pinned the pytorch version to 2.3.1 That means people who (re-)install with that version shouldn't run into this problem.

Maybe it will be fixed on pytorch side in the future by including the DLL, but I'm not sure and it'll probably take some time: https://github.com/pytorch/pytorch/issues/131662

Acly avatar Jul 25 '24 14:07 Acly

Same issue, and I can't download that DLL, for some reason i can't access to DLLMe in my country, and i don't find it anywhere else

If Drive works on your country then here have the file I uploaded to Drive https://drive.google.com/file/d/1R_ZQjL0r1eBzDZIuFUykDqy5P2L4-92W/view

Evionail avatar Jul 26 '24 16:07 Evionail

I was solved that error by installing "Build Tools for Visual Studio 2022" but you can try too "Build Tools for Visual Studio 2019"

flaviohr avatar Jul 27 '24 11:07 flaviohr

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

thanks g its working now

zenkovski avatar Jul 27 '24 17:07 zenkovski

I have problem with launch local managed server on AI plugin.

INFO OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\opako\AppData\Roaming\krita\pykrita\ComfyUI\python\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. ERROR

Is there any solution?

Thanx

Mine still not working image image

pistqak avatar Jul 27 '24 18:07 pistqak

@pistqak download the dependencies tool to find wich one is missing to you, if you already have the libomp140 it should be a different dependencie and it will give you wich one is missing

here is the link for the tool

https://github.com/lucasg/Dependencies

hermessalomon avatar Jul 27 '24 19:07 hermessalomon

@pistqak download the dependencies tool to find wich one is missing to you, if you already have the libomp140 it should be a different dependencie and it will give you wich one is missing

here is the link for the tool

https://github.com/lucasg/Dependencies

thx

pistqak avatar Jul 27 '24 19:07 pistqak

THIS WORKED FOR ME:

If you encounter an error related to missing DLL files (specifically fbgemm.dll) on Windows 11, follow these steps to resolve the issue:

  1. Download and run the Visual Studio Installer.
  2. Select "Modify" if you have Visual Studio installed, or proceed with a new installation.
  3. Go to the "Individual components" tab.
  4. Search for "C++ 2022" in the search box.
  5. Check the box next to "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)".
  6. Click "Modify" or "Install" to proceed with the installation.
  7. Restart your computer after the installation is complete.
  8. This installs the necessary C++ build tools and runtime libraries that PyTorch depends on.

james2342342514 avatar Jul 27 '24 20:07 james2342342514

THIS WORKED FOR ME:

If you encounter an error related to missing DLL files (specifically fbgemm.dll) on Windows 11, follow these steps to resolve the issue:

1. Download and run the Visual Studio Installer.

2. Select "Modify" if you have Visual Studio installed, or proceed with a new installation.

3. Go to the "Individual components" tab.

4. Search for "C++ 2022" in the search box.

5. Check the box next to "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)".

6. Click "Modify" or "Install" to proceed with the installation.

7. Restart your computer after the installation is complete.

8. This installs the necessary C++ build tools and runtime libraries that PyTorch depends on.

First, I solved the problem with the tip provided by hermessalomon, I mean, copying libomp140.x86_64.dll (signed by Autodesk) to Windows\System32 folder. I can confirm adding "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)" to my installation of Visual Studio also injects that dll (signed by Microsoft). Thank to both of you.

ChelOis avatar Jul 28 '24 13:07 ChelOis

THIS WORKED FOR ME:

If you encounter an error related to missing DLL files (specifically fbgemm.dll) on Windows 11, follow these steps to resolve the issue:

  1. Download and run the Visual Studio Installer.
  2. Select "Modify" if you have Visual Studio installed, or proceed with a new installation.
  3. Go to the "Individual components" tab.
  4. Search for "C++ 2022" in the search box.
  5. Check the box next to "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)".
  6. Click "Modify" or "Install" to proceed with the installation.
  7. Restart your computer after the installation is complete.
  8. This installs the necessary C++ build tools and runtime libraries that PyTorch depends on.

Thanks for the fix! Short version:

winget install --id Microsoft.VisualStudio.2022.BuildTools --override "--passive --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"

npbenjohnson avatar Jul 28 '24 19:07 npbenjohnson

THIS WORKED FOR ME:

If you encounter an error related to missing DLL files (specifically fbgemm.dll) on Windows 11, follow these steps to resolve the issue:

  1. Download and run the Visual Studio Installer.
  2. Select "Modify" if you have Visual Studio installed, or proceed with a new installation.
  3. Go to the "Individual components" tab.
  4. Search for "C++ 2022" in the search box.
  5. Check the box next to "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)".
  6. Click "Modify" or "Install" to proceed with the installation.
  7. Restart your computer after the installation is complete.
  8. This installs the necessary C++ build tools and runtime libraries that PyTorch depends on.

Thanks for the fix! Short version:

winget install --id Microsoft.VisualStudio.2022.BuildTools --override "--passive --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"

Thank you so freaking much for not making me use some random dll because i'm pretty sure that's how ya hack ya self. Xo

AgMagGag avatar Jul 29 '24 15:07 AgMagGag

Thank you so freaking much for not making me use some random dll because i'm pretty sure that's how ya hack ya self. Xo

The DLL suggested by hermessalomon is digitally signed by Autodesk, so, no risk.

ChelOis avatar Jul 29 '24 16:07 ChelOis

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder. https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

Tqsm @hermessalomon this works

AadhithSridharan avatar Aug 14 '24 06:08 AadhithSridharan

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

This was a life saver. I was looking for a solution for such a long time, but this worked like a charm

berwinsingh avatar Aug 24 '24 15:08 berwinsingh

Hey there, I have the fbgemm.dll but it seems corrupted, should I delete it and then reinstall it

AARADHYAPATEL avatar Aug 25 '24 10:08 AARADHYAPATEL

As it is still giving the issue that fbgemm.dll or one of its dependencies are corrupted

AARADHYAPATEL avatar Aug 25 '24 10:08 AARADHYAPATEL

Did you try the solutions given by zenkovski and by james2342342514 ?

ChelOis avatar Aug 25 '24 13:08 ChelOis

For the latest release v1.21.0 I pinned the pytorch version to 2.3.1 That means people who (re-)install with that version shouldn't run into this problem.

Maybe it will be fixed on pytorch side in the future by including the DLL, but I'm not sure and it'll probably take some time: pytorch/pytorch#131662

This one solved it for me (had PyTorch 2.4.0, Windows 10), didn't even need to fiddle with the C++ stuff. Much appreciated!

Timmate avatar Aug 25 '24 14:08 Timmate

I do not have space in my computer for zenkovski's option and I already have fbgemm.dll, so neither option works

AARADHYAPATEL avatar Aug 26 '24 13:08 AARADHYAPATEL

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

Solved my issue my adding .dll file in windows/system32 Thanks a lot

ahmadatarvo avatar Aug 27 '24 10:08 ahmadatarvo

J'ai trouvé la solution, vous avez 2 options, la plus simple est d'installer cette dll et de l'ajouter à votre dossier /windows/system32.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

si cela ne corrige pas l'erreur, vous devrez télécharger l'outil de dépendances pour trouver quel .dll est perdu et le télécharger simplement et il devrait être corrigé.

Merci mec pour le tifs

Kaizer1er avatar Aug 27 '24 14:08 Kaizer1er

I found the solution, you have 2 options, the most simple is to install this dll and adding it to your /windows/system32 folder.

https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download

if it doesnt fix the error you will have to download the dependencies tool to find wich .dll is lost and just download it and it should be fixed.

THANKS SO MUCHH!

Aron-Arboleda avatar Aug 30 '24 07:08 Aron-Arboleda