Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load brightway2 after clean install: bw2_calc has not attribute... #85

Closed
Loisel opened this issue Sep 26, 2022 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Loisel
Copy link
Collaborator

Loisel commented Sep 26, 2022

After a clean install in a fresh environment via conda install -c romainsacchi premise (conda 4.13.0) I end up with the following error message when trying to load brightway2 as part of the example notebook:

module 'bw2calc' has no attribute 'ComparativeMonteCarlo'

Steps to reproduce:

conda create -n test -c romainsacchi premise -y
conda activate test
python -c "import brightway2"

conda log:
log.txt

@Loisel Loisel added the bug Something isn't working label Sep 26, 2022
@romainsacchi
Copy link
Collaborator

romainsacchi commented Sep 26, 2022 via email

@Loisel
Copy link
Collaborator Author

Loisel commented Sep 26, 2022

Hi, thanks for the quick reply (as always). From the github page I'd say the most recent version is 2.0.dev12. This is the version that is also installed by conda (see log.txt in the issue desc).

Installing bw2 directly via

conda create -n bw2 -c conda-forge -c cmutel brightway2

works, however.

@romainsacchi
Copy link
Collaborator

romainsacchi commented Sep 26, 2022 via email

@Loisel
Copy link
Collaborator Author

Loisel commented Sep 26, 2022

This works, thanks. It might be worth adding a note to the installation instructions.

@Loisel Loisel closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants