View Single Post
Old 12-06-2021, 08:51 AM   #1
kevn57
Connoisseur
kevn57 began at the beginning.
 
kevn57's Avatar
 
Posts: 93
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
Error Trying to Create a New Short Cut

When I try to create a new shortcut I get the following error, I've tried a few different commands to change and always now get this error, in the past I've changed shortcuts many times error free.

Anyone else having an issue? Thanks for any help.


calibre, version 5.33.0
ERROR: Unhandled exception: <b>TypeError</b>:unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

calibre 5.33 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Action Chains (1, 14, 0) && Count Pages (1, 11, 1) && FanFicFare (4, 8, 0) && Find Duplicates (1, 8, 10) && Goodreads (1, 5, 1) && Goodreads More Tags (1, 2, 1) && Open With (1, 5, 13) && View Manager (1, 6, 0)
Traceback (most recent call last):
File "calibre\gui2\keyboard.py", line 492, in eventFilter
File "calibre\gui2\keyboard.py", line 499, in key_press_event
File "calibre\gui2\keyboard.py", line 46, in keysequence_from_event
TypeError: unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

I just upgraded to 5.33.2 and have the same error

calibre, version 5.33.2
ERROR: Unhandled exception: <b>TypeError</b>:unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

calibre 5.33.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Action Chains (1, 14, 0) && Count Pages (1, 11, 1) && FanFicFare (4, 8, 0) && Find Duplicates (1, 8, 10) && Goodreads (1, 5, 1) && Goodreads More Tags (1, 2, 1) && Open With (1, 5, 13) && View Manager (1, 6, 0)
Traceback (most recent call last):
File "calibre\gui2\keyboard.py", line 492, in eventFilter
File "calibre\gui2\keyboard.py", line 499, in key_press_event
File "calibre\gui2\keyboard.py", line 46, in keysequence_from_event
TypeError: unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'



I just installed a fresh portable to a different folder and I'm still getting the same error


calibre, version 5.33.2
ERROR: Unhandled exception: <b>TypeError</b>:unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

calibre 5.33.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
File "calibre\gui2\keyboard.py", line 492, in eventFilter
File "calibre\gui2\keyboard.py", line 499, in key_press_event
File "calibre\gui2\keyboard.py", line 46, in keysequence_from_event
TypeError: unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

Last edited by kevn57; 12-06-2021 at 09:13 AM.
kevn57 is offline   Reply With Quote