polca / premise

Coupling Integrated Assessment Models output with Life Cycle Assessment.
BSD 3-Clause "New" or "Revised" License
100 stars 45 forks source link

Error when creating a scenario using Brightway2 #138

Closed Arezooo33 closed 5 months ago

Arezooo33 commented 6 months ago

I installed Brightway2 and premise 1.8.1 Now, I want to create a scenario using the following code: from premise import * import brightway2 as bw

bw.projects.set_current('demo')

ndb = NewDatabase( scenarios=[ {"model":"remind", "pathway":"SSP2-Base", "year":2028} ], source_db="ev391cutoff", # <-- this is NEW. source_version="3.9.1", # <-- this is NEW key='XXXXXXXXXXXXXXXXXXXXXXXXX', use_multiprocessing=True, # True by default, set to False if multiprocessing is causing troubles keep_uncertainty_data=False # False by default, set to True if you want to keep ecoinvent's uncertainty data ) Which create a cache file and extract IAM data. Then I move to update the inventories which gives me an error: ndb update error2 ndb update error I can't understand what is the problem?

Stew-McD commented 6 months ago

I think you can safely remove nbd.update_two_wheelers

I looked into this a while ago. As far as I could work out, the files needed to implement the two_wheelers strategies are not fully/correctly in place. I tried to fix it myself, but I couldn't work it out.

Unless you are doing an LCA of a motorcycle, I would just remove that line, it shouldn't affect other activities. As far as I know, there is no 'transport by two-wheeler' or similar in ecoinvent.

Arezooo33 commented 6 months ago

Thanks for your comment, but even when I delete two wheelers I have problem updating steel or DACCS, so I am not sure that the problem is this.

Stew-McD commented 6 months ago

Did you try turning off multiprocessing?

Arezooo33 commented 6 months ago

Yes and it gives me this error: image

romainsacchi commented 5 months ago

@Arezooo33 shall I close this issue?