View Single Post
  #3  
Old 04-04-2012, 05:02 PM
hotshotiguana hotshotiguana is offline
Member
 
Join Date: Mar 2011
Posts: 22
That script works fine when I run in the console and when I compile it.

I kept trying to comment out different lines in my script to see what was causing the problem and eventually when I commented out only that line the executable script started to work. I also placed pop-ups before and after that line and the software exited before it reached the second pop-up. Could the problem be that this specific line of code is not run until the second time a user opens the software (the import statement is at the top of my code, so I know that datetime is imported)?

I know this is a vague question because you don't exactly know any other features of my script, so to be more general is there a way to debug a script to test if it will work when compiled as an executable? I have also had this problem before with a Matplotlib toolbar for wx that loaded fine when I was working in the console and then failed to work when I compiled the script.

Thanks
Reply With Quote