This is for those who might be having problems installing PsychoPy 2023.1.1 on Ubuntu 22.04. After trying nearly all the options suggested on forums and the PsychoPy install page and failing, I finally got a fully functional PsychoPy install using the following steps:
cd to the PsychoPy folder and use command: ./setup.py build
when build completes, use command: ./setup.py install
pip install any missing modules causing install error. Fix with: python -m pip install “missing module” In general, for any failure due to a missing module during the install, install the missing module and then ./setup.py install again
Note: you may need to install wxpython (wxPython · PyPI) or other modules - just follow the error messages
I confirm that the recipe worked in a conda environment, created with python=3.8 (as suggested by Simon_Ruch), on my Debian bookworm system.
However, I did not need to install wxPython via a wheel. When running the command ./setup.py install, version 4.2.0 of the wxPython module was downloaded and built. This needs the libgtk-3-dev package installed in the system. Supposing that the release tarball is unpacked in the PsychoPy-2023.1.2 directory, these are the commands that worked for me™:
I am using Linux Mint 21.3 (based on Ubuntu 22.04). The suggested method did not work for me. I followed Rafael’s steps and get the following error during execution of ./setup.py install
tmp/easy_install-18j9_ehv/tables-3.9.2/temp/H5close23v0l0ld.c:1:10: fatal error: H5public.h: No such file or directory
1 | #include “H5public.h”
| ^~~~~~~~~~~~
compilation terminated.
… ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the HDF5_DIR environment
variable or by using the --hdf5 command-line option.
error: Setup script exited with 1