CrazyIvan359 / mqttany

MQTTany is designed to make it easy to connect hardware on single board computers to your home automation solution.
https://crazyivan359.github.io/mqttany/index.html
MIT License
6 stars 6 forks source link

`os.getlogin` call fails when user doesn't have GPIO permissions #149

Open CrazyIvan359 opened 1 year ago

CrazyIvan359 commented 1 year ago

Discussed in https://github.com/CrazyIvan359/mqttany/discussions/141

The call to os.getlogin() when the user does not have GPIO permissions can fail with OSError: [Errno 6] No such device or address in some cases.

@jhuettner do remember if, when you created the mqttany user, they were a member of any groups other than mqttany?