Python Forum
pyahk not working - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pyahk not working (/thread-24536.html)



pyahk not working - Zenot1c - Feb-18-2020

Im sorry if this is in the wrong place, please delete if it is:
Whenever i try to "pip install pyahk" it gives this error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-tt33d3er\\pyahk\\setup.py'"'"'; __file__='"'"'C:\\Users\\ User\\AppData\\Local\\Temp\\pip-install-tt33d3er\\pyahk\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-install-tt33d3er\pyahk\pip-egg-info'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-tt33d3er\pyahk\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-tt33d3er\pyahk\setup.py", line 3, in <module>
import ahk
File "C:\Users\User\AppData\Local\Temp\pip-install-tt33d3er\pyahk\ahk\__init__.py", line 7, in <module>
from script import Function, Script
ModuleNotFoundError: No module named 'script'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

There is no info online, any ideas?


RE: pyahk not working - buran - Feb-18-2020

Did you read the docs?:
Written for Python2.7, not currently py3k compatible.

And you are trying to install it on 3.8


RE: pyahk not working - Zenot1c - Feb-18-2020

(Feb-18-2020, 01:13 PM)buran Wrote: Did you read the docs?:
Written for Python2.7, not currently py3k compatible.

And you are trying to install it on 3.8

Is there a way to downgrade back to python2.7 in order to use this, and keep 3.8 installed for future projects? or will i need to entirely uninstall python3.8 and then reinstall down the line?


RE: pyahk not working - Larz60+ - Feb-18-2020

this is recent and I think does same things: https://pypi.org/project/ahk/

The module that you are trying to use id 7 years old,