I’m suffering through the same problem of trying to run an app with systemd that uses picarx.py.
It works fine from the CLI. Otherwise I’m getting the errno[6]
You said you got it mostly working. I’ve tried the fix of replacing getlogin and I moved the conf file to the project directory. Still no luck. Would you mind divulging your solution in a bit more detail?
Will need some time to get into the Pi (built it for my grandson and it’s at his house). I did modify sunfounders picarx.py in the init changing the line:
self.config_file = fileDB(config, 777,os.getlogin())
with:
self.config_fil = fileDB(config,777,getpass.getuser())
b/c that call is obe.
As far as starting it as a service I’ll have to keep looking but did get it to work.
Actually it seems to work now. Perhaps the os.getlogin() is all that’s needed.
I probably made too many changes so I reverted and just changed the os.getlogin().
I’m good now.
Cheers