psychopy.org | Reference | Downloads | Github

Problem compiling psychopy experiment with py2exe

Hello psychopy community!

I’m having issues trying to compile and run this project I’ve been working on with py2exe. It uses psychopy to create experiments, and wxPython as a GUI framework.

Link to it’s git repository:

It runs from PyVMEC.py. To run an experiment on the GUI you make a (New) under the Experiments section then (Load). Then you make a (New) task under the Tasks section. From there (Run) on the bottom left can be run and it should run the experiment.

This all works on Linux however on Windows it has some issues.

Some background to the issue i’ve been having. I wrote everything on a Linux computer and it works fine when I run it from terminal with (python PyVMEC.py). When I try to run it on Windows I get this error:

Exception AttributeError: “‘NoneType’ object has no attribute ‘close’” in <bound method Window.del of <psychopy.visual.window.Window object at 0x0000000019E55CF8>> ignored

When I compile it into an exe with py2exe and run it, there are no errors but just a black screen. I’m doing this on:

Windows 7 32-bit environment
Python 2.7
psychopy 1.90.0
pyglet 1.3.0

The same issues occur on my colleagues 64-bit Windows 10 machine.

Any help on this issue would be amazing!