The last code seems to work on 3.11
The errors where thrown at launch of the program, not when actually using the affected dialogs. I assume it happened when python updates __pychache__ and compiles the modified files into .pyc
Since now I was able to get to the program window, I assume all the files passed the compile phase under python 3.11
Thanks for your prompt response.