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

Some conda-forge Packages missing from repo.mamba.pm/conda-forge Channel #460

Closed
Tracked by #17
michaelweinold opened this issue Jun 6, 2023 · 8 comments
Closed
Tracked by #17

Comments

@michaelweinold
Copy link
Contributor

Out of our many Brightway conda-forge packages (eg. bw2data, bw2io, bw2calc, etc.) only bw2parameters and bw2speedups are available at beta.mamba.pm/channels/conda-forge:

Screenshot 2023-06-06 at 10 50 49

My understanding is that I can't install packages from the default conda-forge channel during the build process of the xeus-python + JupyterLite hub, instead having to rely on the https://repo.mamba.pm/conda-forge channel.

If this is correct, how can I add our remaining packages?

@martinRenou
Copy link
Contributor

My understanding is that I can't install packages from the default conda-forge channel during the build process of the xeus-python + JupyterLite hub, instead having to rely on the https://repo.mamba.pm/conda-forge channel.

That is not correct, you can actually use the official conda-forge channel if you want in combination with the emscripten-forge one.

https://repo.mamba.pm/conda-forge is just a mirror that gets updated from time to time. Feel free to use the official conda-forge channel :)

@michaelweinold
Copy link
Contributor Author

Ah, I see! I would just like to make sure the conda environment file is explicit about which packages have to be installed from emscripten-forge and which ones can be taken from conda-forge. I think we'll go with something along the lines of:

name: xeus-python-kernel
channels:
  - https://repo.mamba.pm/emscripten-forge # check packages at https://beta.mamba.pm/channels
  - conda-forge
  - nodefaults
dependencies:
  # DATA SCIENCE
  - pandas # from channel emscripten-forge
  - numpy # from channel emscripten-forge
  # PLOTTING
  - matplotlib # from channel emscripten-forge
  # BRIGHTWAY DEPENDENCIES (NOT PURE PYTHON)
  - peewee # from channel emscripten-forge (required by brightway)
  - lxml # from channel emscripten-forge (required by brightway)
  # BRIGHTWAY CORE
  - conda-forge::bw2io=0.8.8 # https://anaconda.org/conda-forge/bw2io/files
  - conda-forge::bw2data=3.6.6 # https://anaconda.org/conda-forge/bw2data/files
  - conda-forge::bw2calc=1.8.2 # https://anaconda.org/conda-forge/bw2calc/files

@martinRenou
Copy link
Contributor

martinRenou commented Jun 6, 2023

I'm not sure you need to be very specific about the channel.

The channel emscripten-forge being the first in the list, it will have priority over what's in conda-forge.

Only no-arch packages can be pulled from conda-forge, if you try to install other packages like NumPy from conda-forge it will complain saying that NumPy is not installable on the emscripten-32 platform.

@michaelweinold
Copy link
Contributor Author

Is NumPy not available on emscripten-32? https://beta.mamba.pm/channels/emscripten-forge/packages/numpy

@DerThorsten
Copy link
Contributor

it should be available ( all versions you see at https://beta.mamba.pm/channels/emscripten-forge/packages/numpy are for emscripten-32)

@martinRenou
Copy link
Contributor

I highlighted the important part of my comment :)

What I meant is that you don't really need to be specific, your packages will be pulled from the right channel automatically.

@michaelweinold
Copy link
Contributor Author

I see - many thanks, this is clear now!

@njzjz
Copy link

njzjz commented May 13, 2024

I got the same issue - the latest pip in https://repo.mamba.pm/conda-forge does not support Python 3.12.

The README is confusing.

recipes/README.md

Lines 15 to 22 in f0d72a4

```bash
micromamba create -n my-channel-name \
--platform=emscripten-wasm32 \
-c https://repo.mamba.pm/emscripten-forge \
-c https://repo.mamba.pm/conda-forge \
--yes \
python numpy scipy matplotlib
```

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

4 participants