-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyWinhook fails to build when installing PsychoPy 3.0.2 #2222
Comments
Fixed by downloading SWIG and adding path of swig.exe to environment variables. |
We previously didn't have For what it's worth, I created So this is not a bug, but simply the On another side node, you now probably ended up with a non-functional |
Luckily I didn't change it in the standalone as far as I know (hoping it didn't update and break itself automatically during build)! |
(This was actually part of the things that made me wonder if we shouldn't factor out the iohub deps into an |
If you installed it manually via a wheel or exe like always, I don't think |
The |
Hey @dvbridges, the new builds are now available from PyPI: https://pypi.org/project/pyWinhook/1.6.0/#files I will try to build and upload a Py 3.6 build as well when I have time. I believe this closes this issue! |
Cool, cheers @hoechenberger. |
Does this have any benefits over the pyHook that I was providing already? ie. Should I be updating the standalone to use this instead? |
@peircej I don't know where you acquired But to answer your question, I don't think there would be much of a benefit for you to switch from |
Yes, I think I got it from gohlke |
Py3.6 wheels now available from PyPI. |
Meanwhile, pyWinhook 1.6.1 has been released. It contains fixes for unicode handling in window names, thereby providing an actual advantage over pyHook. Wheels for Python 2.7 and 3.7 are on PyPI, and I will publish Python 3.6 binaries tomorrow or so. |
I am having problems installing PyWinHook using wheels. I get the following:
The installation from the developer repo also fails because the PyWinHook build fails for reason above (swig). |
Which platform are you using?
…On Mon, Mar 11, 2019 at 12:45 PM David Bridges ***@***.***> wrote:
I am having problems installing PyWinHook using wheels. I get the
following:
pyWinhook-1.6.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this
platform.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2222 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB85OUFg1eQ_3L9P4qKGWtdbpLzcAUUoks5vVkHcgaJpZM4aIIvc>
.
|
Using Windows 10 64-bit |
There are currently no Py3.6 wheels for pyWinhook 1.6.1 on PyPI (only for 2.7 and 3.7). I can try to publish some later tonight. In the meantime, you could use pyWinhook 1.6.0. |
Ah I see. No worries. I will switch to Py3.7 and go from there. |
@dvbridges I just published a Py3.6 wheel on PyPI. |
Thanks @hoechenberger ! |
@hoechenberger @peircej I just tried to install psychopy using pip on Python 2.7 and I have exactly this issue pip printed the following So is there a way I can skip this requirement, or install it another way with a different version? EDIT: I found the latest wheel here: |
But I got the same thing ....
I am also running Windows 10 64-bit but I have installed 32-bit python... |
I ended up getting swig and VC++ for python if anyone needs the wheel for pyWinhook 1.6.1 for Python 2.7 Windows 32-bit: |
Just now I tried running It seems like their latest release doesn't have a 3.9 wheel... could that be the reason? is there any workaround that? Thanks! Building wheels for collected packages: gevent, pyWinhook, dukpy
Building wheel for gevent (PEP 517) ... done
Created wheel for gevent: filename=gevent-21.1.0-cp39-cp39-win_amd64.whl size=1582608 sha256=e243762d198e9885343ee41c2dca6bfcef3c36e9bc3bbd055ba42e08025e5ae3
Stored in directory: c:\users\domma\appdata\local\pip\cache\wheels\9a\dd\25\12b2609ba7c52fb7ea73455cbc9e3f3054b880d8ad35f54433
Building wheel for pyWinhook (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Downloads\WPy64-3902\python-3.9.0.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"'; __file__='"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\domma\AppData\Local\Temp\pip-wheel-dtvakb92'
cwd: C:\Users\domma\AppData\Local\Temp\pip-install-tcdmu6ej\pywinhook\
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\aa hook.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\doc.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\example.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\HookManager.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\__init__.py -> build\lib.win-amd64-3.9\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
----------------------------------------
ERROR: Failed building wheel for pyWinhook
Running setup.py clean for pyWinhook
Building wheel for dukpy (setup.py) ... done
Created wheel for dukpy: filename=dukpy-0.2.3-cp39-cp39-win_amd64.whl size=1290230 sha256=b31430d2747f770b3f742c971ad92460115a65de66f224ece3ae4bbdc2587d64
Stored in directory: c:\users\domma\appdata\local\pip\cache\wheels\68\81\1c\587c6743986b3153a950f942e68a487e6c5a8873aa06680262
Successfully built gevent dukpy
Failed to build pyWinhook
Installing collected packages: pypiwin32, pyosf, opencv-python, arabic-reshaper, json-tricks, questplus, smmap, gitdb, gitpython, python-bidi, glfw, wxPython, pyglet, websocket-client, astunparse, freetype-py, pyqmix, zope.interface, zope.event, gevent, soundfile, macropy3, dukpy, javascripthon, msgpack-numpy, et-xmlfile, jdcal, openpyxl, esprima, python-gitlab, pyWinhook, PsychoPy, pyOpenSSL
Running setup.py install for pyWinhook ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Downloads\WPy64-3902\python-3.9.0.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"'; __file__='"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\domma\AppData\Local\Temp\pip-record-_5x4m_w1\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Downloads\WPy64-3902\python-3.9.0.amd64\Include\pyWinhook'
cwd: C:\Users\domma\AppData\Local\Temp\pip-install-tcdmu6ej\pywinhook\
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\aa hook.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\doc.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\example.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\HookManager.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\__init__.py -> build\lib.win-amd64-3.9\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
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\Downloads\WPy64-3902\python-3.9.0.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"'; __file__='"'"'C:\\Users\\domma\\AppData\\Local\\Temp\\pip-install-tcdmu6ej\\pywinhook\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\domma\AppData\Local\Temp\pip-record-_5x4m_w1\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Downloads\WPy64-3902\python-3.9.0.amd64\Include\pyWinhook' Check the logs for full command output. |
…rror: "command 'swig.exe' failed: No such file or directory", as suggested here: psychopy/psychopy#2222
hey @DominiqueMakowski, I had the same issue, just download the py39 wheel package from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pywinhook |
When performing developers install for PsychoPy 3.0.2 on Windows 10, the installation fails due to a pyWinhook build failure:
The text was updated successfully, but these errors were encountered: