in reply to Convert to exe

You can have a trial version of PDK from ActiveState ( as Limbic~Region mentioned ) and test if you can compile not, there's a gui with some debug logic, so maybe easier to identify that's the code problem, or the conversion problem

Just a big guess ( was my experience ), did you reading some important variables from files? which maybe ignored when converting to executable, because the packer won't read into your file and elaborate a desired var to move on. HTH