Closed PGjedde closed 4 months ago
Btw, I also write my dabase to disk. I am able to go all the way and perform lca calculations from within my python world. The two platforms simply don't speak together.
Hey thanks for making this issue. We currently don't support BW2.5 and BW2.5 projects are not backwards compatible with BW2 or AB.
We plan to start supporting BW2.5, but it's a big and complex task for us, so it will take a while to complete this. You can share your thoughts/wishes here in this thread, we are very happy to hear from the community on this :) :
Hi Marc, thanks for such a quick response π Too bad brightway2 is so impossible to install these days then. If you have any tips please let me know. Following the docs for installation of bw2 (legacy) on the official website or even on anacondas own website no longer works. But that is an issue for other people and not activity browser I guess.
Too bad brightway2 is so impossible to install these days then
Hmm interesting, what seems to be the problem?
You can create a Brightway 2 environment with conda
like the following:
conda create -n ENV_NAME -c conda-forge brightway2=2.4
You just need to specify a version lower than 2.5 and it should work. What you can also do is just use the AB environment, that also install Brightway 2.
If the docs/guides for BW2 are out of date, I'm afraid I can't really help, that's indeed an issue that should be fixed by the Brightway developers.
Too bad brightway2 is so impossible to install these days then.(...) Following the docs for installation of bw2 (legacy) on the official website or even on anacondas own website no longer works.
π― We (over at the Brightway documentation) are sorry to hear that! I suggest you open an issue in our repository.
I just resolved an issue kindly reported by @marc-vdm (https://github.com/brightway-lca/brightway2-data/issues/117#issuecomment-1945807320) - I am now looking into your issue.
Hi Michael, Thanks for looking into it. The official documentation says to use conda and that did not work. However, I have now succeeded in installing Brightway in a conda environment but using pip:
conda create -n bw20 -c conda-forge pip conda activate bw20 pip install brightway2==2.4.5
With AB in another conda environment they still work perfectly together. I just prefer to have AB and bw2 in different environments for the sake of also pulling in other packages for custom plots and so. And it looks like 2.4.5 is the newest/last legacy version of bw2 right? Thank you for the work you put into it π
Philip
From: Michael Weinold @.> Sent: Thursday, February 15, 2024 11:58 AM To: LCA-ActivityBrowser/activity-browser @.> Cc: Philip Gjedde @.>; State change @.> Subject: Re: [LCA-ActivityBrowser/activity-browser] AB project folder has different hash than brightway 2.5 made in python (Issue #1232)
Too bad brightway2 is so impossible to install these days then.(...) Following the docs for installation of bw2 (legacy) on the official website or even on anacondas own website no longer works.
π― We (over at the Brightway documentation) are sorry to hear that! I suggest you open an issue in our repositoryhttps://github.com/brightway-lca/brightway-documentation/issues.
I just resolved an issue kindly reported by @marc-vdmhttps://github.com/marc-vdm (brightway-lca/brightway2-data#117 (comment)https://github.com/brightway-lca/brightway2-data/issues/117#issuecomment-1945807320) - I am now looking into your issue.
β Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/1232#issuecomment-1945850737, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXYKYKCXM2RDTGCD7YZVSVTYTXS3HAVCNFSM6AAAAABDGLIFDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVHA2TANZTG4. You are receiving this because you modified the open/close state.Message ID: @.***>
and that did not work.
...and what part of it did not work? π
And it looks like 2.4.5 is the newest/last legacy version of bw2 right?
You are correct - as you can see from the release history on PyPi, we're currently on 2.4.5
.
Nono, pip did work π but conda did not. This does not work: https://docs.brightway.dev/en/legacy/content/installation/installation.html And I am afraid that is where most people end up first when wanting to install Brightway 2.
Best, Philip
From: Michael Weinold @.> Sent: Thursday, February 15, 2024 12:12 PM To: LCA-ActivityBrowser/activity-browser @.> Cc: Philip Gjedde @.>; State change @.> Subject: Re: [LCA-ActivityBrowser/activity-browser] AB project folder has different hash than brightway 2.5 made in python (Issue #1232)
and that did not work.
...and what part of it did not work? π
And it looks like 2.4.5 is the newest/last legacy version of bw2 right?
You are correct - as you can see from the release history on PyPihttps://pypi.org/project/brightway2/#history, we're currently on 2.4.5.
β Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/1232#issuecomment-1945874889, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXYKYKC57EIUYNRNIYKQGNDYTXUOVAVCNFSM6AAAAABDGLIFDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVHA3TIOBYHE. You are receiving this because you modified the open/close state.Message ID: @.**@.>>
...you will need to help me out just a little more:
Okay, the first message on the issue here gives a list of the packages in the environment. And the OS is windows 10. And initially there was no error message.
There was no error message because AB, brightway2, and brightway 2.5 all worked fine separately. I was at the point of making this issue not aware that brightway 2.5 and AB are not compatible with each other, so I just saw in the directory file that I suddenly had two different project folders that only changed by hash. Knowing that the softwares don't speak together this makes sense though.
I have already solved the issue I had regarding the installment of the different versions and seen why they are not compatible, and if you would like I will go to the documentation of brigthway 2.5 and mention there in the beginning of the documentation of 2.5 that this version is not compatible with brightway 2 or AB. I know this is mentioned other places, but I also know a bunch of people that are not even sure which version they are working in when using brightway. In the conda environments you see multiple packages, and only the brightway 2.5 is called "2.5", all others are still "2". In short, we are a few in the community who are a bit confused about what the different versions can do, but since I found out I'll be happy to add it to the documentation :) And I I'll show exactly what I mean here. If you google brightway, most people end up here: https://docs.brightway.dev/en/latest/index.html And then the installment guide here: https://docs.brightway.dev/en/latest/content/installation/index.html And being careful about installments they may even read here: https://docs.brightway.dev/en/latest/content/faq/brightway.html
Those websites are all about brighway 2.5, but for anyone that does not already know that there is no backwards compatibility it is not easy to figure out, except for one place that says that brightway 2.0 runs with AB. I'll just add somewhere, that brigthway 2.5 does not, and then all is good I hope?
Ah, I see - I added an FAQ entry to our documentation to make the compatibility issues with the Activity Browser and Brightway25 more explicit.
I would like to point out that even before my edit, our installation instructions had explicitly listed "basic knowledge of the difference between Brightway2 and Brightway25" as a prerequisite to proceeding with the installation:
If users do not read the documentation, I am afraid that they will get stuck irregardless of how well we well we attempt to describe the installation process etc.
Thank you for pointing out the issue - I hope I was able to help.
I am glad the issue is fixed, thank you :)
And I see you also added the warning in the link regarding installation that you just send a screenshot of.
That is super nice and I am sure installation of the right versions becomes easier now, you've been a really good help and with super fast response time Thank you π
Updating AB
What happened?
Using Brightway2.5 I created a project using:
I then link my biosphere database to the ecoinvent 3.8 ecospold database folder and everything works well within my "python world". But then when I open up activity browser from the anaconda prompt
I get to see the name of my project, but it is empty. I can see that in my project directory I also have 2 files:
Ergo, I believe there is a creation of another project folder which, unless I look directly into the directory have the exact same name aside from the hash. But the has created last becomes longer than the previous one? Because of this I cannot work with the python version brightway2.5 but still set up my LCI in activity-browser. In short, I am forced to choose which platform I want to work on, and that makes me a little bit sad because I like both πΏβ€οΈ.
Relevant errors