oschwengers / bakta

Rapid & standardized annotation of bacterial genomes, MAGs & plasmids
GNU General Public License v3.0
448 stars 55 forks source link

Bakta Web Does Not Work #291

Closed Dabiguina94 closed 4 months ago

Dabiguina94 commented 5 months ago

HI! I was currently using Bakta Web and worked great! But now every time I submit any sequence it says "ERROR" but does not says which one or what I am doing wrong. There is any way can I solve this? Also when I use Bakta in my terminal, at the beginning was working OK, but now it does not. I installed Bakta with Conda

Traceback (most recent call last): File "/home/admi/.local/bin/bakta", line 8, in sys.exit(main()) ^^^^^^ File "/home/admi/.local/lib/python3.11/site-packages/bakta/main.py", line 228, in main cdss = feat_cds.predict(genome, contigs_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/admi/.local/lib/python3.11/site-packages/bakta/features/cds.py", line 72, in predict orffinder = pyrodigal.OrfFinder(trainings_info, meta=prodigal_metamode, closed=False, mask=True) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pyrodigal' has no attribute 'OrfFinder'

Please help!

DariaGI commented 5 months ago

Hi, I have the same problem after fixing the issuie with diamond by version downgrading.

oschwengers commented 5 months ago

Hi, thanks a lot for reporting! Indeed, we had an issue in our backend that is already fixed by now. We re-scheduled all jobs of the last 24h. If your jobs have not been re-scheduled, then please just re-submit them.

I hope that everything is working again. If this is not the case, please do not hesitate to reach out and file an issue either here, or even better in our repository for the web version: https://github.com/ag-computational-bio/bakta-web-ui/issues

DariaGI commented 5 months ago

Hi, but I have the same problem with basta installed on my server, not the web version. It doesn't work and report the same error. Traceback (most recent call last): File "/home/dgutnik/miniconda3/bin/bakta", line 10, in sys.exit(main()) ^^^^^^ File "/home/dgutnik/miniconda3/lib/python3.11/site-packages/bakta/main.py", line 228, in main cdss = feat_cds.predict(genome, contigs_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dgutnik/miniconda3/lib/python3.11/site-packages/bakta/features/cds.py", line 40, in predict orffinder = pyrodigal.OrfFinder(meta=prodigal_metamode, closed=closed) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pyrodigal' has no attribute 'OrfFinder' ~$ pyrodigal --version pyrodigal v3.4.1

oschwengers commented 5 months ago

OK, it seems like you have the wrong Pyrodigal version installed - at least for the installed Bakta version. Since v1.9.0 Bakta supports Pyrodigal versions >=3.0.0. For Bakta versions <=1.9.0 you need Pyrodigal <=2.3.0 as mentioned in https://github.com/oschwengers/bakta/issues/240

So you either downgrade Pyrodigal to <=v2.3.0 or upgrade Bakta to >=v1.9.0

oschwengers commented 4 months ago

Hi, did the solution described above help?

Dabiguina94 commented 4 months ago

Yes, thank you