After having a few issues with installing PsychoPy3 on Linux (Linux Mint 19.1), below, I listed the necessary steps to get it running. Maybe, some of the issues can be resolved with updates or by including them in the online instructions (Thanks Claire, for the final ffmpeg hint).
# installing wxpython with pip (sudo pip3 install wxpython)
# would get a newer version but resulted in errors
sudo apt-get install python3-wxgtk4.0
# 'Webview' part of wxpython missing:
sudo apt-get install python3-wxgtk-webview4.0
# Missing 'ffmpeg' results in crash shortly after startup, thus:
sudo apt-get install ffmpeg
Now it should start with:
A new Debian version will be released in a few months (April 2019). I’ll test this on the new Debian again. If it is working there, then it should also work on all its descendants (Ubuntu, Mint, etc.).
I was having the same kind of trouble installing Psychopy 3 on Ubuntu 18.10.
What I did was to make sure that the default python was indeed python 3 (running sudo ln -sfn /usr/bin/python3 /usr/bin/python). Then I followed more or less the same steps as you did and ended up with the same problem of Psychopy crashing after a few seconds.
However I noticed from the output window of the Coder view that Psychopy was trying to install the missing ffmpeg package just before crashing. So I installed it directly from outside Psychopy (sudo apt-get install ffmpeg) and it is now working like a charm.
So maybe have a look at the Coder view to see if you don’t run into the same problem ?
Awesome. Thank you Claire!
I can confirm this. I did not even see that the Coder view was open behind the Builder (before it crashed). But after knowing what to look for, I could catch a glimpse of something “ffmpeg” in the Coder output window. After install ffmpeg there was no immediate crash anymore and everything seems to work fine.
ps: I updated the initial post to be as informative as possible as to what steps are necessary and what is documented an what not. I hope this helps others and/or helps resolving some of the missing dependencies.
I’m trying to use the DotStim, and when I try this installation followed by from psychopy.visual import DotStim, I receive a ModuleNotFoundError: No module named 'wx' error. Right now I’m trying to install wx with pip install wxPython but the process has been spinning for the past 15 minutes
$ pip install wxpython
Using cached wxPython-4.1.1.tar.gz (66.0 MB)
Requirement already satisfied: pillow in ./mac_venv/lib/python3.6/site-packages (from wxpython) (8.3.2)
Requirement already satisfied: six in ./mac_venv/lib/python3.6/site-packages (from wxpython) (1.16.0)
Requirement already satisfied: numpy in ./mac_venv/lib/python3.6/site-packages (from wxpython) (1.19.5)
Building wheels for collected packages: wxpython
Building wheel for wxpython (setup.py) ... |
Is this supposed to happen? Is something going wrong?