Open m3ph1 opened 2 years ago
Did you forget to install Wireguard? It seems like the "wg genkey" command couldn't be executed.
FYI I dealt with the same issue, where wg
wouldn't execute from CLI (PowerShell/cmd).
Looks to me like the WireGuard install path is appended to the System PATH environment variable, and only works if you run CLI in Administrator mode.
The more obvious indicator of failure is when a Console window pops up blank and closes after the final step generate-config.py
is executed.
When run in Administrator mode, the Console window actually prompts you to select which VPN Server location you want to generate settings for and successfully generates a file after closing, instead of appearing blank then closing.
Looks like WireGuard installer didn't add itself to PATH, so the solution to this is to run the following right before executing generate-config.py
:
set PATH=%PATH%;C:\Program Files\WireGuard
(Assuming you installed WireGuard to the above path). It will execute fine then.
I grabbed pia-wg today and installed python 3.10.2 and follow ed the readme.
Generate-config.py fails with "FileNotFoundError: [WinError 2] The system cannot find the file specified" and i have no idea why.
Here's my whole console output: