chan-csu / ADToolbox

AD Toolbox: A python package for modeling and optimization on anaerobic digestion process
1 stars 2 forks source link

Issue with downloading databases #5

Closed sstenmark45 closed 8 months ago

sstenmark45 commented 8 months ago

@ParsaGhadermazi

I am receiving an error when:

ADToolbox Database download-all-databases

The error message:

Traceback (most recent call last):
  File "/Users/siristenmark/anaconda3/envs/ADtoolbox/bin/ADToolbox", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/siristenmark/Documents/GitHub/ADToolbox/adtoolbox/cli.py", line 174, in main
    db_class.download_all_databases()
  File "/Users/siristenmark/Documents/GitHub/ADToolbox/adtoolbox/core.py", line 1445, in download_all_databases
    self.download_seed_databases(verbose=verbose)
  File "/Users/siristenmark/Documents/GitHub/ADToolbox/adtoolbox/core.py", line 1199, in download_seed_databases
    with open(self.config.reaction_db, 'wb') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
ParsaGhadermazi commented 8 months ago

Hi @sstenmark45,

Thanks for pointing to this. It is now fixed. This was due to some structure change that was not reflected in all the code base.

Parsa