Issue #570 resolved

import cherrypy fails due to insufficient privileges

guest
created an issue

I just downloaded the 3.0.0 beta, installed it as 'root', then went to import it as a user. It attempts to open a logfile in its library directory:

Python 2.4.1 (#1, Sep 13 2005, 00:39:20) [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import cherrypy Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/cherrypy/init.py", line 120, in ? log.error_file = _os.path.join(_os.getcwd(), _localdir, "error.log") File "/usr/lib/python2.4/site-packages/cherrypy/_cplogging.py", line 132, in _set_error_file self._set_file_handler(self.error_log, newvalue) File "/usr/lib/python2.4/site-packages/cherrypy/_cplogging.py", line 120, in _set_file_handler self._add_builtin_file_handler(log, filename) File "/usr/lib/python2.4/site-packages/cherrypy/_cplogging.py", line 105, in _add_builtin_file_handler h = logging.FileHandler(fname) File "/usr/lib/python2.4/logging/init.py", line 727, in init StreamHandler.init(self, open(filename, mode)) IOError: [Errno 13] Permission denied: '/usr/lib/python2.4/site-packages/cherrypy/error.log'

Regards, Pat Maupin

Comments (2)

  1. Log in to comment