Thank you for creating this plugin. I took me a while to get the automatic download to work. The magic bullet was to setup the _additional_modules directory as a virtual environment. I saw there already was some files in there, but perhaps some were missing, as I couldn’t get it to work until I used virtualenv to set it up.
Now that it installs correctly, the Predict Rig button works, but when I click it, I get the following error:
Error: Python: Traceback (most recent call last):
File “C:\Users\XXX\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\brignet-main\brignet.py”, line 220, in invoke
from . import rignetconnect
File “C:\Users\XXX\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\brignet-main\rignetconnect.py”, line 6, in
import torch
File “C:\Users\XXX\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\brignet-main_additional_modules\Lib\site-packages\torch_init_.py”, line 213, in
raise ImportError(textwrap.dedent(‘’’
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded thetorch/_C
folder
of the PyTorch repository rather than the C extensions which
are expected in thetorch._C
namespace. This can occur when
using theinstall
workflow. e.g.
$ python setup.py install && python -c “import torch”This error can generally be solved using the `develop` workflow $ python setup.py develop && python -c "import torch" # This should succeed or by running Python from a different directory.
location: :-1
However, I don’t really have the option to do as I just used the install functionality from the plugin. Any advice?