From 93cb9f7fd1e0e1a162ef61d1a1882329e5287b3b Mon Sep 17 00:00:00 2001 From: marc-vdm Date: Sun, 17 Sep 2023 16:39:36 +0200 Subject: [PATCH 1/7] update bw2io requirement --- ci/recipe/stable/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/recipe/stable/meta.yaml b/ci/recipe/stable/meta.yaml index a7d97f13d..4353ce833 100644 --- a/ci/recipe/stable/meta.yaml +++ b/ci/recipe/stable/meta.yaml @@ -22,6 +22,7 @@ requirements: - setuptools run: - python >=3.8,<3.10 + - bw2io >=0.8.9 - arrow - brightway2 >=2.4.2 - pyperclip From 887992a22d5b4ba243777b747c4202ec43b380fb Mon Sep 17 00:00:00 2001 From: marc-vdm Date: Sun, 17 Sep 2023 16:44:05 +0200 Subject: [PATCH 2/7] Update readme install instructions --- README.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/README.md b/README.md index cb8011cd5..729458e51 100644 --- a/README.md +++ b/README.md @@ -59,43 +59,6 @@ conda activate ab activity-browser ``` -## The thorough way - -| :warning: The activity browser has dropped support for python versions below `3.8`| -|---| -| You should re-install if you have an older installation of the activity browser which doesn't use `python >= 3.8` (you can check with `conda list` or `python --version` in your conda environment). You can remove your existing environment with `conda remove -n ab --all` or choose a new environment name (instead of `ab`). Re-installing will not affect your activity-browser/brightway projects. | - -### Conda - -We recommend that you use **conda** to manage your python installation. You can install [Anaconda](https://www.anaconda.com/products/individual) or the more compact [miniconda](https://conda.io/miniconda.html) (Python 3 of course) for your operating system. Installation instructions for miniconda can be found [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html). See also the [conda user guide](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html) or the [Conda cheat sheet](https://docs.conda.io/projects/conda/en/latest/_downloads/843d9e0198f2a193a3484886fa28163c/conda-cheatsheet.pdf). - -Skip this step if you already have a working installation of anaconda or miniconda, but make sure to keep your conda installation up-to-date: `conda update conda`. - -### Add the Conda-Forge channel -The activity-browser has many dependencies that are managed by the [conda-forge](https://conda.io/docs/user-guide/tasks/manage-channels.html) channel. Open a cmd-window or terminal (in Windows you may have to use the Anaconda prompt) and type the following: - -```bash -conda config --prepend channels conda-forge -``` -### Install the AB with ecoinvent >=3.9 -After prepending the Conda-Forge channel the following line should be executed within the command prompt/terminal to install the AB and it's dependencies. - -```bash -conda create -n ab activity-browser -``` -This will install the Activity Browser with the latest version of the Brightway2 libraries (currently excluding Brightway2.5 libraries). - -### Install the AB with older ecoinvent versions (<3.9) - -If you want to work with with older versions of ecoinvent (<3.9) in the AB, a different Biosphere3 database needs to be installed. This requires a _**different version of the bw2io library**_ to be installed, see also [here](https://github.com/brightway-lca/brightway2-io). Note that this version of bw2io can ONLY work with ecoinvent versions < 3.9. If you want to work with version > 3.9 AND < 3.9, the only solution currently available is to use two separate virtual environments (i.e. two AB installations). - -To install a version of the AB that can handle ecoinvent versions <3.9, do the following: For a new installation from the conda-forge repository the same initial steps need to be made: Prepending the Conda-Forge repository in the channels, and installing the AB and dependencies. After the successful installation, the following two commands need to be executed before running the AB: 1) Remove the latest version of the Brightway2 Input-Output library, 2) Install an older version of the Brightway2 Input-Output library. - -```bash -conda remove --force bw2io -conda install bw2io=0.8.7 -``` - #### Activity Browser is installed At this point the activity-browser and all of its dependencies will be installed in a new conda environment called `ab`. You can change the environment name `ab` to whatever suits you. From 8fc98bc2a792ed315d49752b48ff5417398173a0 Mon Sep 17 00:00:00 2001 From: marc-vdm Date: Sun, 17 Sep 2023 16:47:25 +0200 Subject: [PATCH 3/7] Update meta.yaml --- ci/recipe/stable/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/recipe/stable/meta.yaml b/ci/recipe/stable/meta.yaml index 4353ce833..9041ddfad 100644 --- a/ci/recipe/stable/meta.yaml +++ b/ci/recipe/stable/meta.yaml @@ -22,7 +22,7 @@ requirements: - setuptools run: - python >=3.8,<3.10 - - bw2io >=0.8.9 + - bw2io >=0.8.10 - arrow - brightway2 >=2.4.2 - pyperclip From ca017d21ac98afce176c618be3e5d073b43142f4 Mon Sep 17 00:00:00 2001 From: marc-vdm Date: Sun, 17 Sep 2023 23:03:40 +0200 Subject: [PATCH 4/7] Update README.md --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 729458e51..469f36e9b 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,6 @@ Please also read and cite our [scientific paper](https://doi.org/10.1016/j.simpa # Contents - [Installation](#installation) - - [The quick way](#the-quick-way) - - [The thorough way](#the-thorough-way) - - [Conda](#conda) - - [Install the AB with ecoinvent >=3.9](#install-the-ab-with-ecoinvent-39) - - [Install the AB with ecoinvent <3.9](#install-the-ab-with-older-ecoinvent-versions-39) - [Updating the AB](#updating-the-ab) - [Getting started](#getting-started) - [Running the AB](#running-the-ab) @@ -49,8 +44,6 @@ Please also read and cite our [scientific paper](https://doi.org/10.1016/j.simpa # Installation -## The quick way - You can install and start the activity-browser like this: ```bash @@ -121,7 +114,7 @@ These are the plugins that we know about. To add your plugin to this list either | Name | Description | Links | Author | |:---------|-------------|-------|--------| | template | An empty plugin to start from | [anaconda](https://anaconda.org/pan6ora/ab-plugin-template), [github](https://github.com/Pan6ora/activity-browser-plugin-template) | Rémy Le Calloch | -| Notebook | Use Jupyter notebooks from AB | [anaconda](https://anaconda.org/pan6ora/ab-plugin-template), [github](https://github.com/Pan6ora/ab-plugin-Notebook) | Rémy Le Calloch | +| Notebook | Use Jupyter notebooks from AB | [anaconda](https://anaconda.org/pan6ora/ab-plugin-notebook), [github](https://github.com/Pan6ora/ab-plugin-Notebook) | Rémy Le Calloch | | ReSICLED | Evaluating the recyclability of electr(on)ic product for improving product design | [anaconda](https://anaconda.org/pan6ora/ab-plugin-resicled), [github](https://github.com/Pan6ora/ab-plugin-ReSICLED) | G-SCOP Laboratory | ## Installation From 7e64f2b0a25f7f6cd7b867138ee18b88f147f368 Mon Sep 17 00:00:00 2001 From: marc-vdm Date: Mon, 18 Sep 2023 10:04:07 +0200 Subject: [PATCH 5/7] Change requirement to brightway2 instead of bw2io --- ci/recipe/stable/meta.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/recipe/stable/meta.yaml b/ci/recipe/stable/meta.yaml index 9041ddfad..4b3ffc575 100644 --- a/ci/recipe/stable/meta.yaml +++ b/ci/recipe/stable/meta.yaml @@ -22,9 +22,8 @@ requirements: - setuptools run: - python >=3.8,<3.10 - - bw2io >=0.8.10 - arrow - - brightway2 >=2.4.2 + - brightway2 >=2.4.4 - pyperclip - eidl >=1.4.2 - networkx From 0cd0fb81909c7be329da47858a794dcdedaaa08e Mon Sep 17 00:00:00 2001 From: Marc van der Meide Date: Wed, 11 Oct 2023 10:47:30 +0200 Subject: [PATCH 6/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dde67c69..88e57f66e 100644 --- a/README.md +++ b/README.md @@ -181,13 +181,13 @@ If you experience problems or are suffering from a specific bug, please [raise a - Bernhard Steubing (b.steubing@cml.leidenuniv.nl) (creator) - Marc van der Meide ([github]((https://github.com/marc-vdm))) (maintainer) -- Jonathan Kidner (j.h.kidner@cml.leidenuniv.nl) (maintainer) ### Important contributers - [Adrian Haas](https://github.com/haasad) - [Chris Mutel](https://github.com/cmutel) - [Daniel de Koning](https://github.com/dgdekoning) +- [Jonathan Kidner](https://github.com/Zoophobus) - [Remy le Calloch](https://remy.lecalloch.net) # Copyright From 0b25a81e7c0095a4ac16da68edf99f22e8220030 Mon Sep 17 00:00:00 2001 From: Marc van der Meide Date: Wed, 11 Oct 2023 11:03:27 +0200 Subject: [PATCH 7/7] Update README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 88e57f66e..a0bb99fe8 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ Please also read and cite our [scientific paper](https://doi.org/10.1016/j.simpa # Installation +## The quick way + You can install and start the activity-browser like this: ```bash @@ -62,6 +64,28 @@ mamba activate ab activity-browser ``` +## The thorough way +### Conda + +We recommend that you use **conda** to manage your python installation. You can install [Anaconda](https://www.anaconda.com/products/individual) or the more compact [miniconda](https://conda.io/miniconda.html) (Python 3 version) for your operating system. Installation instructions for miniconda can be found [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html). See also the [conda user guide](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html) or the [Conda cheat sheet](https://docs.conda.io/projects/conda/en/latest/_downloads/843d9e0198f2a193a3484886fa28163c/conda-cheatsheet.pdf). + +Skip this step if you already have a working installation of anaconda or miniconda, but make sure to keep your conda installation up-to-date: `conda update conda`. + +### Add the Conda-Forge channel +The activity-browser has many dependencies that are managed by the [conda-forge](https://conda.io/docs/user-guide/tasks/manage-channels.html) channel. Open a cmd-window or terminal (in Windows you may have to use the Anaconda prompt) and type the following: + +```bash +conda config --prepend channels conda-forge +``` + +### Installing Activity Browser + +```bash +conda create -n ab -c conda-forge activity-browser +conda activate ab +activity-browser +``` + #### Activity Browser is installed At this point the activity-browser and all of its dependencies will be installed in a new conda environment called `ab`. You can change the environment name `ab` to whatever suits you.