Kresus fails to load on first start after trying to open `/usr/lib/node_modules/kresus/build/server/weboob/fakemodules/modules.list` with write access
This is using 0.13.1.
When starting Kresus (first time ever):
[2018-04-19T17:18:52.371] [INFO] sources/weboob - exited with code 1.
[2018-04-19T17:18:52.371] [INFO] sources/weboob - Command returned an error code.
[2018-04-19T17:18:52.374] [ERROR] sources/weboob - When getting Weboob version: KError: Is weboob correctly installed? Unknown exception raised: No module named weboob.capabilities.base.
Traceback (most recent call last):
File "/usr/lib/node_modules/kresus/build/server/weboob/main.py", line 111, in <module>
from weboob.capabilities.base import empty
ImportError: No module named weboob.capabilities.base
And a bit later during start:
[2018-04-19T17:20:45.830] [INFO] sources/weboob - Command returned an error code.
[2018-04-19T17:20:45.830] [ERROR] sources/weboob - When getting Weboob version: KError: Is weboob installed? Unknown exception raised: [Errno 13] Permission denied: '/usr/lib/node_modules/kresus/build/server/weboob/fakemodules/modules.list'.
Traceback (most recent call last):
File "/usr/lib/node_modules/kresus/build/server/weboob/main.py", line 635, in <module>
'weboob-data'
File "/usr/lib/node_modules/kresus/build/server/weboob/main.py", line 219, in __init__
self.update()
File "/usr/lib/node_modules/kresus/build/server/weboob/main.py", line 294, in update
self.weboob.update(progress=DummyProgress())
File "/usr/lib/python2.7/site-packages/weboob/core/ouiboube.py", line 394, in update
self.repositories.update(progress)
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 633, in update
self.update_repositories(progress)
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 600, in update_repositories
repository.retrieve_index(self.browser, repo_path)
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 176, in retrieve_index
self.build_index(self.localurl2path(), filename)
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 310, in build_index
self.save(filename)
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 353, in save
with open_for_config(filename) as f:
File "/usr/lib/python2.7/site-packages/weboob/core/repositories.py", line 48, in open_for_config
return open(filename, 'wb')
IOError: [Errno 13] Permission denied: '/usr/lib/node_modules/kresus/build/server/weboob/fakemodules/modules.list'