Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyahk not working
#1
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?
Reply
#2
Did you read the docs?:
Written for Python2.7, not currently py3k compatible.

And you are trying to install it on 3.8
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(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?
Reply
#4
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,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyahk autohotkey dll bsayles 0 1,829 Mar-15-2019, 02:59 AM
Last Post: bsayles

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020