Hello everyone,
I am trying to install a development version of Psychopy on my machine. After forking the repository and creating a local copy, I tried following the developer install guide.
When trying to pip install -e .
, I get the following errors in the terminal:
Building wheels for collected packages: pyWinhook
Building wheel for pyWinhook (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\aa hook.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\doc.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\example.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\HookManager.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\__init__.py -> build\lib.win-amd64-cpython-310\pyWinhook
running build_ext
building 'pyWinhook._cpyHook' extension
swigging pyWinhook/cpyHook.i to pyWinhook/cpyHook_wrap.c
swig.exe -python -o pyWinhook/cpyHook_wrap.c pyWinhook/cpyHook.i
error: command 'swig.exe' failed: None
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyWinhook
Running setup.py clean for pyWinhook
Failed to build pyWinhook
Installing collected packages: pyWinhook, python-bidi, PyQt5-sip, pypiwin32, pyparsing, psychtoolbox, pillow, numexpr, msgpack-numpy, mdurl, kiwisolver, javascripthon, imageio-ffmpeg, html2text, greenlet, gitdb, future, freetype-py, fonttools, et-xmlfile, egi-pynetstation, decorator, cython, cycler, contourpy, blosc2, astunparse, wxPython, tables, soundfile, pyqt5, pypi_search, pyglet, proglog, openpyxl, matplotlib, markdown-it-py, imageio, gitpython, gevent, xarray, python-gitlab, moviepy, questplus, PsychoPy
Running setup.py install for pyWinhook ... error
error: subprocess-exited-with-error
× Running setup.py install for pyWinhook did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running install
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\aa hook.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\doc.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\example.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\HookManager.py -> build\lib.win-amd64-cpython-310\pyWinhook
copying pyWinhook\__init__.py -> build\lib.win-amd64-cpython-310\pyWinhook
running build_ext
building 'pyWinhook._cpyHook' extension
swigging pyWinhook/cpyHook.i to pyWinhook/cpyHook_wrap.c
swig.exe -python -o pyWinhook/cpyHook_wrap.c pyWinhook/cpyHook.i
error: command 'swig.exe' failed: None
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyWinhook
note: This is an issue with the package mentioned above, not pip.
I’m running Python version 3.10.10. If this is the problem, I would appreciate it if anyone could help me understand how to overcome it.
Anyways I couldn’t run psychopyApp.py
after the above installation.
Thanks,
Chen.