I am using the Spyder2 IDE in the python(x,y) package. The below function runs fine in Iron Python, but has errors when I run in the console. I need it to run in the console so that I can use Pyinstaller. The error I get is: I am using the Spyder2 IDE in the python(x,y) p