activity-browser icon indicating copy to clipboard operation
activity-browser copied to clipboard

Import of database Ecoinvent 3.9 cutoff fails

Open MarcoRudolf opened this issue 3 years ago • 7 comments

Hey everyone,

Ecoinvent just released its new Database version 3.9. By trying to import the Database in my Project, the import fails and the following error is shown: "The import failed as required biosphere exchanges are missing from the biosphere3 database. Please update the biosphere by using 'File' -> 'Update biosphere...'" I updated the bioshpere3 database in my project, but the error still occurs. Anyone have an idea? (I work on a mac) Bildschirmfoto 2022-10-18 um 10 46 55

Cheers, Marco

MarcoRudolf avatar Oct 18 '22 08:10 MarcoRudolf

Hi Marc,

there is an issue with the latest release from ecoinvent. Here's the message from CMutel on the topic. Please send a message if this doesn't help to solve your problem!

Ecoinvent version 3.9 (system models consequential, cutoff, and EN15804; APOS will come later) were released today. New releases of Brightway bring compatibility for this new data.

Upgrading libraries

Upgrading: You should upgrade either the package brightway2 or brightway25 (or brightway2_nosolver or brightway25_nosolver if you are an ARM machine). Manually upgrading libraries like bw2io will probably break things. How exactly this will work depends on how you have your channels configured, but will be something like:

conda update brightway2

Upgrading projects There are substantial changes in version 3.9 - more than 300 new elementary flows, 31 elementary flows were deprecated and deleted, and the LCIA methods were completely redone. The inventory data was added to, but some sectors were changed a lot. Therefore, for now our recommendation is to start using 3.9 in new projects; we are developing a generic toolkit to do updates of inventory databases, but this will take some time.

Fixing errors I have tested the import and calculation steps on brightway2 and brightway25, but I could easily have missed something. Please file errors at https://github.com/brightway-lca/brightway2-io/issues and tag me (@cmutel). Responding to this email will spam 150 people, let's not do that.

Zoophobus avatar Oct 18 '22 14:10 Zoophobus

@Zoophobus, we also need to update AB to be able to update biosphere, see #840

marc-vdm avatar Oct 18 '22 14:10 marc-vdm

Also @MarcoRudolf (and @Zoophobus), I'd personally recommend updating AB to avoid any other dependency issues too. Just do:

conda update activity-browser or conda update activity-browser-dev

This may be safer than only updating brightway2

marc-vdm avatar Oct 18 '22 15:10 marc-vdm

To use ei39, I believe you need to use bw2io 0.8.8. But for ei38 or prior, that's bw2io 0.8.6. But @cmutel can maybe confirm.

romainsacchi avatar Oct 18 '22 15:10 romainsacchi

Hey everyone, thanks for the quick support! I updated brightway2 as well as the ab (I use the standard version). Then I updated the biosphere3 database via the ab. Unfortunately, the same error still occurs.

@romainsacchi , can it be that I have to manually switch to bw2io 0.8.8 ? How do I know which Version of the biosphere is being used?

MarcoRudolf avatar Oct 18 '22 16:10 MarcoRudolf

I would indeed try to upgrade to bw2io 0.8.8 if you intend to use ei39. And then, update the biosphere.

romainsacchi avatar Oct 18 '22 16:10 romainsacchi

Be careful here, 0.8.8 supports only ecoinvent 3.9, not earlier versions. I can fix this later but am indisposed for the next few days.

cmutel avatar Oct 18 '22 21:10 cmutel

Hi. Any update on this? Waiting to work with ecoivnent 3.9 using AB. Please let us know when it gets resolved. Tnx

iamz33 avatar Oct 31 '22 07:10 iamz33

Hi all,

if anyone is still waiting to work with Ecoinvent 3.9 in the AB then there are the current recommended bw2io versions that will be required (0.8.8 for later versions). The problem remains, though, that you will need to maintain separate environments for the latest and older versions of Ecoinvent

Zoophobus avatar Mar 20 '23 13:03 Zoophobus

Hello

i have the following configuration image

but i'm still having troubbles importing Ecoinvent 3.9 via Activity Browser (same error as descripted in OP)

This is my brightway version: image

image

I tried with different version of bw2io but still getting errors. image

image

Any idea?

cprato-qw avatar Nov 03 '23 11:11 cprato-qw

Hi there! Thanks for reaching out.

I see your AB version is a bit old. I would suggest trying to update and then trying again. As you have an older version, you need to go through a few special steps to update. You can see the guide here.

Let me know if that fixes your problem or if you need more help!

marc-vdm avatar Nov 03 '23 12:11 marc-vdm

thank you marc, this solved it!

cprato-qw avatar Nov 03 '23 15:11 cprato-qw

Hi, I'm still experiencing the same problem. I want to import ecoinvent 3.8 but I got the same warning message that "The import failed as required biosphere exchanges are missing.." Here are the versions of my bw2. How should I fix the problem? Thanks!! Screenshot 2024-07-11 at 1 04 04 PM

KanMengqing avatar Jul 11 '24 17:07 KanMengqing

Hi @KanMengqing

Are you trying this on Activity Browser or on Brightway? These are two different things. Activity Browser has different tools for this than Brightway.

marc-vdm avatar Jul 12 '24 07:07 marc-vdm