Installing Psyhcopy on Fedora

OS (e.g. Win10): Fedora 37
PsychoPy version (e.g. 1.84.x): 2022.02.04
Standard Standalone? (y/n) If not then what? No, via mamba
What are you trying to achieve?:
Trying to make psychopy builder launch… But it do not load and do not sends an error.

What did you try to make it work?:
First, I went through this: Installing PsychoPy on Linux (RHEL).
However, wxpython could not be installed via pip. So I managed it through mamba. However, nothing happens.

Steps to reproduce:

# dependencies
sudo dnf install -y python3-tkinter git mesa-libGLU pcre2-utf32
sudo dnf install -y gcc-c++ swig python3-devel pulseaudio-libs-devel alsa-lib-devel wxGTK3-devel webkit2gtk3-devel

# python
mamba create -n psychopy attrdict wheel wxpython psychopy
mamba activate psychopy

What specifically went wrong when you tried that?:
However, nothing happens. Psychopy do not launch.

Try the troubleshooter - in particular, the log file. See here.

Humm thank you!
my las_app_load.log is like this:
Do you have a clue?

pygame 2.1.3.dev8 (SDL 2.26.2, Python 3.9.15)
Hello from the pygame community.
PTB-INFO: Using modified PortAudio V19.7.0-devel, revision unknown
Traceback (most recent call last):
  File "/home/andresimi/mambaforge/envs/psychopy/bin/psychopy", line 11, in <module>
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/", line 98, in main
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/", line 26, in start_app
    app = startApp(showSplash=showSplash)
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/", line 84, in startApp
    from import PsychoPyApp
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/", line 52, in <module>
    from .utils import FileDropTarget
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/", line 26, in <module>
    from . import pavlovia_ui
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/", line 19, in <module>
    from .functions import *
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/", line 11, in <module>
    from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/", line 10, in <module>
    import wx.html2
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/wx/", line 15, in <module>
    from ._html2 import *
ImportError: cannot open shared object file: No such file or directory
0.7333 	DEBUG 	Opening message catalog /home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/localization/../app/locale/pt_BR/LC_MESSAGE/ for locale pt_BR
0.7334 	DEBUG 	Locale for 'pt_BR' not found. Using default.
5.7333 	INFO 	Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
5.7337 	INFO 	sound is using audioLib: sounddevice
5.7339 	WARNING 	We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).

It looks like others have run into this issue - see if any of their solutions help.

My system doesn’t seem to require libwebkitgtk-1.0 (it works with webkit2gtk3) but yours may need it installed.

In my system I have webkit2gtk4. It is not the same updated package?

Yes. My webkit2gtk3 provides libwebkit2gtk-4.0, and webkit2gtk4 on Fedora 37 has libwebkit2gtk-4.1. But your error log indicates that PsychoPy needs libwebkit2gtk-1.0. I don’t know why that is - best to look at the other posts.

Yeah, I quit trying to install it directly on fedora. It is too painfull.
Psychopy should have a flatpak or/an official updated docker image.

Luckily I was able to install it on fedora using containers with 3 easy steps.
Using distrobox and a docker image from 3y ago. Here are the steps:

  1. Install distrobox

sudo dnf install distrobox

  1. Download and create a container

distrobox-create --name psychopy --image neuroidss/psychopy-ubuntu-xfce-vnc

  1. Access the container shell

distrobox enter psychopy

  1. Enter psychopy


To quit the container