philkr / gamehook

BSD 2-Clause "Simplified" License
123 stars 23 forks source link

Failed to load plugin 'python.hk' #6

Closed benjamintanweihao closed 5 years ago

benjamintanweihao commented 5 years ago

All the other plugins (capture.hk and server.hk) work fine, except for python.hk, where I get a Failed to load plugin 'python.hk' error. How do I debug this? I have successfully built pyhook too.

bradyz commented 5 years ago

If "LoadLibrary" fails, chances are the plugin is not able to find "python*.dll" at runtime.

To solve this, you'll have to add this directory to the windows environmental variable PATH through the control panel and restart your computer (env vars are reloaded by restart).

Since I'm using python installed by visual studio, I added

C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64

benjamintanweihao commented 5 years ago

It works! 🕺