検索 - User list
Full Version: houdini_2_ae for Houdini 21
Root » 3rd Party » houdini_2_ae for Houdini 21
Mladen Kevic
Hi everyone,

I tried to use Houdini_2_AE HDA in Houdini 21, but I get an error Pyside2:

Traceback (most recent call last):
File "Object/houdini_2_ae, PythonModule", line 3, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.440/houdini/python3.11libs\toolutils.py", line 1903, in createModuleFromSection
return _createModule(module_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.440/houdini/python3.11libs\toolutils.py", line 1885, in _createModule
eval(code, module_dict)
File "houdini_2_ae", line 1, in <module>
ModuleNotFoundError: No module named 'PySide2'

Does anyone know what needs to be edited or have an adjusted copy of it?
jemabaris
H21 is built around QT6, which uses Pyside6. You can either specifically instal a QT5 version of Houdini or try to replace all includes of Pyside2 with Pyside6. That's not guarantee to work as quite a few other things have also changed in QT6.
Mladen Kevic
thanks i will try it today
Mladen Kevic
Just to confirm that changing PySide2 to PySide6 in the HDA script works!

If someone needs an updated HDA, i can send it
ebenfred
After replacing PySide2 to PySide6, i've still this error :

Error running callback:
Traceback (most recent call last):
File "Object/houdini_2_ae/lunch_tool", line 1, in <module>
File "houdini_2_ae", line 1087, in show
File "houdini_2_ae", line 70, in __init__
AttributeError: PySide6.QtGui.QPixmap.scaledToWidth(): unsupported keyword 'transformMode'
iam83
ebenfred
After replacing PySide2 to PySide6, i've still this error :

Error running callback:
Traceback (most recent call last):
File "Object/houdini_2_ae/lunch_tool", line 1, in <module>
File "houdini_2_ae", line 1087, in show
File "houdini_2_ae", line 70, in __init__
AttributeError: PySide6.QtGui.QPixmap.scaledToWidth(): unsupported keyword 'transformMode'

Add # in line 70-72

70 #self.lb_header_photo.setPixmap(self.lb_header_photo_pixmap.scaledToWidth(
71 # self.lb_header_photo.width(),transformMode=Qt.FastTransformation)
72 #)
ebenfred
thanks ! works well!
cheers!
F.


iam83
ebenfred
After replacing PySide2 to PySide6, i've still this error :

Error running callback:
Traceback (most recent call last):
File "Object/houdini_2_ae/lunch_tool", line 1, in <module>
File "houdini_2_ae", line 1087, in show
File "houdini_2_ae", line 70, in __init__
AttributeError: PySide6.QtGui.QPixmap.scaledToWidth(): unsupported keyword 'transformMode'

Add # in line 70-72

70 #self.lb_header_photo.setPixmap(self.lb_header_photo_pixmap.scaledToWidth(
71 # self.lb_header_photo.width(),transformMode=Qt.FastTransformation)
72 #)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB