I ran into the same problem too, and here’s the solution. You’ll see the error message below:
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/event.py”, line 558, in getPos
lastPosPix = lastPosPix - self.win.size / 2
TypeError: unsupported operand type(s) for /: ‘tuple’ and ‘int’
Click on the boldfaced text and event.py will open, and you’ll be at line 558 (see below). Line 558 is trying to divide the tuple
self.win.size by 2, which is the line that’s causing the error. You can try in your shell:
(1, 2) / 2 or
[1, 2] / 2, and you’ll get the same error message (unsupported operand type) because you can’t divide tuples or lists by a number.
To solve the problem, just turn
self.win.size into a numpy array, and comment out the original line (558). See line two below for solution. Hope that helps!
# lastPosPix = lastPosPix - self.win.size / 2 # line 558
lastPosPix = lastPosPix - numpy.array(self.win.size) / 2 # working version