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

Module 'bw2calc' has no attribute 'ComparativeMonteCarlo' #43

Closed
haasad opened this issue Feb 7, 2022 · 26 comments
Closed

Module 'bw2calc' has no attribute 'ComparativeMonteCarlo' #43

haasad opened this issue Feb 7, 2022 · 26 comments

Comments

@haasad
Copy link
Contributor

haasad commented Feb 7, 2022

When installing the latest version of the brightway2 metapackage (2.4.1) or also just the latest stable release of bw2calc (1.8.0), I get the following error: AttributeError: module 'bw2calc' has no attribute 'ComparativeMonteCarlo'

To reproduce:

  • fresh install
conda create -n ab705_4 -c conda-forge -c cmutel python=3.9 brightway2
conda activate ab705_4
  • only importing bw2calc works fine:
python -c "import bw2calc; print(bw2calc.__version__)" 
(1, 8, 0)
  • importing brightway2 fails:
python -c "import brightway2 as bw"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/adrian/miniconda3/envs/ab705_4/lib/python3.9/site-packages/brightway2/__init__.py", line 3, in <module>
    from bw2calc import *
AttributeError: module 'bw2calc' has no attribute 'ComparativeMonteCarlo'
  • also:
python -c "from bw2calc import *"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'bw2calc' has no attribute 'ComparativeMonteCarlo'
@haasad
Copy link
Contributor Author

haasad commented Feb 7, 2022

conda list
# packages in environment at /home/adrian/miniconda3/envs/ab705_4:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
asteval                   0.9.23             pyhd8ed1ab_0    conda-forge
astunparse                1.6.3              pyhd8ed1ab_0    conda-forge
brightway2                2.4.1                      py_0    cmutel
brotli                    1.0.9                h7f98852_6    conda-forge
brotli-bin                1.0.9                h7f98852_6    conda-forge
brotlipy                  0.7.0           py39h3811e60_1003    conda-forge
bw2analyzer               0.10                       py_1    cmutel
bw2calc                   1.8.0                      py_0    cmutel
bw2data                   3.6.2                      py_0    cmutel
bw2io                     0.8.6                      py_1    cmutel
bw2parameters             0.7                        py_0    cmutel
bw_migrations             0.1                        py_0    cmutel
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2021.10.8            ha878542_0    conda-forge
certifi                   2021.10.8        py39hf3d152e_1    conda-forge
cffi                      1.15.0           py39h4bc2ebd_0    conda-forge
charset-normalizer        2.0.11             pyhd8ed1ab_0    conda-forge
cryptography              36.0.1           py39h95dcef6_0    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
docopt                    0.6.2                      py_1    conda-forge
eight                     1.0.0                      py_0    conda-forge
et_xmlfile                1.0.1                   py_1001    conda-forge
fasteners                 0.17.3             pyhd8ed1ab_0    conda-forge
fonttools                 4.29.1           py39h3811e60_0    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
fribidi                   1.0.10               h36c2ea0_0    conda-forge
future                    0.18.2           py39hf3d152e_4    conda-forge
giflib                    5.2.1                h36c2ea0_2    conda-forge
icu                       69.1                 h9c3ff4c_0    conda-forge
idna                      3.3                pyhd8ed1ab_0    conda-forge
jbig                      2.1               h7f98852_2003    conda-forge
jpeg                      9e                   h7f98852_0    conda-forge
kiwisolver                1.3.2            py39h1a9c180_1    conda-forge
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
lerc                      3.0                  h9c3ff4c_0    conda-forge
libblas                   3.9.0            13_linux64_mkl    conda-forge
libbrotlicommon           1.0.9                h7f98852_6    conda-forge
libbrotlidec              1.0.9                h7f98852_6    conda-forge
libbrotlienc              1.0.9                h7f98852_6    conda-forge
libcblas                  3.9.0            13_linux64_mkl    conda-forge
libdeflate                1.8                  h7f98852_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 11.2.0              h1d223b6_12    conda-forge
libgfortran-ng            11.2.0              h69a702a_12    conda-forge
libgfortran5              11.2.0              h5c6108e_12    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libimagequant             2.17.0               h7f98852_1    conda-forge
liblapack                 3.9.0            13_linux64_mkl    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libstdcxx-ng              11.2.0              he4da1e4_12    conda-forge
libtiff                   4.3.0                h6f004c6_2    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libwebp                   1.2.2                h3452ae3_0    conda-forge
libwebp-base              1.2.2                h7f98852_1    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxml2                   2.9.12               h885dcf4_1    conda-forge
libxslt                   1.1.33               h0ef7038_3    conda-forge
libzlib                   1.2.11            h36c2ea0_1013    conda-forge
llvm-openmp               12.0.1               h4bd325d_1    conda-forge
lxml                      4.7.1            py39h107f48f_0    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
matplotlib-base           3.5.1            py39h2fa2bec_0    conda-forge
mkl                       2022.0.1           h8d4b97c_803    conda-forge
mrio_common_metadata      0.1.1                      py_0    cmutel
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
ncurses                   6.3                  h9c3ff4c_0    conda-forge
numpy                     1.22.2           py39h91f2184_0    conda-forge
openjpeg                  2.4.0                hb52868f_1    conda-forge
openpyxl                  3.0.9              pyhd8ed1ab_0    conda-forge
openssl                   1.1.1l               h7f98852_0    conda-forge
packaging                 21.3               pyhd8ed1ab_0    conda-forge
pandas                    1.4.0            py39hde0f152_0    conda-forge
peewee                    3.14.8           py39hf3435bc_1    conda-forge
pillow                    9.0.1            py39he69867a_0    conda-forge
pip                       22.0.3             pyhd8ed1ab_0    conda-forge
psutil                    5.9.0            py39h3811e60_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pypardiso                 0.4.0              pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.7              pyhd8ed1ab_0    conda-forge
pyprind                   2.11.2          py39hf3d152e_1002    conda-forge
pysocks                   1.7.1            py39hf3d152e_4    conda-forge
python                    3.9.10          h85951f9_2_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.9                      2_cp39    conda-forge
pytz                      2021.3             pyhd8ed1ab_0    conda-forge
readline                  8.1                  h46c0cb4_0    conda-forge
requests                  2.27.1             pyhd8ed1ab_0    conda-forge
scipy                     1.8.0            py39hee8e79c_0    conda-forge
setuptools                60.7.1           py39hf3d152e_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sqlite                    3.37.0               h9cd32fc_0    conda-forge
stats_arrays              0.6.5                      py_2    cmutel
tabulate                  0.8.9              pyhd8ed1ab_0    conda-forge
tbb                       2021.5.0             h4bd325d_0    conda-forge
tk                        8.6.11               h27826a3_1    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
unicodecsv                0.14.1                     py_1    conda-forge
unicodedata2              14.0.0           py39h3811e60_0    conda-forge
unidecode                 1.3.2              pyhd8ed1ab_0    conda-forge
urllib3                   1.26.8             pyhd8ed1ab_1    conda-forge
voluptuous                0.12.2             pyhd8ed1ab_1    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
whoosh                    2.7.4            py39hf3d152e_5    conda-forge
wrapt                     1.13.3           py39h3811e60_1    conda-forge
xlrd                      2.0.1              pyhd8ed1ab_3    conda-forge
xlsxwriter                3.0.2              pyhd8ed1ab_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h36c2ea0_1013    conda-forge
zstd                      1.5.2                ha95c52a_0    conda-forge

