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

Can not get name, memory on windows (3.0.1) #636

Closed
eight04 opened this issue Jun 19, 2015 · 3 comments
Closed

Can not get name, memory on windows (3.0.1) #636

eight04 opened this issue Jun 19, 2015 · 3 comments
Labels

Comments

@eight04
Copy link

eight04 commented Jun 19, 2015

In 2.2.1, I only get AccessDenied from process.name(). After updating to 3.0.1, process.memory_percent() will also raise AccessDenied error.

Also, although 3.0.0 should use the second method to get process name on windows, it always raises AccessDenied from self.exe().

https://github.com/giampaolo/psutil/blob/master/psutil/_pswindows.py#L291-L294

I guess it should change to:

except AccessDenied:
    return cext.proc_name(self.pid)
@giampaolo
Copy link
Owner

I checked the differences of memory related functions with git diff release-2.2.1 release-3.0.1 and they are basically the same: I can't see why we would get AD on 3.0.1 but not on 2.2.1. If you're sure about that then please provide a test script or more debugging info.

I guess it should change to:

no, it should not

@eight04
Copy link
Author

eight04 commented Jun 19, 2015

@giampaolo
Copy link
Owner

This was a silly error (a typo). :-
Fixed now.

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