haklein / certabo-lichess

lichess.org board API client for the CERTABO physical USB chess board
27 stars 8 forks source link

data path not created when it doesn't exist #1

Closed haklein closed 4 years ago

haklein commented 4 years ago

Traceback (most recent call last): File "./certabo-lichess.py", line 49, in os.path.join(CERTABO_DATA_PATH, "certabo-lichess.log"), backupCount=12 File "/usr/lib/python3.7/logging/handlers.py", line 199, in init BaseRotatingHandler.init(self, filename, 'a', encoding, delay) File "/usr/lib/python3.7/logging/handlers.py", line 54, in init logging.FileHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python3.7/logging/init.py", line 1092, in init StreamHandler.init(self, self._open()) File "/usr/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: '/home/pi/.local/share/GUI/certabo-lichess.log'