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
psutil.AccessDenied: psutil.AccessDenied (pid=1) #539
Comments
The terminator was installed to my own folder, not system folder. |
That looks like a problem in your installed version of psutil. What section of the INSTALL doc did you follow? The PPA install, or the Source install? |
source install, yes, I have installed psutils myself. |
Hmm... Can you run |
Here is the result:
no ibus-daemon process found here. |
OK, I still can't reproduce this. Can you try this?
and
|
Thanks for your such details steps, here is the output:
|
I still can't reproduce this at all, even though I have the exact same version of python and psutil. Are you running it in some kind of container, like a flatpak, or snap, or docker or something? |
I know why this is happening and how to reproduce this issue, as I work at the IT dept of the same company where @fanghuaqi works. He works on a shared workstation where To reproduce this issue, first execute with root permission: mount -o remount,rw,nosuid,nodev,noexec,relatime,hidepid=1 /proc Then start I guess it can be fixed by ignoring all diff terminator.bak /usr/bin/terminator
61,62c61,68
< ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
< ibus_running = len(ibus_running) > 0
---
> ibus_running = False
> for p in psutil.process_iter():
> try:
> if p.name() == 'ibus-daemon' and p.username() == username:
> ibus_running = True
> break
> except:
> pass You might want to only Our system information, if relevant:
|
Wow, that's some lockdown. I'll work that into a PR. That code looks good, but needs more to catch exceptions more specifically, as you mentioned. Thanks for helping @fanghuaqi and I out with this. |
Before opening an issue, please try starting terminator with an empty config
file, by issuing
terminator -u -g /dev/null
and see if it starts normally.If it does, and you still want to open the bug, then please attach the
config file, usually found at
$HOME/.config/terminator/config
to the issueFill out as many of these fields as you can
Describe the bug
A clear and concise description of what the bug is.
Open built terminator by following INSTALL.md, and met this this issue:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: