mdmparis / defense-finder

Systematic search of all known anti-phage systems.
GNU General Public License v3.0
76 stars 13 forks source link

Errno 39: Directory not empty: 'Cas' #43

Closed amorrod closed 5 months ago

amorrod commented 10 months ago

Hello everyone, When I run defense-finder, I get this error but only with some FASTA files. All the output files are generated correctly. I fear that I may be losing some Cas systems from these input genomes. The resulting error lines are these:

2024-01-04 11:34:54 | INFO | Received file prokka_fecR/fecR_all.faa 2024-01-04 11:34:54 | INFO | Running DefenseFinder 2024-01-04 11:35:09 | INFO | Post-treatment of the data 2024-01-04 11:35:13 | INFO | Analysis results were written to /home/amorrod/fecR_df Traceback (most recent call last): File "/home/amorrod/anaconda3/envs/defense-finder/bin/defense-finder", line 8, in sys.exit(cli()) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/click/core.py", line 1128, in call return self.main(args, kwargs) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/click/core.py", line 754, in invoke return __callback(args, **kwargs) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/site-packages/defense_finder_cli/main.py", line 148, in run shutil.rmtree(tmp_dir) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/shutil.py", line 494, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/shutil.py", line 436, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/home/amorrod/anaconda3/envs/defense-finder/lib/python3.7/shutil.py", line 434, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd) OSError: [Errno 39] Directory not empty: 'Cas'

I checked the created directory in the tmp folder and it was empty. Thank you in advance for your help.

github-actions[bot] commented 8 months ago

Stale issue message

github-actions[bot] commented 6 months ago

This issue has been inactive for 60 days and is now marked as stale. It will be closed in 7 days without further activity.