pKrime / brignet

Automatic rigging using neural network from RigNet
GNU General Public License v3.0
407 stars 39 forks source link

When I click Predict RIG, I get an error. What's going on? #23

Open qfb594 opened 1 year ago

qfb594 commented 1 year ago

Python: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\brignet-main\brignet.py", line 220, in invoke from . import rignetconnect File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\brignet-main\rignetconnect.py", line 10, in from .RigNet.utils.rig_parser import Info ModuleNotFoundError: No module named 'brignet-main.RigNet.utils'

location: :-1

pKrime commented 1 year ago

Hi,

it would seem that Rignet is missing or not found. Does the folder

C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\brignet-main\RigNet

exist?

qfb594 commented 1 year ago

image All the required documents are here

pKrime commented 1 year ago

Hi, sorry for the delay, does the RigNet folder contain a utils subfolder? Does RigNet utils contain .py files? According to the error message, the add-on doesn't seem to find them

qfb594 commented 1 year ago

The Settings are normal, the required files are there, but the operation is not up.

QQ浏览器截图20221006105211 QQ浏览器截图20221006105154 QQ浏览器截图20221006105227

Abrahm1234 commented 11 months ago

I personal had to manually download everything in the RigNet folder to fix this issue. For some reason it does not download it using git clone? Also Now the rig_parser.py file is present in the RigNet/utils directory. One possible reason for the error could be that the Python environment used by Blender does not have the brignet add-on directory added to its sys.path. You can try adding the following line at the beginning of the brignet.py file to see if it resolves the issue:

import sys sys.path.append('/User/Administrator/Path/To/Dir') Copy This will add the brignet add-on directory to the Python path, allowing Blender to find and import the RigNet module.