Installing psychopy on Linux

After trying a lot of stuff, get a lot of different error messages. Now have

python3 psychopyApp.py
04:35:28 PM: Debug: Adding duplicate image handler for 'Windows bitmap file'
04:35:28 PM: Debug: Adding duplicate image handler for 'Windows bitmap file'
04:35:28 PM: Debug: Adding duplicate image handler for 'Windows bitmap file'
[1]    110814 segmentation fault (core dumped)  python3 psychopyApp.py

Any ideas?

2 Likes

I am seeing this same issue with a anaconda3 install of psychopy in Ubuntu 18.04. Were you able to get this resolved? If so, what steps did you take? Thanks!

yes, similar issue for me, but when calling psychopy.

10:12:39 AM: Debug: Adding duplicate image handler for 'Windows bitmap file'
10:12:39 AM: Debug: Adding duplicate image handler for 'Windows bitmap file'
10:12:39 AM: Debug: Adding duplicate image handler for 'Windows bitmap file'

I did a pip install of psychopy and then conda install wxpython on Ubuntu 18.04, using Python 3.7.6 in a conda environment.

I also see a quick “window” (not in a window shape) opening and immediately closing…

python3 psychopyApp.py does not work for me (No such file or directory), and I don’t see any segmentation fault (core dumped) message.

maybe related to:

1 Like

it’s solved now, after a friend pointed me to the troubleshooting page

  1. run python -c "from psychopy import prefs; print(prefs.paths['userPrefsDir'])" to find where your psychopy directory is
  2. look at the contents of last_app_load.log in that directory
  3. in my case, it showed me the true error: libwebkitgtk-1.0-0 was missing, so: sudo apt-get install libwebkitgtk-1.0-0
  4. after that it errored again because it didn’t find any sound library. I fixed that with pip install pygame

Now it’s working as it should :slight_smile:

1 Like

I am trying to install PsychoPy on Ubuntu 20, the problem is that I cannot install libwebkitgtk. Apparently it is not available. I could manually install it but it has some dependencies that are not available either (e.g. libjavascriptcoregtk-1.0-0, libicu60). I am not sure I am getting into a rabbit hole here. Is there an easier way to solve this issue and have psychopy running on my system?

1 Like