Skip to content

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

Closed
@eight04

Description

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)

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions