-
Notifications
You must be signed in to change notification settings - Fork 51
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
Not opening NordVPN #21
Labels
enhancement
New feature or request
Comments
Hi Sam, Thanks for reporting this issue! This is probably a redundant question, but here it goes: are you the administrator of your work station and/or are you using a computer with some kind of additional security measures in place (e.g. a laptop from work or the like)? |
Thank you for the reply. |
MS-Jahan
added a commit
to MS-Jahan/NordVPN-switcher
that referenced
this issue
Nov 19, 2021
This will fix the issue here kboghe#21 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe it's an Anaconda compatibility issue, but I'm getting the following error:
You're using Windows.
Performing system check...
NordVPN installation check: ✓
NordVPN service check: ✓
Opening NordVPN app and disconnecting if necessary...
AttributeError Traceback (most recent call last)
~\anaconda3\lib\site-packages\psutil_common.py in wrapper(self)
448 # case 1: we previously entered oneshot() ctx
--> 449 ret = self._cache[fun]
450 except AttributeError:
AttributeError: _cache
During handling of the above exception, another exception occurred:
PermissionError Traceback (most recent call last)
~\anaconda3\lib\site-packages\psutil_pswindows.py in wrapper(self, *args, **kwargs)
678 try:
--> 679 return fun(self, *args, **kwargs)
680 except OSError as err:
~\anaconda3\lib\site-packages\psutil_common.py in wrapper(self)
451 # case 2: we never entered oneshot() ctx
--> 452 return fun(self)
453 except KeyError:
~\anaconda3\lib\site-packages\psutil_pswindows.py in exe(self)
765 else:
--> 766 exe = cext.proc_exe(self.pid)
767 if not PY3:
PermissionError: [WinError 24] The program issued a command but the command length is incorrect: '(originated from NtQuerySystemInformation)'
During handling of the above exception, another exception occurred:
AccessDenied Traceback (most recent call last)
in
----> 1 settings = initialize_VPN()
~\anaconda3\lib\site-packages\nordvpn_switcher\nordvpn_switch.py in initialize_VPN(stored_settings, save, area_input, skip_settings)
141 print("Opening NordVPN app and disconnecting if necessary...")
142 open_nord_win = subprocess.Popen(["nordvpn", "-d"],shell=True,cwd=cwd_path,stdout=DEVNULL)
--> 143 while ("NordVPN.exe" in (p.name() for p in psutil.process_iter())) == False:
144 time.sleep(windows_pause)
145 open_nord_win.kill()
~\anaconda3\lib\site-packages\nordvpn_switcher\nordvpn_switch.py in (.0)
141 print("Opening NordVPN app and disconnecting if necessary...")
142 open_nord_win = subprocess.Popen(["nordvpn", "-d"],shell=True,cwd=cwd_path,stdout=DEVNULL)
--> 143 while ("NordVPN.exe" in (p.name() for p in psutil.process_iter())) == False:
144 time.sleep(windows_pause)
145 open_nord_win.kill()
~\anaconda3\lib\site-packages\psutil_init_.py in name(self)
632 if WINDOWS and self._name is not None:
633 return self._name
--> 634 name = self._proc.name()
635 if POSIX and len(name) >= 15:
636 # On UNIX the name gets truncated to the first 15 characters.
~\anaconda3\lib\site-packages\psutil_pswindows.py in name(self)
748 if self.pid == 4:
749 return "System"
--> 750 return os.path.basename(self.exe())
751
752 @wrap_exceptions
~\anaconda3\lib\site-packages\psutil_pswindows.py in wrapper(self, *args, **kwargs)
679 return fun(self, *args, **kwargs)
680 except OSError as err:
--> 681 raise convert_oserror(err, pid=self.pid, name=self._name)
682 return wrapper
683
AccessDenied: psutil.AccessDenied (pid=8852)
I'd appreciate any help!
The text was updated successfully, but these errors were encountered: