-
Notifications
You must be signed in to change notification settings - Fork 15
How to install psychopy on lab desktop
In python 2, execute the following commands in terminal (see this webpage for the source: http://neuro.debian.net/):
-
wget -O- http://neuro.debian.net/lists/xenial.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
-
sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
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!