Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #570 (defect)

Opened 2 years ago

Last modified 2 years ago

import cherrypy fails due to insufficient privileges

Status: closed (fixed)

Reported by: guest Assigned to: rdelon
Priority: normal Milestone: 3.0
Component: CherryPy code Keywords:
Cc:

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

Change History

09/20/06 23:55:37: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.
  • description changed.

This was already fixed in [1335].

Hosted by WebFaction

Log in as guest/cpguest to create tickets