dream-textures
dream-textures copied to clipboard
"failed to load pyTorch"
ImportError('Failed to load PyTorch C extensions:\n It appears that PyTorch has loaded the torch/_C
folder\n of the PyTorch repository rather than the C extensions which\n are expected in the torch._C
namespace. This can occur when\n using the install
workflow. e.g.\n $ python setup.py install && python -c "import torch"\n\n This error can generally be solved using the develop
workflow\n $ python setup.py develop && python -c "import torch" # This should succeed\n or by running Python from a different directory.')
i have blender installed via steam on a separate drive so i have a suspiscion its related to that.
I'm having the same issue with v0.6, and I have Blender on my usual drive. This error always occurs right when I click the "Generate" button in the Image Editor.
I'm having the same issue with v0.6, and I have Blender on my usual drive. This error always occurs right when I click the "Generate" button in the Image Editor.
I have exactly the same Problem and i tryed it on 3 different Computers, 2 Windows and 1 Mac.
But how can i fix it?
i am having this problem as well
Which addon file did you install
Please also try with the MSI from blender.org, as I have not verified Steam installs to work.
I had the same error. Updating from Blender Version 3.0 to 3.3 fixed it for me
I tryed with Blender 3.2 and I get a simmular Error, i will try Blender version 3.3 and keep you updated.
This is my Error on Blender 3.2.0 on my MacBook Pro 2017 with a Intel Graphics Card.
OSError("dlopen(/Users/lukasmadlener/Library/Application Support/Blender/3.2/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib, 0x000A): tried: '/Users/lukasmadlener/Library/Application Support/Blender/3.2/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h')), '/usr/lib/libtorch_global_deps.dylib' (no such file)")
Same error for me:
ImportError('Failed to load PyTorch C extensions:\n It appears that PyTorch has loaded the torch/_C
folder\n of the PyTorch repository rather than the C extensions which\n are expected in the torch._C
namespace. This can occur when\n using the install
workflow. e.g.\n $ python setup.py install && python -c "import torch"\n\n This error can generally be solved using the develop
workflow\n $ python setup.py develop && python -c "import torch" # This should succeed\n or by running Python from a different directory.')
I am running Blender 3.3 on Windows 11, with the latest file version, downloaded just today. upgraded to Blender 3.3.1, no change, same error.
Had the exact same error, for me the issue was that i had downloaded the arm version (which i am pretty sure is not for windows). Downloaded the cuda version, everything worked smoothly.
I tryed with Blender 3.2 and I get a simmular Error, i will try Blender version 3.3 and keep you updated.
This is my Error on Blender 3.2.0 on my MacBook Pro 2017 with a Intel Graphics Card.
OSError("dlopen(/Users/lukasmadlener/Library/Application Support/Blender/3.2/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib, 0x000A): tried: '/Users/lukasmadlener/Library/Application Support/Blender/3.2/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h')), '/usr/lib/libtorch_global_deps.dylib' (no such file)")
OSError("dlopen(/Users/admin/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib, 0x000A): tried: '/Users/admin/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h')), '/usr/local/lib/libtorch_global_deps.dylib' (no such file), '/usr/lib/libtorch_global_deps.dylib' (no such file)")
The same error. I try running Blender 3.3 and do not fix it.How about u.
Had the exact same error, for me the issue was that i had downloaded the arm version (which i am pretty sure is not for windows). Downloaded the cuda version, everything worked smoothly.
For those who, like me, did not quite understand this comment initially, the plugin comes in an "ARM 64" version, and a "WIN32 CUDA" version. I, too, had downloaded and installed the "ARM 64" version, as I just saw the "64" and thought that meant "64 Bit," rather than a different architecture system. (Windows has run on ARM version in the past, and might still, but it was mainly for an ARM model of their surface tablets.) Reading the installation instructions again, which I completely failed to do so before, clearly says the ARM64 is for Mac, not windows.
So I downloaded the WIN32 CUDA version, Installed, set it up and gave it a run.
It does run... very slowly.
I ran the "brick" prompt you see in all the demos, at 512*512, with 25 steps. It's currently "Downloading CLIP (17%)" It's adding 1% on a fairly fast machine (AMD 32 cores, NVIDIA 2080RTX) and is adding 1% of CLIP every 15-20 seconds. Am I still doing something wrong? Is it going to do this every prompt I run?
EDIT: Once the clip downloaded, all other prompts have gone smoothly! Problem solved for me!
I have the same error with WIN32 CUDA Version on Blender 3.0 but solved by update blender to 3.3.
Still having this issue, anyone else found a solution
This error occurs when you try to run the macOS version on a Windows system. Please make sure to follow the Windows Installation instructions.
This error occurs when you try to run the macOS version on a Windows system. Please make sure to follow the Windows Installation instructions.
Yeah, I noticed I skipped the files when you have the addpn installed
I didn't downloaded / Imported the files so that's why I have a this problem.
OSError("dlopen(/Users/admin/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib, 0x000A): tried: '/Users/admin/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/.python_dependencies/torch/lib/libtorch_global_deps.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h')), '/usr/local/lib/libtorch_global_deps.dylib' (no such file), '/usr/lib/libtorch_global_deps.dylib' (no such file)")
The same error. I try running Blender 3.3 and do not fix it.How about u.
2.
the new error,after installing it warned "no model named torch"
You can try to open the python console directly in blender (shift+f4). Then try the following commands.
import subprocess
import sys
import os
blender_python_path = os.path.join(sys.prefix, 'bin', 'python.exe')
subprocess.call([python_exe, '-m', 'ensurepip'])
subprocess.call([python_exe, '-m', 'pip', 'install', '--upgrade', 'pip'])
This procedure only needs to be done once to update pip.
Then, use:
subprocess.call([python_exe, '-m', 'pip', 'install', 'torch'])
After that, try to run the generation again. It is likely that you will need to install about 10 more packages. For the following errors, you will find their names either in the error message in blender, or open the blender console window (window->toggle system console)
If you want to repeat this after closing blender, just import subprocess, sys, os and then use the install of the desired module.
blender_python_path = os.path.join(sys.prefix, 'bin', 'python.exe')
subprocess.call([blender_python_path, '-m', 'pip', 'install', 'MODULE_NAME'])
Also, if you need to change the version of any module, use module_name==x.x.x instead of module_name.
subprocess.call([blender_python_path, '-m', 'pip', 'install', 'MODULE_NAME==1.12.0'])
Upd. I just installed this on my second pc. Getting the same error, I repeated all the steps and the error disappeared. Below is a list of all installed packages that you need (most likely).
- opencv_python
- psutil
- torch
- torchvision
- tokenizers==0.12.1
- scikit-learn
- scikit-image
- regex
- numpy --upgrade // The version that comes with the latest lts version of blender is too old.
- transformers
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
you can fix this by re-installing torch
pip uninstall torch pip install torch
Cheers