brightway-lca / brightway-live

🖥️🌿 Browser-based JupyterHub for Brightway (built on WASM, either based on emscripten-forge or on Pyodide)
https://live.brightway.dev
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Dependency Resolution Issues (legacy Packages `psutil`, etc.) #15

Closed michaelweinold closed 1 year ago

michaelweinold commented 1 year ago

The build currently fails with:

  - nothing provides psutil needed by bw2io-0.9.dev18-py_0

even though the legacy dependency psutil has been removed from bw2io. The lastest version has been added to the cmutel channel on Anaconda.

michaelweinold commented 1 year ago

psutil is still included as a dependency in bw2io on the cmutel channel:

conda search --info -c cmutel bw2io 
bw2io 0.9.dev18 py_0
--------------------
file name   : bw2io-0.9.dev18-py_0.tar.bz2
name        : bw2io
version     : 0.9.dev18
build       : py_0
build number: 0
size        : 26.6 MB
license     : BSD 3-Clause
subdir      : noarch
url         : https://conda.anaconda.org/cmutel/noarch/bw2io-0.9.dev18-py_0.tar.bz2
md5         : 489294ae9df28030aae74eaa16c1b8e9
timestamp   : 2023-06-06 11:11:02 UTC
dependencies: 
  - astunparse >=1.6.1
  - bw2calc >=2.0.dev12
  - bw2data >=4.0.dev17
  - bw_migrations
  - bw_processing
  - lxml
  - mrio_common_metadata
  - numpy >=1.20
  - openpyxl
  - platformdirs
  - psutil
  - pyprind
  - python >=3.9
  - scipy
  - stats_arrays >=0.6.5
  - tqdm
  - unidecode
  - voluptuous
  - xlrd
  - xlsxwriter
michaelweinold commented 1 year ago

dev19 still requires psutil, @cmutel:

conda search --info -c cmutel bw2io 
bw2io 0.9.dev19 py_0
--------------------
file name   : bw2io-0.9.dev19-py_0.tar.bz2
name        : bw2io
version     : 0.9.dev19
build       : py_0
build number: 0
size        : 26.6 MB
license     : BSD 3-Clause
subdir      : noarch
url         : https://conda.anaconda.org/cmutel/noarch/bw2io-0.9.dev19-py_0.tar.bz2
md5         : 82eacd51972eef03383220841dbd9e7d
timestamp   : 2023-06-08 21:08:46 UTC
dependencies: 
  - astunparse >=1.6.1
  - bw2calc >=2.0.dev12
  - bw2data >=4.0.dev19
  - bw_migrations
  - bw_processing
  - lxml
  - mrio_common_metadata
  - numpy >=1.20
  - openpyxl
  - platformdirs
  - psutil
  - pyprind
  - python >=3.9
  - scipy
  - stats_arrays >=0.6.5
  - tqdm
  - unidecode
  - voluptuous
  - xlrd
  - xlsxwriter

A conda-tree deptree investigation yields (only psutil-related branches shown):

bw2io==0.9.dev19
  │
  ...
  │
  ├─ bw2data 4.0.dev19 [required: >=4.0.dev19]
  │  ├─ pyprind 2.11.2 [required: >=2.11]
  │  │  ├─ psutil 5.9.5 [required: >=3.2.0]
  │  │  │  ├─ python 3.11.3 [required: >=3.11,<3.12.0a0, *_cpython]
  │  │  │  │  └─ dependencies of python displayed above
  │  │  │  └─ python_abi 3.11 [required: 3.11.*, *_cp311]
  ├─ psutil 5.9.5 [required: any]
  │  └─ dependencies of psutil displayed above
  ...

It seems therefore that we still need to:

michaelweinold commented 1 year ago

Transferring this to https://github.com/brightway-lca/brightway-hub/issues/7