Nyx does not have access to its cache folder unless it is run as root

Nyx does not have access to its cache folder unless it is run as root, When I use "sudo -u debian-tor nyx" I get a error  Unable to create a data directory at /root/.nyx ([Errno 13] Permission denied: '/root/.nyx'). By default the data directory should be a directory that is writable by debian-tor user.

Trac:
Username: Dbryrtfbcbhgf