Before you try to reinstall....
why don't you try to comment most of your code out especially whatever is in the constructor.
I would still suggest to use debug print otherwise you are depending on gui init.
Also, I have no idea on what other libraries your app depends on.
good luck
Bookmarks