Skip to content
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

AHK not found on PATH #13

Closed
sudo-MellowFellow opened this issue Aug 2, 2023 · 1 comment
Closed

AHK not found on PATH #13

sudo-MellowFellow opened this issue Aug 2, 2023 · 1 comment

Comments

@sudo-MellowFellow
Copy link

Traceback (most recent call last):
File "C:\Users\orsin\Desktop\AutoBTD6-main\replay.py", line 1, in
from helper import *
File "C:\Users\orsin\Desktop\AutoBTD6-main\helper.py", line 20, in
ahk = AHK()
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\engine.py", line 138, in init
transport = TransportClass(executable_path=executable_path, directives=directives)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 662, in init
super().init(executable_path=executable_path, directives=directives)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 325, in init
self._executable_path: str = _resolve_executable_path(executable_path=executable_path)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 291, in _resolve_executable_path
raise AhkExecutableNotFoundError(
ahk._sync.transport.AhkExecutableNotFoundError: Could not find AutoHotkey.exe on PATH. Provide the absolute path with the executable_path keyword argument or in the AHK_PATH environment variable. You may be able to resolve this error by installing the binary extra: pip install "ahk[binary]"

I installed ahk[binary] too but it didn't fix anything

@KendleMintJed
Copy link
Contributor

KendleMintJed commented Feb 28, 2024

The problem is that you do not have AutoHotKey added to your path variables.
I'd recommend adding it to your path.

You could also edit ahk = AHK() in helper.py line 20 to ahk = AHK(executable_path="C:\\Path\\To\\AutoHotkey.exe").

@ANRAR4 ANRAR4 closed this as completed Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants