Error when running Ancile for the first time
Closed this issue · 0 comments
minoskt commented
File "app.py", line 10, in <module>
from src import logger_setup
File "/Users/minoskt/Projects/me-box/ancile/src/logger_setup.py", line 8, in <module>
debug_file = logging.FileHandler('logs/debug.log')
File "/anaconda3/lib/python3.7/logging/__init__.py", line 1092, in __init__
StreamHandler.__init__(self, self._open())
File "/anaconda3/lib/python3.7/logging/__init__.py", line 1121, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/minoskt/Projects/me-box/ancile/logs/debug.log'
Fix is easy, just create the directory logs
, but would be better to address this in the code.