2011-07-18, 19:36
I keep getting an error message below. I am on ubuntu 10.04
I installed it like below
git clone https://github.com/rembo10/headphones.git /home/xbmc/headphones
browse to folder and then double cllick on Headphones.py and run it.
and I try to go to http://192.168.1.11:8181/home and get the below
I then run from terminal and get the below
How do I set permissions? and what files/folders need it? Also how do I set up the init.d script so that headphones launches on reboot?
I installed it like below
git clone https://github.com/rembo10/headphones.git /home/xbmc/headphones
browse to folder and then double cllick on Headphones.py and run it.
and I try to go to http://192.168.1.11:8181/home and get the below
Quote:500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/music/cherrypy/_cprequest.py", line 645, in respond
File "/music/cherrypy/lib/encoding.py", line 188, in __call__
File "/music/cherrypy/_cpdispatch.py", line 29, in __call__
File "/music/headphones/webserve.py", line 38, in home
OperationalError: unable to open database file
I then run from terminal and get the below
Quote:xbmc@xbmc-desktop:~$ cd /home/xbmc/headphones
xbmc@xbmc-desktop:~/headphones$ python Headphones.py
Traceback (most recent call last):
File "Headphones.py", line 105, in <module>
main()
File "Headphones.py", line 73, in main
headphones.initialize()
File "/home/xbmc/headphones/headphones/__init__.py", line 224, in initialize
logger.headphones_log.initLogger(quiet=QUIET)
File "/home/xbmc/headphones/headphones/logger.py", line 29, in initLogger
filehandler = handlers.RotatingFileHandler(self.filename, maxBytes=self.max_size, backupCount=self.max_files)
File "/usr/lib/python2.6/logging/handlers.py", line 107, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/xbmc/headphones/logs/headphones.log'
How do I set permissions? and what files/folders need it? Also how do I set up the init.d script so that headphones launches on reboot?