Permission denied for .config/orochi/config.json
Closed this issue · 1 comments
tgr commented
Running orochi results in this error:
$ cd ~/Programs/orochi; python -m orochi.client
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/gtisza/Programs/orochi/orochi/client.py", line 734, in <module>
main()
File "/home/gtisza/Programs/orochi/orochi/client.py", line 731, in main
client.cmdloop()
File "/home/gtisza/Programs/orochi/orochi/client.py", line 168, in cmdloop
super(Client, self).cmdloop()
File "/usr/lib/python2.7/cmd.py", line 109, in cmdloop
self.preloop()
File "/home/gtisza/Programs/orochi/orochi/client.py", line 136, in preloop
self.config = ConfigFile()
File "/home/gtisza/Programs/orochi/orochi/client.py", line 72, in __init__
with open(self.filename, 'r') as configfile:
IOError: [Errno 13] Permission denied: u'/home/gtisza/.config/orochi/config.json'
$ ls -l /home/gtisza/.config/orochi/config.json
---x-wx-wT 1 gtisza gtisza 146 Sep 23 19:13 /home/gtisza/.config/orochi/config.json
After changing the file permissions to 666, orochi runs as expected.
dbrgn commented
Thanks for this bug report. The cause was a wrong usage of os.chmod()
.