LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
134 stars 50 forks source link

Creating 2050 REMIND SSP2-base Scenario #1233

Closed Arezooo33 closed 4 months ago

Arezooo33 commented 4 months ago

Issue

Hi,

I installed activity browser, imported EcoInvent and then installed Scenariolink plugin. When I want to import the available scenarios, I tried a couple of them, it has an error: AB I don't know what is wrong with it. I would be happy if you could help me with it.

Best, Arezoo

marc-vdm commented 4 months ago

Hey Arezoo,

There is currently an issue with ScenarioLink that doesn't install the right version of a library (https://github.com/polca/ScenarioLink/issues/35).

You can manually install the library with: conda install unfold=2024.02.10

Arezooo33 commented 4 months ago

Hey,

Thanks. I installed it on the ab environment and tried generating scenario again, it generated the scenario but it is empty and it gives me another error: image Any ideas what's wrong?

Best, Arezoo

marc-vdm commented 4 months ago

Could it be that you accidentally connected the 'ecoinvent' database to another database (in your case probably 'steel' or 'bioshpere3')?

It could also be that the premise database you downloaded is supposed to connect to another version of ecoinvent (not 3.9.1).

Please review the ScenarioLink instructions to see if that resolves your issue. https://github.com/polca/ScenarioLink?tab=readme-ov-file#reproduce-a-scenario-based-database

Arezooo33 commented 4 months ago

I didn't notice that each scenario should be linked to a specific version of EcoInvent. My bad. I changed the ecoinvent version and tried to import other scenarios but still the same error. image

I'm pretty sure I'm connecting databases correctly.

marc-vdm commented 4 months ago

Sorry to hear you're still having issues. We've found an underlying issue that's not directly causing this, but is still causing problems with what you're trying to do and should hopefully resolve this as well.

If you wouldn't mind, can you wait for 2.9.7​? We expect to have this version available later this week. If you need a solution more urgently, please also let me know, there is a work-around, but it's a bit messy.


