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
Reproduce -
for proc in psutil.process_iter():
proc.get_open_files()
Result -
----
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/psutil/_pslinux.py", line 463, in wrapper
return fun(self, *args, **kwargs)
File "/usr/lib/python3.3/site-packages/psutil/_pslinux.py", line 908, in
get_open_files
files = os.listdir("/proc/%s/fd" % self.pid)
PermissionError: [Errno 13] Permission denied: '/proc/1/fd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./singleton_script.py", line 6, in <module>
proc.get_open_files()
File "/usr/lib/python3.3/site-packages/psutil/__init__.py", line 808, in
get_open_files
return self._platform_impl.get_open_files()
File "/usr/lib/python3.3/site-packages/psutil/_pslinux.py", line 472, in wrapper
raise AccessDenied(self.pid, self._process_name)
psutil._error.AccessDenied: (pid=1)
----
Expected a non private error (i.e. no '_error')
I killed long deprecated errors.py and _errors.py modules in revision
c001b5f9a258 .
Exception classes now live in "psutil" namespace only.
Closing and thanks.
From [email protected] on February 16, 2014 17:05:11
Original issue: http://code.google.com/p/psutil/issues/detail?id=479
The text was updated successfully, but these errors were encountered: