eodag
eodag copied to clipboard
whoosh opened file
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.