Installing from pypi and after google authentication, there appears to be some unhandled exceptions.
(venv) jacobmiller22:chronolog-test/ $ python3 -m chronolog [19:07:13]
Using config file: /home/jacobmiller22/.chronolog/config.json
Using Google Drive as the log destination
Please visit this URL: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=445106395721-vgod49ld0oiacrvl4nfkmul4q7hjfmq0.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&state=oxl5sMI9Ki1v3P5BlswTw0zL57CMUS&access_type=offline
tcgetpgrp failed: Not a tty
Logging for 2022-11-13
Reading from standard input. Press Ctrl+D to finish.
test
Searching drive for log for group: 2022-11-13
Log not found, creating new log...
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/chronolog/__main__.py", line 5, in <module>
main()
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/chronolog/cli.py", line 363, in main
success = app.upload_log(date, log_contents)
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/chronolog/chronolog.py", line 60, in upload_log
self._logger.upload_log(date, contents)
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/chronolog/api/google.py", line 292, in upload_log
target_log_id = self.__create_file(ds=ds, title=group, parents=[self._config.get(
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/chronolog/api/google.py", line 264, in __create_file
file = ds.files().create(body=file_metadata, fields='id').execute()
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/jacobmiller22/Projects/chronolog-test/venv/lib/python3.8/site-packages/googleapiclient/http.py", line 938, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "File not found: 1YtvM61V2z83PZshUdXMl9wQxHxC8t9UM.". Details: "[{'domain': 'global', 'reason': 'notFound', 'message': 'File not found: 1YtvM61V2z83PZshUdXMl9wQxHxC8t9UM.', 'locationType': 'parameter', 'location': 'fileId'}]">