Hi, i'm trying to import brightway2 in an virtual environment using pipenv. I get the following error:
brightwaybash-3.2$ pipenv install brightway2
Installing brightway2...
Error: An error occurred while installing brightway2!
Error text: Collecting brightway2
Using cached brightway2-2.4.2.tar.gz (3.4 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting appdirs
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting asteval
Using cached asteval-0.9.26.tar.gz (40 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting bw2analyzer<0.10.99
Using cached bw2analyzer-0.10.tar.gz (26 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting bw2calc==1.8.1
Using cached bw2calc-1.8.1.tar.gz (56 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting bw2data<3.99
Using cached bw2data-3.6.4.tar.gz (106 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting bw2io<0.8.9
Using cached bw2io-0.8.6.tar.gz (26.9 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting bw2parameters>=0.6.5
Using cached bw2parameters-0.7.tar.gz (20 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting eight
Using cached eight-1.0.1-py2.py3-none-any.whl (10 kB)
Collecting flask
Using cached Flask-2.1.1-py3-none-any.whl (95 kB)
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting lxml
Using cached lxml-4.8.0-cp310-cp310-macosx_10_15_x86_64.whl (4.6 MB)
Requirement already satisfied: numpy in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (1.22.3)
Collecting peewee>=3.0
Using cached peewee-3.14.10.tar.gz (855 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: psutil in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (5.9.0)
Collecting pyprind
Using cached PyPrind-2.11.3-py2.py3-none-any.whl (8.4 kB)
Requirement already satisfied: requests in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (2.27.1)
Requirement already satisfied: scipy in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (1.8.0)
Collecting stats_arrays>=0.6.5
Using cached stats_arrays-0.6.5.tar.gz (23 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting unicodecsv
Using cached unicodecsv-0.14.1.tar.gz (10 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting voluptuous
Using cached voluptuous-0.13.1-py3-none-any.whl (29 kB)
Collecting whoosh
Using cached Whoosh-2.7.4-py2.py3-none-any.whl (468 kB)
Collecting xlrd
Using cached xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
Collecting xlsxwriter
Using cached XlsxWriter-3.0.3-py3-none-any.whl (149 kB)
Collecting matplotlib
Using cached matplotlib-3.5.1-cp310-cp310-macosx_10_9_x86_64.whl (7.3 MB)
Requirement already satisfied: pandas in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from bw2analyzer<0.10.99->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (1.4.2)
Collecting tabulate
Using cached tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting fasteners
Using cached fasteners-0.17.3-py3-none-any.whl (18 kB)
Collecting wrapt
Using cached wrapt-1.14.0-cp310-cp310-macosx_10_9_x86_64.whl (35 kB)
Collecting bw_migrations
Using cached bw_migrations-0.2.tar.gz (10 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting mrio_common_metadata
Using cached mrio_common_metadata-0.2.tar.gz (12 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: openpyxl in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from bw2io<0.8.9->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (3.0.9)
Collecting unidecode
Using cached Unidecode-1.3.4-py3-none-any.whl (235 kB)
Collecting astunparse
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: certifi>=2017.4.17 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from requests->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (2021.10.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from requests->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from requests->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (1.26.9)
Requirement already satisfied: idna<4,>=2.5 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from requests->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (3.3)
Collecting Werkzeug>=2.0
Using cached Werkzeug-2.1.1-py3-none-any.whl (224 kB)
Collecting click>=8.0
Using cached click-8.1.2-py3-none-any.whl (96 kB)
Collecting Jinja2>=3.0
Using cached Jinja2-3.1.1-py3-none-any.whl (132 kB)
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl (13 kB)
Requirement already satisfied: six<2.0,>=1.6.1 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from astunparse->bw2parameters>=0.6.5->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (1.16.0)
Requirement already satisfied: wheel<1.0,>=0.23.0 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from astunparse->bw2parameters>=0.6.5->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (0.37.1)
Collecting pillow>=6.2.0
Using cached Pillow-9.1.0-cp310-cp310-macosx_10_9_x86_64.whl (3.1 MB)
Requirement already satisfied: python-dateutil>=2.7 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from matplotlib->bw2analyzer<0.10.99->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (2.8.2)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.4.2-cp310-cp310-macosx_10_9_x86_64.whl (65 kB)
Requirement already satisfied: pyparsing>=2.2.1 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from matplotlib->bw2analyzer<0.10.99->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (3.0.8)
Requirement already satisfied: packaging>=20.0 in /Users/datascience/.local/share/virtualenvs/recovo-VTYhDz3q/lib/python3.10/site-packages (from matplotlib->bw2analyzer<0.10.99->brightway2->-r /var/folders/61/vkwks5vs40j9pzn9vtzdt0bh0000gp/T/pipenv-c7spf7zh-requirements/pipenv-j12qgmub-requirement.txt (line 1)) (21.3)
Collecting cycler>=0.10
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Using cached fonttools-4.32.0-py3-none-any.whl (900 kB)
Collecting pyxlsb
Using cached pyxlsb-1.0.9-py2.py3-none-any.whl (23 kB)
Collecting pathlib
Using cached pathlib-1.0.1.tar.gz (49 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This is likely caused by a bug in brightway2. Report this to its maintainers.
✘ Installation Failed
Hi, i'm trying to import brightway2 in an virtual environment using pipenv. I get the following error:
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute
setup.py
since setuptools is not available in the build environment. [end of output]note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
This is likely caused by a bug in brightway2. Report this to its maintainers. ✘ Installation Failed