NordVPN-switcher
NordVPN-switcher copied to clipboard
Not opening NordVPN
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)
~\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
~\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!
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. I am not. I tried running it as an administrator but still got the error. But it probably still might be something related to that.