| Reference | Downloads | Github

Input.base error

Hello! I am new to Psychopy and to Python. I am trying to run an experiment that was programmed on the same versions of psychopy and python, but on a different computer. I keep getting the error message below. Does anyone know what the issue could be?

Running: /home/[…].py

pyo version 0.6.8 (uses single precision)
Traceback (most recent call last):
File “/home/[…].py”, line 19, in
import gPsy as g
File “…/gPsy/”, line 1, in
import WM
File “…/gPsy/”, line 11, in
import base as b
File “…/gPsy/”, line 7, in
from psychopy.hardware import joystick
File “/usr/lib/python2.7/dist-packages/psychopy/hardware/joystick/”, line 36, in
import pyglet_input
File “/usr/lib/python2.7/dist-packages/psychopy/hardware/joystick/pyglet_input/”, line 155, in
from x11_xinput import get_devices as xinput_get_devices
File “/usr/lib/python2.7/dist-packages/psychopy/hardware/joystick/pyglet_input/”, line 11, in
from pyglet.input.base import
ImportError: No module named input.base

Looks like a similiar issue reported here - the solution was to update Pyglet. Alternatively, you could use a newer version of PsychoPy standalone, which will have updated Pyglet dependencies.

hey, thanks for putting me on the right track!

In case someone else has the same problem, I’ll report, although it’s not exactly an nice solution that I found: pyglet wouldn’t update, but it ended up being the case that I started using Ubuntu 18 instead of 14 in the meantime. The problem then became “No module named json_tricks”, and I could install json_tricks with no problem.