eodag icon indicating copy to clipboard operation
eodag copied to clipboard

whoosh opened file

Open sbrunato opened this issue 1 year ago • 0 comments

Whoosh index files to not seem to be properly closed. Using lsof +D ~/.config/eodag/.index we can see that a *.seg file stays opened after using guess_product_type().

This can cause an error when trying to remove the directory on windows:

  self = <TemporaryDirectory 'D:\\a\\eodag\\eodag\\.tox\\py37\\tmp\\tmp3vn9c2q2'>
  
      def cleanup(self):
          if self._finalizer.detach():
  >           _shutil.rmtree(self.name)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\eodag\\eodag\\.tox\\py37\\tmp\\tmp3vn9c2q2\\.config\\eodag\\.index\\MAIN_3urmr60f1bed1akw.seg'

Error occurred while attempting to test guess_product_type through cli.

sbrunato avatar Nov 04 '22 16:11 sbrunato