DominikLingenover / DMNK-Tools

DMNK Shelf | Workflow oriented Python Scripts / HDAs
https://dominiklingenover.com/
MIT License
97 stars 19 forks source link

how to fix this problem. #11

Open hanjay3757 opened 2 years ago

hanjay3757 commented 2 years ago

Im using houdini 19.0.383 when I follow install direction but when I click tool this show up Traceback (most recent call last): File "dmnk_material_importer", line 1, in File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.383\python37\lib\site-packages-forced\shiboken2\files.dir\shibokensupport__feature__.py", line 142, in _import return original_import(name, *args, *kwargs) File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.383\python37\material_importer\material_importer_core.py", line 6, in import icons File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.383\python37\lib\site-packages-forced\shiboken2\files.dir\shibokensupport__feature__.py", line 142, in _import return original_import(name, args, **kwargs) ModuleNotFoundError: No module named 'icons'

Treadstoun commented 1 year ago

Hello. Do you find solution ?

ktonini commented 1 year ago

To fix this for speedtree_importer_core.py, change - import icons to - from .icons import *

Then in speedtree_importer/icons.py, add a "b" before the quote for each variable- qt_resource_data = b"\ qt_resource_name = b"\ qt_resource_struct = b"\

For material_importer_core.py, change - import icons import name_list to - from .icons import * from .name_list import *

Then in material_importer/icons.py, add a "b" before the quote for each variable- qt_resource_data = b"\ qt_resource_name = b"\ qt_resource_struct = b"\