mdmparis / defense-finder

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

OSError: [Errno 39] Directory not empty: 'Cas'[BUG] #63

Closed chengzhongyi8 closed 3 weeks ago

chengzhongyi8 commented 3 months ago

OSError: [Errno 39] Directory not empty: 'Cas' Hi there,

The tool runs well on test data (df_test_prot.faa). However, when I used for my own data, I encountered an error:

Traceback (most recent call last):
  File "/home/ampere/.conda/envs/defensefinder/bin/defense-finder", line 8, in <module>
    sys.exit(cli())
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/site-packages/defense_finder_cli/main.py", line 152, in run
    shutil.rmtree(tmp_dir)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/shutil.py", line 494, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/home/ampere/.conda/envs/defensefinder/lib/python3.7/shutil.py", line 436, in _rmtree_safe_fd
    onerror(os.rmdir, fullname, sys.exc_info())
  File "/home/ampere/.conda/envs/defensefinder/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'

Input is a faa file by prodigal. Can you help me solve this error? Thanks in advance!

github-actions[bot] commented 1 month 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.