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

problem when running as superuser #49

Open
manjh opened this issue Sep 13, 2023 · 0 comments
Open

problem when running as superuser #49

manjh opened this issue Sep 13, 2023 · 0 comments

Comments

@manjh
Copy link

manjh commented Sep 13, 2023

I installed following the instructions. After a bit of fiddling it works OK, I can see variables in Domoticz changing and the values match my Omnik PV.
One thing remains: I get a lot of messages in /var/,mail/mail and /var/mail/pi.
Turns out it has a problem finding the "six" module.
When I run LiveStats.py from the console, it runs flawless when the command is issued without sudo: "python LiveStats.py". Values show up on the console.
When I run it as "sudo python LiveStats.py", it fails and complains about "six".
So apparently when run from the crontab, it also runs with sudo rights.

I tried removing and re-installing the six package, but no result.
Any ideas? How can I correct this?
For the moment, I log on to my Pi every few days to get rid of the mail files. I could automate this in a cronjob, but it feels wrong.

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

No branches or pull requests

1 participant