enrichM icon indicating copy to clipboard operation
enrichM copied to clipboard

0.5.1 run error

Open jianshu93 opened this issue 3 years ago • 2 comments

enrichm annotate --output ./dereplicated_genomes_enrichm_annotate --genome_directory ./dereplicated_genomes --ko --pfam --tigrfam --hypothetical --cazy --threads 2 --parallel 10

error:

Traceback (most recent call last): File "/vd03/home/jianshu/anaconda33/install_with_tear/envs/enrichm/bin/enrichm", line 4, in import('pkg_resources').run_script('enrichm==0.5.1', 'enrichm') File "/vd03/home/jianshu/anaconda33/install_with_tear/envs/enrichm/lib/python3.7/site-packages/pkg_resources/init.py", line 665, in run_script self.require(requires)[0].run_script(script_name, ns) File "/vd03/home/jianshu/anaconda33/install_with_tear/envs/enrichm/lib/python3.7/site-packages/pkg_resources/init.py", line 1463, in run_script exec(code, namespace, namespace) File "/vd03/home/jianshu/anaconda33/install_with_tear/envs/enrichm/lib/python3.7/site-packages/enrichm-0.5.1-py3.7.egg/EGG-INFO/scripts/enrichm", line 359, in r.main(args, sys.argv) AttributeError: 'Run' object has no attribute 'main' Command exited with non-zero status 1

jianshu93 avatar Sep 24 '20 16:09 jianshu93

I have the same issue

haiyuan-cai avatar Dec 01 '20 17:12 haiyuan-cai

add def main() to replace the if main line and also add if line and a new main() at the end of enrichm script

jianshu93 avatar Jan 09 '21 04:01 jianshu93