fortysix2ahead / tracs

Command line application for managing GPS tracks
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Exception when running test cases #352

Open fortysix2ahead opened 3 weeks ago

fortysix2ahead commented 3 weeks ago

Doesn't hurt, but should not happen. Setup of test cases needs to be more resilient.

Exception ignored in atexit callback: <bound method ApplicationContext.dump_state of
Traceback (most recent call last):
  File "tracs/tracs/config.py", line 499, in dump_state
    self._dump_settings( self.state, STATE_FILENAME )
  File "tracs/tracs/config.py", line 503, in _dump_settings
    self.config_fs.writetext( filename, s )
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/base.py", line 1518, in writetext
    self.open(
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/osfs.py", line 643, in open
    with convert_os_errors("open", path):
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/error_tools.py", line 89, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "tracs/venv/python310/lib/python3.10/site-packages/six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/osfs.py", line 647, in open
    return io.open(
fs.errors.ResourceNotFound: resource 'state.yaml' not found
Exception ignored in atexit callback: <bound method ActivityDb.close of <tracs.db.ActivityDb object at 0x1076f1180>>
Traceback (most recent call last):
  File "tracs/tracs/db.py", line 181, in close
    self.save()
  File "tracs/tracs/db.py", line 177, in save
    copy_file_if( self.overlay_fs, f'/{f}', self.underlay_fs, f'/{f}', 'newer' )
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/copy.py", line 223, in copy_file_if
    copy_file_internal(
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/copy.py", line 279, in copy_file_internal
    _copy_locked()
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/copy.py", line 268, in _copy_locked
    with dst_fs.openbin(dst_path, "w") as write_file:
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/osfs.py", line 353, in openbin
    with convert_os_errors("openbin", path):
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/error_tools.py", line 89, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "tracs/venv/python310/lib/python3.10/site-packages/six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "tracs/venv/python310/lib/python3.10/site-packages/fs/osfs.py", line 356, in openbin
    binary_file = io.open(
fs.errors.ResourceNotFound: resource '/activities.json' not found