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 Installation — PsychoPy v2023.2.3
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/psychopyApp.py”, line 100, in main
start_app()
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/psychopyApp.py”, line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/_psychopyApp.py”, line 180, in init
self.onInit(testMode=testMode, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/_psychopyApp.py”, line 219, in onInit
from psychopy.app import coder, builder, dialogs
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/coder/init.py”, line 9, in
from .coder import * # pylint: disable=W0401
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/coder/coder.py”, line 22, in
import psychopy.app.pavlovia_ui.menu
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/init.py”, line 19, in
from .functions import *
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/functions.py”, line 13, in
from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
File “/usr/local/lib/python3.7/dist-packages/psychopy/app/pavlovia_ui/_base.py”, line 9, in
import wx.html2
File “/home/salos/.local/lib/python3.7/site-packages/wx/html2.py”, line 15, in
from ._html2 import *
ImportError: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory
I found the following Installing and running psychopy on Ubuntu 18.04 with conda python 3.6 · Issue #2082 · psychopy/psychopy · GitHub 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 libwebkitgtk-3.0.so.0 but naturally found nothing)
Any guidance tips?
Many thanks
Yiannis
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?