Skip to content
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

About Error FileNotFoundError: [Errno 2] No such file or directory: '/proc/12825/stat' the some suggest #2418

Open
IT-IvDragon opened this issue May 20, 2024 · 1 comment
Labels

Comments

@IT-IvDragon
Copy link

when I was useing the function process_iter discover a not myself can catch the error。
For errors like FileNotFoundError: [Errno 2] No such file or directory: '/proc/xxx/stat'
I searched for problems in lssues , but found that the latest version didn't fix them. Through the source code found that this function only catch the NoSuchProcess exception,and this error I think is a problem with pids functino,pids from /proc dir fetch a unusua path,lead to open the path /proc/xxx/stat raised an exception,so we can do try/catch the FileNotFoundError error at the open file location。

@giampaolo
Copy link
Owner

I cannot understand much from your report. Please paste your code and the full traceback message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants