Skip to content

How to install psychopy on lab desktop

Kelsey McDonald edited this page Apr 14, 2017 · 5 revisions

In python 2, execute the following commands in terminal (see this webpage for the source: http://neuro.debian.net/):

Then, type: *sudo apt-get update
*sudo apt-get install psychopy

Using this technique, there is a typo in the following file: '/usr/lib/python2.7/dist-packages/psychopy/hardware/joystick/init.py' that was not corrected by neurodebian/psychopy.

In a text editor, navigate to the try/except statement where it tests whether pygame is installed:

try: import pygame.joystick havePygame = True except Exception: havePygame = False

Right above this try/except statement in our installed init.py file is a command to import pygame...before the try/except statement! Remove this line and everything should work!

Clone this wiki locally