From: Arezooo33 @.> Sent: Friday, February 16, 2024 16:59 To: LCA-ActivityBrowser/activity-browser @.> Cc: Meide, M.T. van der (Marc) @.>; Comment @.> Subject: Re: [LCA-ActivityBrowser/activity-browser] Creating 2050 REMIND SSP2-base Scenario (Issue #1233)

I didn't notice that each scenario should be linked to a specific version of EcoInvent. My bad. I changed the ecoinvent version and tried to import other scenarios but still the same error. image.png (view on web)https://github.com/LCA-ActivityBrowser/activity-browser/assets/153556581/a6cf9008-25b4-49a0-aa3f-738395b33672

I'm pretty sure I'm connecting databases correctly.

— Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/1233#issuecomment-1948729063, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIIFUDXV625NXPPJVRNNITTYT5675AVCNFSM6AAAAABDKQ5L5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYG4ZDSMBWGM. You are receiving this because you commented.Message ID: @.***>

Arezooo33 commented 4 months ago

I would be happy to try it while waiting for the newer version because previously I was working with the plugin without any issues. I don't know what went wrong suddenly.

marc-vdm commented 4 months ago

The things that went wrong are not your fault, we've done something wrong on our side. What is wrong is that the biosphere database that is installed is unfortunately a wrong version, that can only be resolved through these steps:

  1. Export any databases you want to keep from the project (except ecoinvent and biosphere)
    • I don't think you have any in the project you share a screenshot of, but check for yourself
  2. Install an older version of activity browser, I suggest in a new environment:
    • conda create -n ab292 -c conda-forge activity-browser=2.9.2
  3. In this newly installed version, create a new project and import biosphere
  4. In your current version, import ecoinvent, databases you exported and continue as usual
  5. If you wish, you can delete the problematic project.

Also note, in the screenshot you've shared, I see you've installed ecoinvent 3.8 and 3.9(.1). These versions are not compatible and should not be installed in the same project. You can install either 3.4-3.8 or 3.9 and 3.9.1 in one project. If you're working with ScenarioLink, I would suggest to take 3.9 or 3.9.1 as there are compatible with more scenario databases.

In future versions of activity browser this will be possible, but currently this is will lead to problems. It's a longer term project for us to add this functionality.

Arezooo33 commented 4 months ago

Hi Marc,

Unfortunately, installing older version of activity browser didn’t also help. I was wondering if the update to activity browser has been released?

Best, Arezoo

From: Marc van der Meide @.> Sent: Monday, February 19, 2024 10:01 AM To: LCA-ActivityBrowser/activity-browser @.> Cc: Azimi, Arezoo @.>; Author @.> Subject: Re: [LCA-ActivityBrowser/activity-browser] Creating 2050 REMIND SSP2-base Scenario (Issue #1233)


Caution: This email originated from a sender outside Heriot-Watt University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.


The things that went wrong are not your fault, we've done something wrong on our side. What is wrong is that the biosphere database that is installed is unfortunately a wrong version, that can only be resolved through these steps:

  1. Export any databases you want to keep from the project (except ecoinvent and biosphere)

    • I don't think you have any in the project you share a screenshot of, but check for yourself
  2. Install an older version of activity browser, I suggest in a new environment:

    • conda create -n ab292 -c conda-forge activity-browser=2.9.2
  3. In this newly installed version, create a new project and import biosphere

  4. In your current version, import ecoinvent, databases you exported and continue as usual

  5. If you wish, you can delete the problematic project.

Also note, in the screenshot you've shared, I see you've installed ecoinvent 3.8 and 3.9(.1). These versions are not compatible and should not be installed in the same project. You can install either 3.4-3.8 or 3.9 and 3.9.1 in one project. If you're working with ScenarioLink, I would suggest to take 3.9 or 3.9.1 as there are compatible with more scenario databases.

In future versions of activity browser this will be possible, but currently this is will lead to problems. It's a longer term project for us to add this functionality.

— Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/1233#issuecomment-1952096096, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BETRMZJJWQEFQRO6XTSF7U3YUMPGHAVCNFSM6AAAAABDKQ5L5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSGA4TMMBZGY. You are receiving this because you authored the thread.Message ID: @.**@.>>


Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1. Heriot-Watt University, a Scottish charity registered under number SC000278
  2. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

marc-vdm commented 4 months ago

Thanks for letting me know. The update has indeed been released. You can install the new version with:

conda activate ab conda update activity-browser

Then in the new version, do the following:

  1. Create a new project
  2. Import Biosphere 3.9 or 3.9.1
  3. Import ecoinvent 3.9 or 3.9.1

If something doesn't work. Please let me know!

Arezooo33 commented 4 months ago

Hi Marc,

It worked finally. Thanks for your assisstance.

Just a quick question, I want to generate scenario SSP1-RCP1.9 which I think it is REMIND SSP1-PkBudg500, right? Why don’t we have it in Scenariolink plugin, or it is the one and it is just a typo maybe? @.***

Best, Arezoo

From: Marc van der Meide @.> Sent: Tuesday, February 27, 2024 7:52 AM To: LCA-ActivityBrowser/activity-browser @.> Cc: Azimi, Arezoo @.>; Author @.> Subject: Re: [LCA-ActivityBrowser/activity-browser] Creating 2050 REMIND SSP2-base Scenario (Issue #1233)


Caution: This email originated from a sender outside Heriot-Watt University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.


Thanks for letting me know. The update has indeed been released. You can install the new version with:

conda activate ab conda update activity-browser

Then in the new version, do the following:

  1. Create a new project
  2. Import Biosphere 3.9 or 3.9.1
  3. Import ecoinvent 3.9 or 3.9.1

If something doesn't work. Please let me know!

— Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/1233#issuecomment-1965968030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BETRMZJY5CIH4ZZEONZWIOTYVWGA5AVCNFSM6AAAAABDKQ5L5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVHE3DQMBTGA. You are receiving this because you authored the thread.Message ID: @.**@.>>


Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1. Heriot-Watt University, a Scottish charity registered under number SC000278
  2. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

marc-vdm commented 4 months ago

Happy this issue is resolved for you. I will close this issue now, for your last question, I hope you still get some help. In case you have new questions regarding the use of the ScenarioLink plugin, please open them on polca/ScenarioLink :)

I want to generate scenario SSP1-RCP1.9 which I think it is REMIND SSP1-PkBudg500, right? Why don’t we have it in Scenariolink plugin, or it is the one and it is just a typo maybe?

@romainsacchi would you have an idea?

romainsacchi commented 4 months ago

Hi @Arezooo33 @marc-vdm ,

we do not have SSP1-RCP 1.9 because I did not make it :) But I will (maybe over the WE).