# Installing Psyhcopy on Fedora

**URL:** <https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784>\
**Category:** Builder\
**Tags:** linux, installation\
**Created:** [January 14, 2023, 5:18pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784 "2023-01-14T17:18:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andresimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andresimi/32/3648_2.png) [@andresimi](https://discourse.psychopy.org/u/andresimi)\
**Post date:** [January 14, 2023, 5:18pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/1 "2023-01-14T17:18:07Z")

</div>

**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)](https://discourse.psychopy.org/t/installing-psychopy-on-linux-rhel/30537).  
However, wxpython could not be installed via pip. So I managed it through mamba. However, nothing happens.

Steps to reproduce:

```auto
# 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
psychopy

```

**What specifically went wrong when you tried that?:**  
However, nothing happens. Psychopy do not launch.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/8/4812100e0e5954d12237bf8154e762f30b0d587a.png)

---

<div class="post-metadata">

**Author:** ![arnon\_weinberg](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/arnon_weinberg/32/9486_2.png) [@arnon\_weinberg](https://discourse.psychopy.org/u/arnon_weinberg)\
**Post date:** [January 15, 2023, 5:28am UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/2 "2023-01-15T05:28:42Z")

</div>

Try the troubleshooter - in particular, the log file. See [here](https://discourse.psychopy.org/t/installing-psychopy-on-linux/8889/4).

---

<div class="post-metadata">

**Author:** ![andresimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andresimi/32/3648_2.png) [@andresimi](https://discourse.psychopy.org/u/andresimi)\
**Post date:** [January 22, 2023, 9:12pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/3 "2023-01-22T21:12:22Z")

</div>

Humm thank you!  
my las\_app\_load.log is like this:  
Do you have a clue?

```auto
pygame 2.1.3.dev8 (SDL 2.26.2, Python 3.9.15)
Hello from the pygame community. https://www.pygame.org/contribute.html
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>
    sys.exit(main())
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/psychopyApp.py", line 98, in main
    start_app()
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/psychopyApp.py", line 26, in start_app
    app = startApp(showSplash=showSplash)
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/ __init__.py", line 84, in startApp
    from psychopy.app._psychopyApp import PsychoPyApp
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/_psychopyApp.py", line 52, in <module>
    from .utils import FileDropTarget
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/utils.py", line 26, in <module>
    from . import pavlovia_ui
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/ __init__.py", line 19, in <module>
    from .functions import *
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/functions.py", line 11, in <module>
    from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/_base.py", line 10, in <module>
    import wx.html2
  File "/home/andresimi/mambaforge/envs/psychopy/lib/python3.9/site-packages/wx/html2.py", line 15, in <module>
    from ._html2 import *
ImportError: libwebkitgtk-1.0.so.0: 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/messages.mo 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).

```

---

<div class="post-metadata">

**Author:** ![arnon\_weinberg](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/arnon_weinberg/32/9486_2.png) [@arnon\_weinberg](https://discourse.psychopy.org/u/arnon_weinberg)\
**Post date:** [January 23, 2023, 3:42am UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/4 "2023-01-23T03:42:08Z")

</div>

It looks like [others](https://discourse.psychopy.org/search?q=libwebkitgtk-1.0) 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.

---

<div class="post-metadata">

**Author:** ![andresimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andresimi/32/3648_2.png) [@andresimi](https://discourse.psychopy.org/u/andresimi)\
**Post date:** [January 23, 2023, 12:23pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/5 "2023-01-23T12:23:37Z")

</div>

> [@arnon\_weinberg](#):
>
> webkit2gtk3

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

---

<div class="post-metadata">

**Author:** ![arnon\_weinberg](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/arnon_weinberg/32/9486_2.png) [@arnon\_weinberg](https://discourse.psychopy.org/u/arnon_weinberg)\
**Post date:** [January 23, 2023, 5:21pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/6 "2023-01-23T17:21:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andresimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andresimi/32/3648_2.png) [@andresimi](https://discourse.psychopy.org/u/andresimi)\
**Post date:** [March 11, 2023, 6:45pm UTC](https://discourse.psychopy.org/t/installing-psyhcopy-on-fedora/32784/7 "2023-03-11T18:45:43Z")

</div>

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

> psychopy

To quit the container

> exit
