| Reference | Downloads | Github

Install on Linux - issue

Hi folks,

After happily using psychopy on Windows machines for years I thought to give it a go on a linux machine.

Instructions followed as per

After install running psychopy on terminal produces the following error:

$ psychopy
23:14:22: Debug: Adding duplicate image handler for ‘Windows bitmap file’
23:14:22: Debug: Adding duplicate image handler for ‘Windows bitmap file’
23:14:22: Debug: Adding duplicate image handler for ‘Windows bitmap file’
Traceback (most recent call last):
File “/usr/local/bin/psychopy”, line 11, in
load_entry_point(‘PsychoPy==3.1.2’, ‘gui_scripts’, ‘psychopy’)()
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/”, line 100, in main
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/”, line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/”, line 180, in init
self.onInit(testMode=testMode, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/”, line 219, in onInit
from import coder, builder, dialogs
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/coder/”, line 9, in
from .coder import * # pylint: disable=W0401
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/coder/”, line 22, in
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/”, line 19, in
from .functions import *
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/”, line 13, in
from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/”, line 9, in
import wx.html2
File “/home/salos/.local/lib/python3.7/site-packages/wx/”, line 15, in
from ._html2 import *
ImportError: cannot open shared object file: No such file or directory

I found the following regarding the libwebkitgtk library but

sudo apt-get install libwebkit[tab-completion]

outputs the following potential libraries

libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev libwebkit2-sharp-4.0-cil
libwebkit2gtk-4.0-37-gtk2 libwebkit2gtk-4.0-doc libwebkit2-sharp-4.0-cil-dev

(yes i did try to sudo install but naturally found nothing)

Any guidance tips?

Many thanks

P.S. The only thing I can think of is that my distro is Ubuntu19 and the latest wxPython wheel is for ubuntu18.04 which is the the one I installed…could that be it?


I have the very same problem on a fresh Debian-10 (Buster) installation. Only libwebkitgtk2 is available, last with 1 was Stretch.

So i downloaded that oldstable libwebkitgtk-1.0-0_2.4.11-3_amd64.deb package, and the dependent libjavascriptcoregtk-1.0-0_2.4.11-3_amd64.deb as well, installed both without complains.

Then, psychopy -c started, but crashed:

(psychopy:8598): Gtk-WARNING **: 11:11:53.442: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/ initialization check failed: GLib version too old (micro mismatch)