pypresence icon indicating copy to clipboard operation
pypresence copied to clipboard

Random errors when editing cards or closing the editor window

Open SoftSalem opened this issue 2 years ago • 3 comments

This is the code im getting since y downloaded the addon. Im using version 2.1.49

Información de depuración (Depuration Info): Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-05-05 08:01:57

Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D4ECD02C10> Traceback (most recent call last): File "asyncio\proactor_events.py", line 115, in del File "asyncio\proactor_events.py", line 79, in repr File "asyncio\windows_utils.py", line 102, in fileno ValueError: I/O operation on closed pipe Exception ignored in sys.unraisablehook: AttributeError: 'ErrorHandler' object has no attribute 'flush'

SoftSalem avatar May 06 '22 10:05 SoftSalem

@SoftSalem please share yr code

Hunter2809 avatar May 06 '22 10:05 Hunter2809

this might be a pyqt thing

dannynotsmart avatar May 06 '22 11:05 dannynotsmart

I did some checking,

The documentations of PyPresence does not mention anything related to this ErrorHandler object. After doing some more googling, I found that this error also appeared for someone else using PyQT. You may want to check out this. https://github.com/ThoreBor/Anki_Leaderboard/issues/66

dannynotsmart avatar May 06 '22 11:05 dannynotsmart