Animatect / Prism2_PluginFusion

Fusion plugin for the Prism Pipeline Framework
1 stars 1 forks source link

Test error in ImportImages #25

Closed AltaArts closed 3 weeks ago

AltaArts commented 4 weeks ago

I am seeing the below error, and I cannot remember if I had gotten it previously.

@Animatect: do you get an error when you are trying to import an image via the right-click menu in the MediaPlayer?

To me it does look like it is correctly throwing the error with the current def statement:

@err_catcher(name=__name__)
def importImages(self, origin):

Where I have used this def statement:

@err_catcher(name=__name__)
def importImages(self, filepath=None, mediaBrowser=None, parent=None):

I don't want to change anything yet in case it is just happening in my environment.

16/08/24 08:37:38 ERROR - Prism_Fusion_Functions

Core: v2.0.10 App plugin: Fusion v2.0.0 Plugin: Fusion v2.0.0

File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\CreateHolder.py", line 9, in createHolder() File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\CreateHolder.py", line 5, in createHolder holder = HolderClass.PrismHolderClass(fu.UIManager, fusion) File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\HolderClass.py", line 113, in init self.disp.RunLoop() File "", line 167, in RunLoop File "", line 123, in Dispatch File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\HolderClass.py", line 135, in on_btn_projectbrowser_clicked opw.openProjectBrowser(globalPrism.pcore) File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\openPrismWindows.py", line 31, in openProjectBrowser launchProjectBrowser(qapp=qapp, globalpcore=globalpcore) File "C:\Users\Alta Arts\AppData\Roaming\Blackmagic Design\Fusion\Scripts\Prism\openPrismWindows.py", line 157, in launchProjectBrowser qapp.exec() File "C:\Python311\Lib\site-packages\qtpy\QtWidgets.py", line 149, in QApplication.exec_ = lambda *args, kwargs: possibly_static_exec( File "C:\Python311\Lib\site-packages\qtpy_utils.py", line 53, in possibly_static_exec return args[0].exec() File "C:\Prism2\Scripts\PrismUtils\Decorators.py", line 54, in funcwrapper return func(*args, **kwargs) File "C:\Prism2\Scripts\ProjectScripts\MediaBrowser.py", line 2655, in rclPreview menu.exec(QCursor.pos()) File "C:\Python311\Lib\site-packages\qtpy\QtWidgets.py", line 155, in QMenu.exec_ = lambda *args, kwargs: possibly_static_exec( File "C:\Python311\Lib\site-packages\qtpy_utils.py", line 54, in possibly_static_exec return args[0].exec(*args[1:], **kwargs) File "C:\Prism2\Scripts\ProjectScripts\MediaBrowser.py", line 2673, in impAct.triggered.connect(lambda: self.core.appPlugin.importImages(mediaBrowser=self)) File "C:\Prism2\Scripts\PrismUtils\Decorators.py", line 89, in func_wrapper "".join(traceback.format_stack()),

Traceback (most recent call last): File "C:\Prism2\Scripts\PrismUtils\Decorators.py", line 54, in func_wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ TypeError: Prism_Fusion_Functions.importImages() got an unexpected keyword argument 'mediaBrowser'

Animatect commented 4 weeks ago

I don't remember getting that error but I'll try to reproduce.

AltaArts commented 3 weeks ago

So I changed the args from "origin" to "mediaBrowser" in the importImages methods. It is working on my side, but test on yours.