@haasad
Copy link
Contributor Author

haasad commented Feb 7, 2022

It looks to me like the try-except block in __init__.py errors:

try:
from .monte_carlo import (
ComparativeMonteCarlo,
direct_solving_worker,
DirectSolvingMixin,
DirectSolvingMonteCarloLCA,
MonteCarloLCA,
MultiMonteCarlo,
ParallelMonteCarlo,
)
from .mc_vector import ParameterVectorLCA
except ImportError:
None

But ComparativeMonteCarlo is nevertheless exported in __all__:

__all__ = [
'ComparativeMonteCarlo',

Because of this import bw2calc works without issues, but from bw2calc import * errors.

@haasad
Copy link
Contributor Author

haasad commented Feb 7, 2022

I suspect that scipy 1.8.0 has API changes that break things, it was released yesterday: https://github.com/scipy/scipy/releases/tag/v1.8.0

Especially:

Clear split between public and private API

SciPy has always documented what its public API consisted of in
:ref:its API reference docs ,
however there never was a clear split between public and
private namespaces in the code base. In this release, all namespaces that were
private but happened to miss underscores in their names have been deprecated.
These include (as examples, there are many more):
[...]

  • scipy.sparse.linalg.solve

from scipy.sparse.linalg import iterative

@cmutel
Copy link
Member

cmutel commented Feb 7, 2022

Fixed in 2f5c7ac. Released in 1.8.1, on pypi but not yet anaconda as I am having trouble building the package correctly.

@cmutel cmutel closed this as completed Feb 7, 2022
@haasad
Copy link
Contributor Author

haasad commented Feb 10, 2022

@cmutel I think there's still something wrong with the 1.8.1 conda package:

conda search -c cmutel bw2calc=1.8.1 --info
Loading channels: done
bw2calc 1.8.1 py_0
------------------
file name   : bw2calc-1.8.1-py_0.tar.bz2
name        : bw2calc
version     : 1.8.1
build       : py_0
build number: 0
size        : 27 KB
license     : BSD 3-Clause
subdir      : noarch
url         : https://conda.anaconda.org/cmutel/noarch/bw2calc-1.8.1-py_0.tar.bz2
md5         : 4e80096b5412facce787f09fbd4f8246
timestamp   : 2022-02-07 19:17:23 UTC
dependencies: 
  - eight
  - numpy
  - python
  - python_abi 3.7.* *_cp37m
  - scipy
  - stats_arrays

For some reason there's a dependency on python_abi 3.7.* *_cp37m and it's therefore only installable for python 3.7.

Let me know if I can help with a PR or so, but https://github.com/cmutel/conda-recipes does not appear to be up-to-date.

@cmutel
Copy link
Member

cmutel commented Feb 14, 2022

@haasad Thanks a lot. Not sure how this would have happened as the recipe didn't have a Python version and the build Python was 3.9.

I guess specifying:

ignore_run_exports: - python_abi

Means that a package is locked to a certain version? I specced >=3.9, but now it seems like it is locked to 3.10. This isn't a problem, per se, but it might make updating existing envs messier than it otherwise could be.

@cmutel
Copy link
Member

cmutel commented Feb 14, 2022

(There are new packages for bw2calc and brightway2, but the latter is still 3.7?)

@haasad
Copy link
Contributor Author

haasad commented Feb 14, 2022

for PYVER in "3.7" "3.8" "3.9" "3.10"; do echo $PYVER; conda create -n t -q -d -c conda-forge -c cmutel brightway2=2.4.2 python=$PYVER --json | jq .success; done 
3.7
true
3.8
null
3.9
null
3.10
true

From what I can see brightway2 is only install-able for 3.7 and 3.10 with this config.

This isn't a problem, per se, but it might make updating existing envs messier than it otherwise could be.

It's a problem insofar as the activity-browser dosen't yet run with 3.10 and has dropped support for 3.7 😄

Do you remember/know why the ignore_run_exports: - python_abi is needed?

@cmutel
Copy link
Member

cmutel commented Feb 14, 2022

I would be fine generating multiple packages (I guess just increment the version number?) for different ABIs.

I think the ironic thing is that ignore_run_exports is supposed to make packages without a dependency on a particular version of cpython...

btw, @haasad, I wrote an email to your work address, please let me know if you didn't get it or reach out to me directly so I have a way outside Github issues to contact you :)

@haasad
Copy link
Contributor Author

haasad commented Feb 14, 2022

I would be fine generating multiple packages (I guess just increment the version number?) for different ABIs.

I think the ironic thing is that ignore_run_exports is supposed to make packages without a dependency on a particular version of cpython...

Yes, very strange. Defeats the noarch idea a bit

btw, @haasad, I wrote an email to your work address, please let me know if you didn't get it or reach out to me directly so I have a way outside Github issues to contact you :)

I'll get in touch 👍

@tngTUDOR
Copy link
Contributor

The recipe for the pre bw25 bw2calc is https://github.com/cmutel/conda-recipes/blob/master/bw2calc_legacy/

@tngTUDOR
Copy link
Contributor

It seems that conda-build respects the noarch only as of version 3.18.2 (https://gitter.im/conda/conda-build?at=5ea9bb185cd4fe50a3dbfcbd, conda/conda-build#3956 )

When using a newer conda-build (3.21) I get a bw2calc_legacy package that doesn't have the "python_abi 3.10* *_cp310.

1c1
< # This file created by conda-build 3.17.8
---
> # This file created by conda-build 3.21.5
3c3
< # /Users/cmutel/Code/conda-recipes/bw2calc_legacy, last modified Mon Feb 14 11:44:06 2022
---
> # /home/birdslegacy/nest/bw2tools/conda-recipes/bw2calc_legacy, last modified Thu Feb 17 10:22:46 2022
7,8c7,8
<     name: bw2calc
<     version: 1.8.1
---
>   name: bw2calc
>   version: 1.8.1
10,12c10,12
<     fn: bw2calc-1.8.1.tar.gz
<     sha256: 0bc9d26b98013be97a91f1fddf23ad42e65c95d638d50788493b52a401e8e895
<     url: https://pypi.io/packages/source/b/bw2calc/bw2calc-1.8.1.tar.gz
---
>   fn: bw2calc-1.8.1.tar.gz
>   sha256: 0bc9d26b98013be97a91f1fddf23ad42e65c95d638d50788493b52a401e8e895
>   url: https://pypi.io/packages/source/b/bw2calc/bw2calc-1.8.1.tar.gz
14,17c14,17
<     noarch: python
<     number: '1'
<     script: python setup.py install --single-version-externally-managed --record record.txt
<     string: py_1
---
>   noarch: python
>   number: '1'
>   script: python setup.py install --single-version-externally-managed --record record.txt
>   string: py_1
19,43c19,48
<     build:
<         - bzip2 1.0.8 h0d85af4_4
<         - ca-certificates 2021.10.8 h033912b_0
<         - libffi 3.4.2 h0d85af4_5
<         - libzlib 1.2.11 h9173be1_1013
<         - ncurses 6.3 he49afe7_0
<         - openssl 3.0.0 h0d85af4_2
<         - pip 22.0.3 pyhd8ed1ab_0
<         - python 3.10.2 hea1dfa3_3_cpython
<         - python_abi 3.10 2_cp310
<         - readline 8.1 h05e3726_0
<         - setuptools 60.8.2 py310h2ec42d9_0
<         - sqlite 3.37.0 h23a322b_0
<         - tk 8.6.11 h5dbffcc_1
<         - tzdata 2021e he74cb21_0
<         - wheel 0.37.1 pyhd8ed1ab_0
<         - xz 5.2.5 haf1e3a3_1
<         - zlib 1.2.11 h9173be1_1013
<     run:
<         - eight
<         - numpy
<         - python
<         - python_abi 3.10.* *_cp310
<         - scipy
<         - stats_arrays
---
>   build:
>     - _libgcc_mutex 0.1 main
>     - _openmp_mutex 4.5 1_gnu
>     - bzip2 1.0.8 h7b6447c_0
>     - ca-certificates 2021.10.26 h06a4308_2
>     - certifi 2021.5.30 py310h06a4308_0
>     - ld_impl_linux-64 2.35.1 h7274673_9
>     - libffi 3.3 he6710b0_2
>     - libgcc-ng 9.3.0 h5101ec6_17
>     - libgomp 9.3.0 h5101ec6_17
>     - libstdcxx-ng 9.3.0 hd4cf53a_17
>     - libuuid 1.0.3 h7f8727e_2
>     - ncurses 6.3 h7f8727e_2
>     - openssl 1.1.1m h7f8727e_0
>     - pip 21.2.4 py310h06a4308_0
>     - python 3.10.0 h12debd9_4
>     - readline 8.1.2 h7f8727e_1
>     - setuptools 58.0.4 py310h06a4308_0
>     - sqlite 3.37.2 hc218d9a_0
>     - tk 8.6.11 h1ccaba5_0
>     - tzdata 2021e hda174b7_0
>     - wheel 0.37.1 pyhd3eb1b0_0
>     - xz 5.2.5 h7b6447c_0
>     - zlib 1.2.11 h7f8727e_4
>   run:
>     - eight
>     - numpy
>     - python
>     - scipy
>     - stats_arrays
45,46c50,51
<     imports:
<         - bw2calc
---
>   imports:
>     - bw2calc
48,54c53,59
<     dev_url: https://bitbucket.org/cmutel/brightway2-calc/
<     doc_url: https://docs.brightwaylca.org/
<     home: https://brightwaylca.org/
<     license: BSD 3-Clause
<     license_family: BSD
<     license_file: LICENSE.txt
<     summary: The calculation engine for the Brightway2 life cycle assessment framework
---
>   dev_url: https://bitbucket.org/cmutel/brightway2-calc/
>   doc_url: https://docs.brightwaylca.org/
>   home: https://brightwaylca.org/
>   license: BSD 3-Clause
>   license_family: BSD
>   license_file: LICENSE.txt
>   summary: The calculation engine for the Brightway2 life cycle assessment framework
56,57c61,62
<     copy_test_source_files: true
<     final: true
---
>   copy_test_source_files: true
>   final: true

@cmutel
Copy link
Member

cmutel commented Feb 17, 2022

@haasad @tngTUDOR I think things should be fixed now. The problems were:

  • bw2calc was not released as a noarch build, but did not have ignore_run_exports: - python_abi, meaning that each conda package would be tied to one version of Python. I added the ignoring of python_abi to the bw2calc recipe.
  • bw2data was using collections instead of collections.abc, and this finally broke in Py 3.10. I released a new version of bw2data.

@tngTUDOR
Copy link
Contributor

After a little playing with github actions, I created one for the "bw2calc_legacy" under my fork of cmutel/conda-recipes, and I can produce with it a noarch conda package.

@tngTUDOR
Copy link
Contributor

tngTUDOR commented Feb 17, 2022

@haasad @tngTUDOR I think things should be fixed now. The problems were:

* `bw2calc` was not released as a `noarch` build, but did not have `ignore_run_exports: - python_abi`, meaning that each conda package would be tied to one version of Python. I added the ignoring of `python_abi` to the `bw2calc` recipe.

* `bw2data` was using `collections` instead of `collections.abc`, and this finally broke in Py 3.10. I released a new version of `bw2data`.

I confirm that creating a conda environment with brightway2 < 2.5 and the following specs/requirements doesn't yield the error referenced by this issue anymore:

  • python=3.10
  • brightway2>=2.4
  • bw2data>=3.6.3
  • bw2calc>=1.8.1,<2.0

(I'll report back on using only brightway2>=2.4)

@cmutel
Copy link
Member

cmutel commented Feb 17, 2022

@tngTUDOR Thanks, having these actions is much better than me manually running the builds. All I would need to do is copy/paste the version and hash. I guess smart people would even automate that as well...

@m-y-reich
Copy link

I'm not sure if I misunderstood what the solution here is, but I'm now getting the same error (I though I didn't change anything...), and it persisted after updating everything.
Is the solution to create an env with specified versions as @tngTUDOR suggested ?

@tngTUDOR
Copy link
Contributor

@m-y-reich can you provide a bit more info on how your setup is not working ?
for example, which specific version of brightway2 packages are installed on your environment ?
(you could get this with conda list or pip list)

@m-y-reich
Copy link

yeah sorry I was about to edit my comment.
here is what I have:

list

(bw2) C:\Users\reim>conda list # # Name Version Build Channel appdirs 1.4.4 pyhd3eb1b0_0 argon2-cffi 21.3.0 pyhd3eb1b0_0 argon2-cffi-bindings 21.2.0 py38h2bbff1b_0 asteval 0.9.23 pyhd8ed1ab_0 conda-forge astunparse 1.6.3 py_0 attrs 21.4.0 pyhd3eb1b0_0 backcall 0.2.0 pyhd3eb1b0_0 blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 bottleneck 1.3.2 py38h2a96729_1 brightway2 2.3 py_4 cmutel brotli 1.0.9 ha925a31_2 brotlipy 0.7.0 py38h2bbff1b_1003 bw2analyzer 0.10 py_1 cmutel bw2calc 2.0.dev5 py_0 cmutel bw2data 3.6.4 py_0 cmutel bw2io 0.8.6 pypi_0 pypi bw2parameters 0.7 py_0 cmutel bw_migrations 0.1 py_0 cmutel bw_processing 0.7.1 py_0 cmutel bzip2 1.0.8 he774522_0 ca-certificates 2021.10.26 haa95532_4 carculator 1.6.0 pypi_0 pypi carculator-truck 0.2.6 pypi_0 pypi carculator_truck 2021.11.18 py_0 romainsacchi certifi 2021.10.8 py38haa95532_2 cffi 1.15.0 py38h2bbff1b_1 cfitsio 3.470 he774522_6 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 7.1.2 pyhd3eb1b0_0 click-plugins 1.1.1 pyhd3eb1b0_0 cligj 0.7.2 py38haa95532_0 colorama 0.4.4 pyhd3eb1b0_0 constructive_geometries 0.7 py_0 cmutel country_converter 0.7.4 pyhd8ed1ab_0 conda-forge cryptography 36.0.0 py38h21b164f_0 curl 7.80.0 h2bbff1b_0 cycler 0.11.0 pyhd3eb1b0_0 debugpy 1.5.1 py38hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 docopt 0.6.2 py38haa95532_0 eight 1.0.0 py_0 conda-forge entrypoints 0.3 py38_0 et-xmlfile 1.1.0 pypi_0 pypi et_xmlfile 1.1.0 py38haa95532_0 expat 2.4.4 h6c2663c_0 fasteners 0.16.3 pyhd3eb1b0_0 fiona 1.8.13.post1 py38h758c064_0 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.10.4 hd328e21_0 freexl 1.0.6 h2bbff1b_0 fs 2.4.11 py38haa244fe_3 conda-forge future 0.18.2 py38_1 gdal 3.0.2 py38hb978731_2 geos 3.8.0 h33f27b4_0 geotiff 1.7.0 h4545760_0 hdf4 4.2.13 h712560f_2 hdf5 1.10.6 h7ebc959_0 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 3.3 pyhd3eb1b0_0 importlib-metadata 4.8.2 py38haa95532_0 importlib_metadata 4.8.2 hd3eb1b0_0 intel-openmp 2022.0.0 haa95532_3663 ipykernel 6.4.1 py38haa95532_1 ipython 7.31.1 py38haa95532_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.5 pyhd3eb1b0_1 jedi 0.18.1 py38haa95532_1 jinja2 3.0.2 pyhd3eb1b0_0 jpeg 9d h2bbff1b_0 jsonschema 3.2.0 pyhd3eb1b0_2 jupyter 1.0.0 py38_7 jupyter_client 7.1.2 pyhd3eb1b0_0 jupyter_console 6.4.0 pyhd3eb1b0_0 jupyter_core 4.9.1 py38haa95532_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 kealib 1.4.14 hde4a422_1 kiwisolver 1.3.2 py38hd77b12b_0 klausen 0.1.1 pypi_0 pypi krb5 1.19.2 h5b6d351_0 libblas 3.9.0 12_win64_mkl conda-forge libcurl 7.80.0 h86230a5_0 libgdal 3.0.2 h3d7c30d_2 libiconv 1.15 h1df5818_7 libnetcdf 4.8.1 h6685c40_1 libpng 1.6.37 h2a8f88b_0 libpq 12.9 hb652d5d_1 libspatialite 4.3.0a h14feca5_20 libssh2 1.9.0 h7a1dbc1_1 libtiff 4.2.0 hd0e1b90_0 libwebp 1.2.0 h2bbff1b_0 libxml2 2.9.12 h0ad7f3c_0 libxslt 1.1.34 he774522_0 libzip 1.5.1 h0ff8eda_1001 lxml 4.7.1 py38h1985fb9_1 lz4-c 1.9.3 h2bbff1b_1 m2w64-expat 2.1.1 2 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gettext 0.19.7 2 m2w64-gmp 6.1.0 2 m2w64-libiconv 1.14 6 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 m2w64-xz 5.2.2 2 markupsafe 2.0.1 py38h2bbff1b_0 matplotlib-base 3.5.0 py38h6214cd6_0 matplotlib-inline 0.1.2 pyhd3eb1b0_2 matrix_utils 0.2.3 py_0 cmutel mistune 0.8.4 py38he774522_1000 mkl 2021.4.0 h0e2418a_729 conda-forge mkl-service 2.4.0 py38h2bbff1b_0 mkl_fft 1.3.1 py38h277e83a_0 mkl_random 1.2.2 py38hf11a4ad_0 mrio_common_metadata 0.1.1 py_0 cmutel msys2-conda-epoch 20160418 1 munch 2.5.0 pyhd3eb1b0_0 munkres 1.1.4 py_0 nb_conda 2.2.1 py38_1 nb_conda_kernels 2.3.1 py38haa95532_0 nbclient 0.5.11 pyhd3eb1b0_0 nbconvert 6.1.0 py38haa95532_0 nbformat 5.1.3 pyhd3eb1b0_0 nest-asyncio 1.5.1 pyhd3eb1b0_0 notebook 6.4.6 py38haa95532_0 numexpr 2.8.1 py38hb80d3ca_0 numpy 1.21.5 py38ha4e8547_0 numpy-base 1.21.5 py38hc2deb75_0 olefile 0.46 pyhd3eb1b0_0 openjpeg 2.4.0 h4fc8c34_0 openpyxl 3.0.9 pyhd3eb1b0_0 openssl 1.1.1m h2bbff1b_0 packaging 21.3 pyhd3eb1b0_0 pandas 1.3.5 py38h6214cd6_0 pandocfilters 1.5.0 pyhd3eb1b0_0 parso 0.8.3 pyhd3eb1b0_0 peewee 3.14.9 py38h91b5285_0 conda-forge pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 8.4.0 py38hd45dc43_0 pip 21.2.2 py38haa95532_0 premise 0.4.2 pypi_0 pypi prettytable 2.2.1 pypi_0 pypi proj 6.2.1 h3758d61_0 prometheus_client 0.13.1 pyhd3eb1b0_0 prompt-toolkit 3.0.20 pyhd3eb1b0_0 prompt_toolkit 3.0.20 hd3eb1b0_0 psutil 5.8.0 py38h2bbff1b_1 pycountry 20.7.3 pyh9f0ad1d_0 conda-forge pycparser 2.21 pyhd3eb1b0_0 pygments 2.11.2 pyhd3eb1b0_0 pyopenssl 22.0.0 pyhd3eb1b0_0 pypardiso 0.4.0 pyhd8ed1ab_0 conda-forge pyparsing 3.0.4 pyhd3eb1b0_0 pyprind 2.11.2 py38haa244fe_1002 conda-forge pyqt 5.9.2 py38hd77b12b_6 pyrsistent 0.18.0 py38h196d8e1_0 pysocks 1.7.1 py38haa95532_0 python 3.8.12 h6244533_0 python-dateutil 2.8.2 pyhd3eb1b0_0 python-json-logger 2.0.1 py_0 python_abi 3.8 2_cp38 conda-forge pytz 2021.3 pyhd3eb1b0_0 pywin32 302 py38h827c3e9_1 pywinpty 2.0.2 py38h5da7b33_0 pyzmq 22.3.0 py38hd77b12b_2 qt 5.9.7 vc14h73c81de_0 qtconsole 5.2.2 pyhd3eb1b0_0 qtpy 1.11.2 pyhd3eb1b0_0 requests 2.27.1 pyhd3eb1b0_0 scipy 1.7.3 py38h0a974cb_0 send2trash 1.8.0 pyhd3eb1b0_1 setuptools 58.0.4 py38haa95532_0 shapely 1.7.1 py38h06580b3_0 sip 4.19.13 py38hd77b12b_0 six 1.16.0 pyhd3eb1b0_1 sqlite 3.37.2 h2bbff1b_0 stats_arrays 0.6.5 py_2 cmutel tabulate 0.8.9 py38haa95532_0 tbb 2021.5.0 h59b6b97_0 terminado 0.13.1 py38haa95532_0 testpath 0.5.0 pyhd3eb1b0_0 tiledb 2.2.9 hf84e3da_0 conda-forge tk 8.6.11 h2bbff1b_0 toolz 0.11.2 pyhd3eb1b0_0 tornado 6.1 py38h2bbff1b_0 tqdm 4.62.3 pyhd3eb1b0_1 traitlets 5.1.1 pyhd3eb1b0_0 typing-extensions 3.10.0.2 hd3eb1b0_0 typing_extensions 3.10.0.2 pyh06a4308_0 unicodecsv 0.14.1 py38_0 unidecode 1.2.0 pyhd3eb1b0_0 urllib3 1.26.8 pyhd3eb1b0_0 vc 14.2 h21ff451_1 voluptuous 0.12.2 pyhd8ed1ab_1 conda-forge vs2015_runtime 14.27.29016 h5e58377_2 wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py38_1 wheel 0.37.1 pyhd3eb1b0_0 whoosh 2.7.4 pyhd3eb1b0_1 widgetsnbextension 3.5.2 py38haa95532_0 win_inet_pton 1.1.0 py38haa95532_0 wincertstore 0.2 py38haa95532_2 winpty 0.4.3 4 wrapt 1.13.3 py38h2bbff1b_2 wurst 0.3.1 pypi_0 pypi xarray 0.16.2 pypi_0 pypi xerces-c 3.2.3 ha925a31_0 xlrd 1.1.0 py_2 conda-forge xlsxwriter 3.0.2 pyhd3eb1b0_0 xz 5.2.5 h62dcd97_0 zipp 3.7.0 pyhd3eb1b0_0 zlib 1.2.11 h8cc25b3_4 zstd 1.4.9 h19a0ad4_0

@tngTUDOR
Copy link
Contributor

I'm not sure if I misunderstood what the solution here is, but I'm now getting the same error (I though I didn't change anything...), and it persisted after updating everything. Is the solution to create an env with specified versions as @tngTUDOR suggested ?

It seems that you need to update the brightway2 metapackage:

conda update -c cmutel -c haasad brightway2

because the past install couldn't update to brightway2 >= 2.4 (because of teh issue in case)

@m-y-reich
Copy link

ah ok, thank you! yes this worked.
I was using the code to update as listed in the bw documentation, (conda update -c conda-forge -c cmutel -c haasad brightway2 bw2data bw2io bw2calc bw2analyzer) which somehow seems not to have done the job.

thank you!

@JaneT1717
Copy link

I'm not sure if I misunderstood what the solution here is, but I'm now getting the same error (I though I didn't change anything...), and it persisted after updating everything. Is the solution to create an env with specified versions as @tngTUDOR suggested ?

It seems that you need to update the brightway2 metapackage:

conda update -c cmutel -c haasad brightway2

because the past install couldn't update to brightway2 >= 2.4 (because of teh issue in case)

Hi there,
After updating the pkg by using : "conda update -c cmutel -c haasad brightway2", an error popped up showing
"File "/Users/**/anaconda3/envs/bw2/lib/python3.10/site-packages/eight/utils.py", line 41, in getattr
self._module = import(self._name)

ModuleNotFoundError: No module named '_dummy_thread' ".

Could I have some ideas on solving this issue?

@tngTUDOR
Copy link
Contributor

Hi,

Can you provide more info on your installation please ?

https://docs.conda.io/projects/conda/en/latest/commands/list.html

@JaneT1717
Copy link

JaneT1717 commented May 19, 2022

Just tried to re-install by using the code below in the mac terminal (Intel chip):

"conda create -n ab705_4 -c conda-forge -c cmutel python=3.9 brightway2
conda activate ab705_4
conda update -c cmutel -c haasad brightway2"

when I tried to "import brightway2 as bw", the error showed up :
"File "/Users/**/anaconda3/envs/ab705_4/lib/python3.9/site-packages/eight/utils.py", line 41, in getattr
self._module = import(self._name)
ModuleNotFoundError: No module named '_dummy_thread' "

Here is the full list of the pkgs in "ab705_4":
alabaster 0.7.12 py_0 conda-forge
appdirs 1.4.4 pyh9f0ad1d_0 conda-forge
applaunchservices 0.2.1 py_0 conda-forge
appnope 0.1.3 pyhd8ed1ab_0 conda-forge
arrow 1.2.2 pyhd8ed1ab_0 conda-forge
asteval 0.9.26 pyhd8ed1ab_0 conda-forge
astroid 2.11.5 py39h6e9494a_0 conda-forge
astunparse 1.6.3 pyhd8ed1ab_0 conda-forge
atomicwrites 1.4.0 pyh9f0ad1d_0 conda-forge
attrs 21.4.0 pyhd8ed1ab_0 conda-forge
autopep8 1.6.0 pyhd8ed1ab_1 conda-forge
babel 2.10.1 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
beautifulsoup4 4.11.1 pyha770c72_0 conda-forge
binaryornot 0.4.4 py_1 conda-forge
black 22.3.0 pyhd8ed1ab_0 conda-forge
bleach 5.0.0 pyhd8ed1ab_0 conda-forge
brightway2 2.4.2 py_4 cmutel
brotli 1.0.9 h5eb16cf_7 conda-forge
brotli-bin 1.0.9 h5eb16cf_7 conda-forge
brotlipy 0.7.0 py39h63b48b0_1004 conda-forge
bw2analyzer 0.10 py_1 cmutel
bw2calc 1.8.1 py_2 cmutel
bw2data 3.6.4 py_0 cmutel
bw2io 0.8.6 py_1 cmutel
bw2parameters 0.7 py_0 cmutel
bw_migrations 0.1 py_0 cmutel
bzip2 1.0.8 h0d85af4_4 conda-forge
ca-certificates 2022.5.18 h033912b_0 conda-forge
certifi 2022.5.18 py39h6e9494a_0 conda-forge
cffi 1.15.0 py39he338e87_0 conda-forge
chardet 4.0.0 py39h6e9494a_3 conda-forge
charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge
click 8.1.3 py39h6e9494a_0 conda-forge
cloudpickle 2.0.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
cookiecutter 1.7.3 pyh6c4a22f_1 conda-forge
cryptography 37.0.1 py39hf6deb26_0
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
dataclasses 0.8 pyhc8e2a94_3 conda-forge
debugpy 1.6.0 py39hfd1d529_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
diff-match-patch 20200713 pyh9f0ad1d_0 conda-forge
dill 0.3.4 pyhd8ed1ab_0 conda-forge
docopt 0.6.2 py_1 conda-forge
docutils 0.15.2 py39h6e9494a_3 conda-forge
eight 1.0.0 py_0 conda-forge
entrypoints 0.4 pyhd8ed1ab_0 conda-forge
et_xmlfile 1.0.1 py_1001 conda-forge
fasteners 0.17.3 pyhd8ed1ab_0 conda-forge
flake8 4.0.1 pyhd8ed1ab_2 conda-forge
fonttools 4.33.3 py39h701faf5_0 conda-forge
freetype 2.10.4 h4cff582_1 conda-forge
future 0.18.2 py39h6e9494a_5 conda-forge
gettext 0.19.8.1 hd1a6beb_1008 conda-forge
giflib 5.2.1 hbcb3906_2 conda-forge
gst-plugins-base 1.20.2 hda0ba4b_1 conda-forge
gstreamer 1.20.2 hdc08c3f_1 conda-forge
icu 70.1 h96cf925_0 conda-forge
idna 3.3 pyhd8ed1ab_0 conda-forge
imagesize 1.3.0 pyhd8ed1ab_0 conda-forge
importlib-metadata 4.11.3 py39h6e9494a_1 conda-forge
importlib_metadata 4.11.3 hd8ed1ab_1 conda-forge
importlib_resources 5.7.1 pyhd8ed1ab_1 conda-forge
inflection 0.5.1 pyh9f0ad1d_0 conda-forge
intervaltree 3.0.2 py_0 conda-forge
ipykernel 6.13.0 py39h71a6800_0 conda-forge
ipython 7.33.0 py39h6e9494a_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
isort 5.10.1 pyhd8ed1ab_0 conda-forge
jbig 2.1 h0d85af4_2003 conda-forge
jedi 0.18.1 py39h6e9494a_1 conda-forge
jellyfish 0.9.0 py39h63b48b0_1 conda-forge
jinja2 3.0.3 pyhd8ed1ab_0 conda-forge
jinja2-time 0.2.0 pyhd8ed1ab_3 conda-forge
jpeg 9e h5eb16cf_1 conda-forge
jsonschema 4.5.1 pyhd8ed1ab_0 conda-forge
jupyter_client 7.3.1 pyhd8ed1ab_0 conda-forge
jupyter_core 4.10.0 py39h6e9494a_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
keyring 23.4.0 py39h6e9494a_2 conda-forge
kiwisolver 1.4.2 py39h7248d28_1 conda-forge
krb5 1.19.3 hb49756b_0 conda-forge
lazy-object-proxy 1.7.1 py39h63b48b0_1 conda-forge
lcms2 2.12 h577c468_0 conda-forge
lerc 3.0 he49afe7_0 conda-forge
libblas 3.9.0 14_osx64_mkl conda-forge
libbrotlicommon 1.0.9 h5eb16cf_7 conda-forge
libbrotlidec 1.0.9 h5eb16cf_7 conda-forge
libbrotlienc 1.0.9 h5eb16cf_7 conda-forge
libcblas 3.9.0 14_osx64_mkl conda-forge
libclang 14.0.3 default_h55ffa42_0 conda-forge
libclang13 14.0.3 default_hb5731bd_0 conda-forge
libcxx 14.0.3 hc203e6f_0 conda-forge
libdeflate 1.10 h0d85af4_0 conda-forge
libedit 3.1.20191231 h0678c8f_2 conda-forge
libffi 3.4.2 h0d85af4_5 conda-forge
libgfortran 5.0.0 9_3_0_h6c81a4c_23 conda-forge
libgfortran5 9.3.0 h6c81a4c_23 conda-forge
libglib 2.70.2 hf1fb8c0_4 conda-forge
libiconv 1.16 haf1e3a3_0 conda-forge
liblapack 3.9.0 14_osx64_mkl conda-forge
libllvm14 14.0.3 h41df66c_0 conda-forge
libogg 1.3.4 h35c211d_1 conda-forge
libopus 1.3.1 hc929b4f_1 conda-forge
libpng 1.6.37 h7cec526_2 conda-forge
libpq 14.3 hf6bb32a_0 conda-forge
libsodium 1.0.18 hbcb3906_1 conda-forge
libspatialindex 1.9.3 he49afe7_4 conda-forge
libtiff 4.3.0 h17f2ce3_3 conda-forge
libvorbis 1.3.7 h046ec9c_0 conda-forge
libwebp 1.2.2 h28dabe5_0 conda-forge
libwebp-base 1.2.2 h0d85af4_1 conda-forge
libxcb 1.13 h0d85af4_1004 conda-forge
libxml2 2.9.14 h08a9926_0 conda-forge
libxslt 1.1.33 h5bff336_4 conda-forge
libzlib 1.2.11 h6c3fc93_1014 conda-forge
llvm-openmp 14.0.3 ha654fa7_0 conda-forge
lxml 4.8.0 py39h63b48b0_3 conda-forge
lz4-c 1.9.3 he49afe7_1 conda-forge
markupsafe 2.1.1 py39h63b48b0_1 conda-forge
matplotlib-base 3.5.2 py39h64a0072_0 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
mccabe 0.6.1 py_1 conda-forge
mistune 0.8.4 py39h89e85a6_1005 conda-forge
mkl 2022.1.0 h860c996_928 conda-forge
mrio_common_metadata 0.2.1 py_0 cmutel
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
mypy_extensions 0.4.3 py39h6e9494a_5 conda-forge
mysql-common 8.0.29 h924029e_1 conda-forge
mysql-libs 8.0.29 h3cab752_1 conda-forge
nbclient 0.6.3 pyhd8ed1ab_0 conda-forge
nbconvert 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-core 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-pandoc 6.5.0 pyhd8ed1ab_0 conda-forge
nbformat 5.4.0 pyhd8ed1ab_0 conda-forge
ncurses 6.3 h96cf925_1 conda-forge
nest-asyncio 1.5.5 pyhd8ed1ab_0 conda-forge
nspr 4.32 hcd9eead_1 conda-forge
nss 3.77 hfce436b_0 conda-forge
numpy 1.22.3 py39h214027c_2 conda-forge
numpydoc 1.3.1 pyhd8ed1ab_0 conda-forge
openjpeg 2.4.0 h6e7aa92_1 conda-forge
openpyxl 3.0.9 pyhd8ed1ab_0 conda-forge
openssl 1.1.1o hfe4f2af_0 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.4.2 py39hbd61c47_1 conda-forge
pandoc 2.18 h694c41f_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
pathspec 0.9.0 pyhd8ed1ab_0 conda-forge
pcre 8.45 he49afe7_0 conda-forge
peewee 3.14.10 py39h9a19eac_1 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pillow 9.1.1 py39h579eac4_0 conda-forge
pip 22.1 pyhd8ed1ab_0 conda-forge
platformdirs 2.5.1 pyhd8ed1ab_0 conda-forge
pluggy 1.0.0 py39h6e9494a_3 conda-forge
poyo 0.5.0 py_0 conda-forge
prompt-toolkit 3.0.29 pyha770c72_0 conda-forge
psutil 5.9.0 py39h63b48b0_1 conda-forge
pthread-stubs 0.4 hc929b4f_1001 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pycodestyle 2.8.0 pyhd8ed1ab_0 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pydocstyle 6.1.1 pyhd8ed1ab_0 conda-forge
pyflakes 2.4.0 pyhd8ed1ab_0 conda-forge
pygments 2.12.0 pyhd8ed1ab_0 conda-forge
pylint 2.13.9 pyhd8ed1ab_1 conda-forge
pyls-spyder 0.4.0 pyhd8ed1ab_0 conda-forge
pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge
pypardiso 0.4.1 py_0 haasad
pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge
pyprind 2.11.2 py39h6e9494a_1002 conda-forge
pyqt 5.15.4 py39heb84ab9_0 conda-forge
pyqt5-sip 12.9.0 py39heb84ab9_0 conda-forge
pyqtwebengine 5.15.4 py39heb84ab9_0 conda-forge
pyrsistent 0.18.1 py39h63b48b0_1 conda-forge
pysocks 1.7.1 py39h6e9494a_5 conda-forge
python 3.9.12 h8b4d769_1_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-fastjsonschema 2.15.3 pyhd8ed1ab_0 conda-forge
python-lsp-black 1.2.1 pyhd8ed1ab_0 conda-forge
python-lsp-jsonrpc 1.0.0 pyhd8ed1ab_0 conda-forge
python-lsp-server 1.4.1 pyhd8ed1ab_1 conda-forge
python-slugify 6.1.2 pyhd8ed1ab_0 conda-forge
python.app 1.4 py39h89e85a6_0 conda-forge
python_abi 3.9 2_cp39 conda-forge
pytz 2022.1 pyhd8ed1ab_0 conda-forge
pyxlsb 1.0.9 pyhd8ed1ab_0 conda-forge
pyyaml 6.0 py39h63b48b0_4 conda-forge
pyzmq 23.0.0 py39hd639792_0 conda-forge
qdarkstyle 3.0.3 pyhd8ed1ab_0 conda-forge
qstylizer 0.2.1 pyhd8ed1ab_0 conda-forge
qt-main 5.15.3 h938c29d_1 conda-forge
qt-webengine 5.15.4 h72ca1e5_3 conda-forge
qtawesome 1.1.1 pyhd8ed1ab_0 conda-forge
qtconsole 5.3.0 pyhd8ed1ab_0 conda-forge
qtconsole-base 5.3.0 pyhd8ed1ab_0 conda-forge
qtpy 2.1.0 pyhd8ed1ab_0 conda-forge
readline 8.1 h05e3726_0 conda-forge
requests 2.27.1 pyhd8ed1ab_0 conda-forge
rope 1.0.0 pyhd8ed1ab_0 conda-forge
rtree 1.0.0 py39h7d0d40a_1 conda-forge
scipy 1.8.0 py39h056f1c0_1 conda-forge
setuptools 62.3.1 py39h6e9494a_0 conda-forge
setuptools-scm 6.4.2 pyhd8ed1ab_0 conda-forge
sip 6.5.1 py39h9fcab8e_2 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge
sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge
soupsieve 2.3.1 pyhd8ed1ab_0 conda-forge
sphinx 4.5.0 pyh6c4a22f_0 conda-forge
sphinxcontrib-applehelp 1.0.2 py_0 conda-forge
sphinxcontrib-devhelp 1.0.2 py_0 conda-forge
sphinxcontrib-htmlhelp 2.0.0 pyhd8ed1ab_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.3 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.5 pyhd8ed1ab_2 conda-forge
spyder 5.3.0 py39h6e9494a_0 conda-forge
spyder-kernels 2.3.0 py39h6e9494a_0 conda-forge
sqlite 3.38.5 hd9f0692_0 conda-forge
stats_arrays 0.6.5 py_2 cmutel
tabulate 0.8.9 pyhd8ed1ab_0 conda-forge
tbb 2021.5.0 hbb4e6a2_1 conda-forge
text-unidecode 1.3 py_0 conda-forge
textdistance 4.2.2 pyhd8ed1ab_0 conda-forge
three-merge 0.1.1 pyh9f0ad1d_0 conda-forge
tinycss2 1.1.1 pyhd8ed1ab_0 conda-forge
tk 8.6.12 h5dbffcc_0 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tornado 6.1 py39h63b48b0_3 conda-forge
traitlets 5.2.1.post0 pyhd8ed1ab_0 conda-forge
typed-ast 1.5.3 py39h63b48b0_0 conda-forge
typing-extensions 4.2.0 hd8ed1ab_1 conda-forge
typing_extensions 4.2.0 pyha770c72_1 conda-forge
tzdata 2022a h191b570_0 conda-forge
ujson 5.2.0 py39hfd1d529_1 conda-forge
unicodecsv 0.14.1 py_1 conda-forge
unicodedata2 14.0.0 py39h63b48b0_1 conda-forge
unidecode 1.3.4 pyhd8ed1ab_0 conda-forge
urllib3 1.26.9 pyhd8ed1ab_0 conda-forge
voluptuous 0.13.1 pyhd8ed1ab_0 conda-forge
watchdog 2.1.8 py39h0056ad7_1 conda-forge
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
whoosh 2.7.4 py39h6e9494a_5 conda-forge
wrapt 1.14.1 py39h701faf5_0 conda-forge
wurlitzer 3.0.2 pyhd8ed1ab_2 conda-forge
xlrd 2.0.1 pyhd8ed1ab_3 conda-forge
xlsxwriter 3.0.3 pyhd8ed1ab_0 conda-forge
xorg-libxau 1.0.9 h35c211d_0 conda-forge
xorg-libxdmcp 1.1.3 h35c211d_0 conda-forge
xz 5.2.5 haf1e3a3_1 conda-forge
yaml 0.2.5 h0d85af4_2 conda-forge
yapf 0.32.0 pyhd8ed1ab_0 conda-forge
zeromq 4.3.4 he49afe7_1 conda-forge
zipp 3.8.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.11 h6c3fc93_1014 conda-forge
zstd 1.5.2 ha9df2e0_1 conda-forge

@haasad
Copy link
Contributor Author

haasad commented May 19, 2022

Can't reproduce your error on Linux but it looks like you run into this issue: kislyuk/eight#9

Unfortunately it looks like the mentioned fixed version 1.0.1 has not be released on conda-forge:

conda search -c conda-forge eight=1
Loading channels: done
# Name                       Version           Build  Channel             
eight                          1.0.0            py_0  conda-forge 

Can you try if this fixes your problem?:

conda activate ab705_4
conda remove eight --force
pip install eight

@JaneT1717
Copy link

Problem solved! Successfully import brightway2 without errors.
Many thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants