Follow the instructions for setting up a
calibre development environment if you haven't already. If you have done so there is no reason to run pyuic or any other command like this by hand. Make your change then run the viewer. The .ui will be "recompiled" with the appropriate modifications for thing like the images_rc's path to be properly set.