I am having issues finding a way to import a .bw2Package into bw25. bw2 activity browser results in a lot of issues, namely not being able to import ecoinvent successfully. Error message being "Exchange between (biosphere 3) and (ecoinvent) is invalid - one of these objects is unknown (i.e. doesn't exist as a process dataset). I have tried this on multiple computers and the error is the same.
I am trying to import a .bw2package into Brightway25 through jupyter notebook, but the following code resulted in an error where it would not finish the kernel process, or if it did eventually finish (30 minutes later), there would be no new database added using bd.databases command.
ei_importer = BW2Package.import_file(ei_path)
I tried looking through the documentation but could not find anything about importing a type of file that isn't ecoinvent.
Thanks.
This won't work, because the class names and filepaths have changed, but these are hard-coded in the
bw2packageformat.Alternatives include using the project backup and restore functionality, exporting the LCI database to Excel and then restoring it, or re-running the reproducible data pipeline (you do have a reproducible data pipeline, right?) in the 2.5 installation.