You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run this wrapper because I don't have access to AHK here in my work, but have access to python. I installed python package ahk 0.14.1 and ahk-binary 1.1.33.9 but my pip packages are installed for my user ("Defaulting to user installation because normal site-packages is not writeable"). I would like to know if this user installation have some influence in me not being able to run the script even having the binary installed or if I'm missing something...
My pip list
from ahk import AHK, Hotkey
ahk = AHK()
key_combo = 'a' # Define an AutoHotkey key combonation
script = 'send hi' # Define an ahk script
hotkey = Hotkey(ahk, key_combo, script) # Create Hotkey
hotkey.start() # Start listening for hotkey
Here's the output
PS Microsoft.PowerShell.Core\FileSystem::\\sdp-ntx-fs\dados$\rodrigorme\Desktop\ahk> py teste.py
Traceback (most recent call last):
File "\\sdp-ntx-fs\dados$\rodrigorme\Desktop\ahk\teste.py", line 3, in <module>
ahk = AHK()
File "C:\Users\rodrigorme\AppData\Roaming\Python\Python310\site-packages\ahk\window.py", line 630, in __init__
super().__init__(*args, **kwargs)
File "C:\Users\rodrigorme\AppData\Roaming\Python\Python310\site-packages\ahk\mouse.py", line 61, in __init__
super().__init__(**kwargs)
File "C:\Users\rodrigorme\AppData\Roaming\Python\Python310\site-packages\ahk\gui.py", line 12, in __init__
super().__init__(*args, **kwargs)
File "C:\Users\rodrigorme\AppData\Roaming\Python\Python310\site-packages\ahk\script.py", line 89, in __init__
self.executable_path = _resolve_executable_path(executable_path)
File "C:\Users\rodrigorme\AppData\Roaming\Python\Python310\site-packages\ahk\script.py", line 49, in _resolve_executable_path
raise ExecutableNotFoundError(
ahk.script.ExecutableNotFoundError: 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]"
The text was updated successfully, but these errors were encountered:
I'm trying to run this wrapper because I don't have access to AHK here in my work, but have access to python. I installed python package ahk 0.14.1 and ahk-binary 1.1.33.9 but my pip packages are installed for my user ("Defaulting to user installation because normal site-packages is not writeable"). I would like to know if this user installation have some influence in me not being able to run the script even having the binary installed or if I'm missing something...
My pip list
Here's the code
Here's the output
The text was updated successfully, but these errors were encountered: