Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: Signature "triggered()" not found for signal: #1806

Open
chlowden opened this issue Oct 29, 2024 · 3 comments
Open

IndexError: Signature "triggered()" not found for signal: #1806

chlowden opened this issue Oct 29, 2024 · 3 comments

Comments

@chlowden
Copy link

Required:


[ x] I believe this isn't a duplicate topic
[x ] This report is not related to an adapter

For adapter related issues, please go to the appropriate repository - likely in
the OpenTimelineIO github organization.
For general questions and help please use the
Academy Software Foundation slack,
#opentimelineio.

Select One:

[ ] Build problem
[x ] Incorrect Functionality or bug
[ ] New feature or functionality

Description

Following an initial install on Rocky 8.10, then loading an otio file that imports fine in davinci resolve, I get the error below

otioview SolLevante_HDR10_r2020_ST2084_UHD_24fps_1000nit.otio
Traceback (most recent call last):
File "/home/admin/anaconda3/bin/otioview", line 8, in
sys.exit(main())
^^^^^^
File "/home/admin/anaconda3/lib/python3.11/site-packages/opentimelineview/console.py", line 292, in main
window = Main(
^^^^^
File "/home/admin/anaconda3/lib/python3.11/site-packages/opentimelineview/console.py", line 153, in init
self._create_navigation_menu(navigation_menu)
File "/home/admin/anaconda3/lib/python3.11/site-packages/opentimelineview/console.py", line 222, in _create_navigation_menu
navigation_menu.triggered[[QAction]].connect(__callback)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
IndexError: Signature "triggered()" not found for signal: "triggered". Available candidates: "triggered(QAction*)"

Optional


Environment

Rocky 8.10
Operating System:
Python version if appropriate:
Python 3.11.7

Reproduction Steps

Log output if appropriate

Sample data and other attachements

@spezialspezial
Copy link

I think the signal in qmenu.h is not meant to be a C-array of QActions

Q_SIGNALS:
void triggered(QAction *action);

changing the overload to "navigation_menu.triggered[QAction].connect(__callback)" makes it work at least.


diff --git a/src/opentimelineview/console.py b/src/opentimelineview/console.py
index 2c4b2ee..ba18cc1 100755
--- a/src/opentimelineview/console.py
+++ b/src/opentimelineview/console.py
@@ -219,7 +219,7 @@ class Main(QtWidgets.QMainWindow):
 
         def __callback():
             self._navigation_filter_callback(actions)
-        navigation_menu.triggered[[QAction]].connect(__callback)
+        navigation_menu.triggered[QAction].connect(__callback)
 
     def _navigation_filter_callback(self, filters):
         nav_filter = 0

@reinecke
Copy link
Collaborator

reinecke commented Nov 7, 2024

Hi there, thanks for reporting the issue!

A lot of our attention has been on a replacement for otioview called raven - is raven able to address your use case (you can download a pre-built version here)?

@chlowden
Copy link
Author

chlowden commented Nov 8, 2024

Thank you for the info. Do you know if there is a Rocky Linux friendly version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

3 participants