geronimp / enrichM

Toolbox for comparative genomics of MAGs
81 stars 22 forks source link

Error receiving while generating database #132

Open jayramr opened 2 years ago

jayramr commented 2 years ago

Hello team,

I'm getting below error while generating the database for enrichm. Please advise how to fix this error.

root@54a75ce76f9f:/# enrichm data --create
/usr/local/lib/python3.6/site-packages/fuzzywuzzy/fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
  warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
[2022-08-01 13:09:23 PM] INFO: Command: /usr/local/bin/enrichm data --create
[2022-08-01 13:09:23 PM] INFO: Running the data pipeline
[2022-08-01 13:09:23 PM] INFO: Database location: /root/databases
[2022-08-01 13:09:25 PM] INFO: EnrichM database not detected in database directory (/root/databases). Downloading database.
[2022-08-01 13:09:25 PM] INFO: Downloading new database: enrichm_database_v10.tar.gz
[2022-08-01 13:29:42 PM] INFO: Decompressing new database
[2022-08-01 13:32:45 PM] INFO: Cleaning up
Traceback (most recent call last):
  File "/usr/local/bin/enrichm", line 351, in <module>
    run.run_enrichm(args, sys.argv)
  File "/usr/local/lib/python3.6/site-packages/enrichm/run.py", line 413, in run_enrichm
    pipeline(args)
  File "/usr/local/lib/python3.6/site-packages/enrichm/run.py", line 281, in run_data
    d.do(args.uninstall, args.create)
  File "/usr/local/lib/python3.6/site-packages/enrichm/data.py", line 105, in do
    if version_local!=version_remote:
UnboundLocalError: local variable 'version_local' referenced before assignment
 cat  /root/databases/VERSION
enrichm_database_v10.tar.gz

Size currently downloaded

17G    /root/databases/enrichm_database_v10

Thanks Jaya