Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Databases' object has no attribute 'REF_DIR' #101

Open
Thexiyang opened this issue Mar 30, 2020 · 8 comments
Open

AttributeError: 'Databases' object has no attribute 'REF_DIR' #101

Thexiyang opened this issue Mar 30, 2020 · 8 comments
Labels

Comments

@Thexiyang
Copy link

Thank for the nice tool! I downloaded the database manually and specified its location. However, I when used enirchm annotate, there is one error message come out. It reads as follows. Could you give me some hints on how I can solve it? Thanks!

-bash-4.2$ enrichm annotate --genome_files reference.faa
[2020-03-30 06:44:36 AM] INFO: Command:enrichm annotate --genome_files reference.faa
[2020-03-30 06:44:36 AM] INFO: Running the annotate pipeline
Traceback (most recent call last):
  File "/enrichm/bin/enrichm", line 342, in <module>
    run.run_enrichm(args, sys.argv)
  File "/enrichm/lib/python3.7/site-packages/enrichm/run.py", line 305, in run_enrichm
    args.threads, args.parallel, args.suffix, args.light)
  File "/enrichm/lib/python3.7/site-packages/enrichm/annotate.py", line 122, in __init__
    self.databases = Databases()
  File "/enrichm/lib/python3.7/site-packages/enrichm/databases.py", line 98, in __init__
    self.KO_DB = os.path.join(self.REF_DIR, self.KO_DB_NAME + self.DMND_SUFFIX)
AttributeError: 'Databases' object has no attribute 'REF_DIR'
@geronimp
Copy link
Owner

Hi there,

Thank you for using enrichm!

Apologies for the unclear error message, would you be able to try and run enrichm annotate with an annotate option (either --ko --cazy --tigrfam or --pfam) and let me know if this error still occurs?

Thanks,

Joel

@Thexiyang
Copy link
Author

Thanks for the reply. I tried. Same issue.

@geronimp
Copy link
Owner

Would you please be able to confirm for me that you are using version 0.5.0?

@geronimp geronimp added the bug label Mar 31, 2020
@Thexiyang
Copy link
Author

Yes. I installed using conda and then upgraded to 0.5.0 using pip. It looks it did not look for the database.

@jianshu93
Copy link

I have the same issue with 0.5.0 but. Is it solved?Thanks

@liupfskygre
Copy link

Hi,
the same issue here, is this being solved? thanks.

Version: 0.5.0

Traceback (most recent call last):
  File "/home/dell/.conda/envs/enrichm/bin/enrichm", line 342, in <module>
    run.run_enrichm(args, sys.argv)
  File "/home/dell/.conda/envs/enrichm/lib/python3.7/site-packages/enrichm/run.py", line 305, in run_enrichm
    args.threads, args.parallel, args.suffix, args.light)
  File "/home/dell/.conda/envs/enrichm/lib/python3.7/site-packages/enrichm/annotate.py", line 122, in __init__
    self.databases = Databases()
  File "/home/dell/.conda/envs/enrichm/lib/python3.7/site-packages/enrichm/databases.py", line 98, in __init__
    self.KO_DB = os.path.join(self.REF_DIR, self.KO_DB_NAME + self.DMND_SUFFIX)
AttributeError: 'Databases' object has no attribute 'REF_DIR'

@jianshu93
Copy link

i do not think it's solved. Still cannot use it.

@mengyuan09876
Copy link

AttributeError: 'Databases' object has no attribute 'REF_DIR' same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants