Well, I failed to install psychopy on m1. There are some errors and confusion during the process.
Using cached tables-3.8.0.tar.gz (8.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [61 lines of output]
<string>:19: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
ld: library not found for -llzo2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -llzo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error compiling Cython file:
------------------------------------------------------------
...
def _dump_h5_backtrace():
cdef object bt = []
if H5Ewalk(H5E_DEFAULT, H5E_WALK_DOWNWARD, e_walk_cb, <void*>bt) < 0:
^
------------------------------------------------------------
tables/utilsextension.pyx:384:47: Cannot assign type 'herr_t (unsigned int, const H5E_error_t *, void *) except? -1 nogil' to 'H5E_walk_t'
cpuinfo failed, assuming no CPU features: 'flags'
* Using Python 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:25:14)
* Found cython 3.0.0
* USE_PKGCONFIG: True
* Found conda env: ``/Users/tongzhao/miniconda3``
* Found HDF5 headers at ``/opt/homebrew/opt/hdf5/include``, library at ``/opt/homebrew/opt/hdf5/lib``.
.. WARNING:: Could not find the HDF5 runtime.
The HDF5 shared library was *not* found in the default library
paths. In case of runtime problems, please remember to install it.
* Could not find LZO 2 headers and library; disabling support for it.
* Could not find LZO 1 headers and library; disabling support for it.
* Found bzip2 headers at ``/opt/homebrew/opt/bzip2/include``, library at ``/opt/homebrew/opt/bzip2/lib``.
* pkg-config header dirs for blosc: /opt/homebrew/Cellar/c-blosc/1.21.4/include
* pkg-config library dirs for blosc: /opt/homebrew/Cellar/c-blosc/1.21.4/lib
* Found blosc headers at ``/opt/homebrew/Cellar/c-blosc/1.21.4/include``, library at ``/opt/homebrew/Cellar/c-blosc/1.21.4/lib``.
.. WARNING:: Could not find the blosc runtime.
The blosc shared library was *not* found in the default library
paths. In case of runtime problems, please remember to install it.
* Found blosc2 headers at ``/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/include``, library at ``/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib``.
* Copying blosc2 runtime library to 'tables' dir because it was not found in standard locations
Compiling tables/utilsextension.pyx because it changed.
[1/1] Cythonizing tables/utilsextension.pyx
Traceback (most recent call last):
File "/Users/tongzhao/Documents/Psychopy/psychopy-on-M1/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/tongzhao/Documents/Psychopy/psychopy-on-M1/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/tongzhao/Documents/Psychopy/psychopy-on-M1/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 928, in <module>
File "<string>", line 923, in get_cython_extfiles
File "/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/private/var/folders/b9/smm3d4xj4y778d4gpcc3xvjc0000gn/T/pip-build-env-n4a_qy9x/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: tables/utilsextension.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I guess there might need some skills to install tables.
BTW, the installation of Psychtoolbox also failed. I don't know if it's because of an error in the tables installation.