-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments
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 |
It looks to me like the brightway2-calc/bw2calc/__init__.py Lines 35 to 47 in 6afe1dc
But brightway2-calc/bw2calc/__init__.py Lines 3 to 4 in 6afe1dc
Because of this |
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:
brightway2-calc/bw2calc/monte_carlo.py Line 10 in 6afe1dc
|
Fixed in 2f5c7ac. Released in 1.8.1, on pypi but not yet anaconda as I am having trouble building the package correctly. |
@cmutel I think there's still something wrong with the 1.8.1 conda package:
For some reason there's a dependency on 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. |
@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:
Means that a package is locked to a certain version? I specced |
(There are new packages for |
From what I can see brightway2 is only install-able for 3.7 and 3.10 with this config.
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 |
I would be fine generating multiple packages (I guess just increment the version number?) for different ABIs. I think the ironic thing is that 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 :) |
Yes, very strange. Defeats the
I'll get in touch 👍 |
The recipe for the pre bw25 bw2calc is https://github.com/cmutel/conda-recipes/blob/master/bw2calc_legacy/ |
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
|
@haasad @tngTUDOR I think things should be fixed now. The problems were:
|
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. |
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:
(I'll report back on using only brightway2>=2.4) |
@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 can you provide a bit more info on how your setup is not working ? |
yeah sorry I was about to edit my comment. 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 |
It seems that you need to update the brightway2 metapackage:
because the past install couldn't update to brightway2 >= 2.4 (because of teh issue in case) |
ah ok, thank you! yes this worked. thank you! |
Hi there, ModuleNotFoundError: No module named '_dummy_thread' ". Could I have some ideas on solving this issue? |
Hi, Can you provide more info on your installation please ? https://docs.conda.io/projects/conda/en/latest/commands/list.html |
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 when I tried to "import brightway2 as bw", the error showed up : Here is the full list of the pkgs in "ab705_4": |
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:
Can you try if this fixes your problem?:
|
Problem solved! Successfully import brightway2 without errors. |
When installing the latest version of the
brightway2
metapackage (2.4.1) or also just the latest stable release ofbw2calc
(1.8.0), I get the following error:AttributeError: module 'bw2calc' has no attribute 'ComparativeMonteCarlo'
To reproduce:
bw2calc
works fine:brightway2
fails:The text was updated successfully, but these errors were encountered: