(before using this, you might want to read on and see if you can skip the very hefty downloads here) sudo apt install octave I searched around a bit and found this fairly obscure solution described by the user Detlef: When running PsychoPy experiments again now, I got “PTB-CRITICAL: In call to PsychSetThreadPriority(): Failed to set new basePriority 2, tweakPriority 1, effective 1 for thread (nil) provided!”. (EDIT: If you’re fine without PTB and using PsychoPy’s fallbacks - which I don’t know much about - look at replies further down in this thread, which seem to describe a simpler solution, based on a post by There is another thread which discusses a PTB-CRITICAL error which looks to be the same as the one I describe here, and there is a clarification of a solution from there that reportedly has worked.) I looked around, found this thread, ran sudo apt-get install libxcb-xinerama0 (outside venv), which fixed this issue. I however got another error message, ‘Could not load the Qt platform plugin “xcb” in “” even though it was found…’. I created a “hello world” experiment and tried to run it. Now finally when I ran psychopy (within venv), PsychoP圓 Builder started up. Some duckduckgo:ing lead me to try sudo apt-get install libsdl2-2.0 (outside of the venv). However, when I tried to start psychopy ( psychopy from within venv), I got “ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory”. Missing Simple Directmedia Layer (SDL) libraries I then tried pip install psychtoolbox (from inside the venv) again, and this time it seemed to work. I followed the instructions and ran sudo apt-get install gcc python3-dev (from outside of the virtual environment). Unable to execute ‘x86_64-linux-gnu-gcc’: No such file or directoryĬ compiler or Python headers are not installed on this system. But then I got errors, saying among other things So I set up a virtual environment with venv, ran the previous commands ( pip install psychopy installing the appropriate wxPython wheel and building psychtoolbox bindings), then executed the above command from inside it. I tried to follow the installation instructions for Linux-based systems, which end with: I’m using a fresh install of Ubuntu 20.04, with python v. I started this to ask for help, but then I found out more myself, so now I’m mostly putting this here to help anyone else who might try to install PsychoPy on Ubuntu in the future. (not marked as solution yet since there’s only one who has confirmed that it works for them) Important! wrote a reply further down and suggested what is probably a much easier solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |