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 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:
(venv2) D:\pia-wg-master\pia-wg-master>generate-config.py
Traceback (most recent call last):
File "D:\pia-wg-master\pia-wg-master\generate-config.py", line 9, in
pia.generate_keys()
File "D:\pia-wg-master\pia-wg-master\piawg.py", line 54, in generate_keys
self.privatekey = subprocess.run(['wg', 'genkey'], stdout=subprocess.PIPE, encoding="utf-8").stdout.strip()
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
The text was updated successfully, but these errors were encountered:
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.
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:
The text was updated successfully, but these errors were encountered: