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
Python: 3.4.1
psutil: HEAD as of 08/21/2014
OS: Windows XP 32-bit and 64-bit
psutil.Process(4).name() returns 'System'
psutil.Process(4).exe() throws an exception
>>> psutil.Process(4).exe()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "\psutil\psutil\__init__.py", line 533, in exe
exe = self._proc.exe()
File "\psutil\psutil\_pswindows.py", line 206, in wrapper
return fun(self, *args, **kwargs)
File "\psutil\psutil\_pswindows.py", line 248, in exe
return _convert_raw_path(cext.proc_exe(self.pid))
OSError: [WinError 0] The operation completed successfully
>>> psutil.Process(4).as_dict()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "\psutil\psutil\__init__.py", line 414, in as_dict
ret = attr()
File "\psutil\psutil\__init__.py", line 533, in exe
exe = self._proc.exe()
File "\psutil\psutil\_pswindows.py", line 206, in wrapper
return fun(self, *args, **kwargs)
File "\psutil\psutil\_pswindows.py", line 248, in exe
return _convert_raw_path(cext.proc_exe(self.pid))
FileNotFoundError: [WinError 18] There are no more files
The text was updated successfully, but these errors were encountered:
Under psutil 1.2.1 it correctly throws an AccessDenied
>>> psutil.Process(4).exe()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "psutil\_common.py", line 85, in __get__
ret = self.func(instance)
File "psutil\__init__.py", line 387, in exe
return guess_it(fallback=err)
File "psutil\__init__.py", line 380, in guess_it
raise fallback
psutil._error.AccessDenied: (pid=4)
Python: 3.4.1
psutil: HEAD as of 08/21/2014
OS: Windows XP 32-bit and 64-bit
psutil.Process(4).name() returns 'System'
psutil.Process(4).exe() throws an exception
The text was updated successfully, but these errors were encountered: