Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package not working #1

Open
wgroenewold opened this issue Nov 28, 2018 · 0 comments
Open

Package not working #1

wgroenewold opened this issue Nov 28, 2018 · 0 comments

Comments

@wgroenewold
Copy link

python3 webservice.py
Traceback (most recent call last):
  File "webservice.py", line 27, in <module>
    main()
  File "webservice.py", line 18, in main
    cherrypy.config.update(CONFIG)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/_cpconfig.py", line 157, in update
    super(Config, self).update(config)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 130, in update
    self._apply(Parser.load(config))
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/_cpconfig.py", line 167, in _apply
    super(Config, self)._apply(config)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 142, in _apply
    self.namespaces(config)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 92, in __call__
    handler(k, v)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/__init__.py", line 364, in <lambda>
    config.namespaces['log'] = lambda k, v: setattr(log, k, v)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/_cplogging.py", line 385, in access_file
    self._set_file_handler(self.access_log, newvalue)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/_cplogging.py", line 349, in _set_file_handler
    self._add_builtin_file_handler(log, filename)
  File "/Users/wouter/git/glassfrog/venv/lib/python3.7/site-packages/cherrypy/_cplogging.py", line 335, in _add_builtin_file_handler
    h = logging.FileHandler(fname)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1041, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1070, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/wouter/git/glassfrog/logs/access.log'

What to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant