Closed Joshua-Schroijen closed 1 year ago
Hi @Joshua-Schroijen,
The first line of the full output states Extracting XML data from 0 datasets
. This indicates that the path to the ecospold files is incorrect. Can you check?
Related to https://github.com/brightway-lca/brightway2-io/issues/97
Hi Ben Portner,
Thanks for the comment. I have since realized that I had to point the SingleOutputEcospold2Importer to the "datasets" subfolder, or that
pte = Path("C:\\") / "Users" / "Joshua Schroijen" / "ecoinvent" / "ecoinvent 3.9_cutoff_ecoSpold02" / "datasets"
instead of
pte = Path("C:\\") / "Users" / "Joshua Schroijen" / "ecoinvent" / "ecoinvent 3.9_cutoff_ecoSpold02"
fixes the problem.
Hi @Joshua-Schroijen
I'm glad that you could fix the problem. I will close this issue then. Sorry for the inconvenience, btw. I personally believe that brightway should give a clear error message in such cases. I will put this high on the agenda!
Hello everyone,
I am trying to get started doing automated LCA using the ecoinvent 3.9 database, Brightway2 2.4.2 and Python (3.10). I'm not very knowledgeable yet so please bear with me. I am trying to import ecoinvent and write it to a regular Brightway2 database like so:
But this code snippet gives me the following exception on the last line:
I will include all of the output of the snippet at the end of this post.
In other words, it seems like importing ecoinvent 3.9 locally doesn't work. From the documentation I can't infer that I am missing something. People using the Activity Browser are recommended to import ecoinvent by downloading it. But I don't want to use the Activity Browser (since I'm experimenting with LCA automation) and don't want to have to download this pretty big database every time (not to mention have the cybersecurity implications of doing so, since ecoinvent requires credentials). Is this an ecoinvent data format issue or a Brightway2 issue? I'm erring on the first, but in the snippet output I also see the message "Extracting XML data from 0 datasets", which I find odd since there very much is a lot of data in the directory I'm pointing the script at. I would appreciate any suggestions for a workaround. Am I missing something? Is this something that will be fixed or is easily fixable with the right trick?
Thanks a lot in advance for your help and input!
Joshua Schroijen
Complete snippet output: