Closed oxygen-dioxide closed 1 year ago
Translation of error: "Cannot change thread mode after setting it"
This sounds like a duplicate of #690.
Here is a potential workaround:
from winrt import _winrt
_winrt.uninit_apartment()
Your code doesn't work for me
However, if I use importlib.import, it works.
import importlib
_winrt=importlib.import_module("winrt._winrt")
_winrt.uninit_apartment()
import winrt
This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.