You appear to be switching your source between master and qt5, if you do that you have to delete all *_ui.py so that they can be automatically rebuilt on next run. I do that automatically via git checkout hook:
https://github.com/kovidgoyal/calibr...eckout_hook.py