recipes
recipes copied to clipboard
Installing latest ipython release (8.24.0) causes conda validation error: 'emscripten' is not a valid Platform
Hi all,
First off, thank you so much for all your work. We're using emscripten-forge in combination with voici with great success.
In the last week or two my voici builds started to fail with the error message below after the following command is executed (inside voici build).
$ conda install --yes --prefix /tmp/tmpp51ds5r2/env/envs/voici -c https://repo.mamba.pm/emscripten-forge -c conda-forge xeus-python pandas ipyleaflet ipywidgets pystac urllib3>=2.2 requests matplotlib plotly openpyxl pip
...
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/cli/main.py", line 83, in main_subshell
exit_code = do_call(args, parser)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 196, in do_call
result = getattr(module, func_name)(args, parser)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/notices/core.py", line 124, in wrapper
return func(*args, **kwargs)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/cli/main_install.py", line 140, in execute
return install(args, parser, "install")
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/cli/install.py", line 438, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/cli/install.py", line 456, in handle_txn
unlink_link_transaction.print_transaction_summary()
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/link.py", line 1217, in print_transaction_summary
legacy_action_groups = self._make_legacy_action_groups()
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/link.py", line 1197, in _make_legacy_action_groups
self._pfe.prepare()
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/common/io.py", line 85, in decorated
return f(*args, **kwds)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 746, in prepare
self.paired_actions.update(
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 747, in <genexpr>
(prec, self.make_actions_for_record(prec)) for prec in largest_first
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 591, in make_actions_for_record
extracted_pcrec = next(
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 592, in <genexpr>
(
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 595, in <genexpr>
PackageCacheData(pkgs_dir).query(pref_or_spec)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 162, in query
for pcrec in self._package_cache_records.values()
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 302, in _package_cache_records
self.load()
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 123, in load
package_cache_record = self._make_single_record(base_name)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 460, in _make_single_record
package_cache_record = PackageCacheRecord.from_objects(
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 793, in from_objects
return cls(**init_vars)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 746, in __call__
instance = super().__call__(*args, **kwargs)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/models/records.py", line 421, in __init__
super().__init__(*args, **kwargs)
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 762, in __init__
setattr(self, key, kwargs[key])
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 431, in __set__
self.box(instance, instance.__class__, val),
File "/home/liam/scratch/miniconda3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 573, in box
raise ValidationError(val, msg=e1)
conda.auxlib.exceptions.ValidationError: 'emscripten' is not a valid Platform
...
After this error, all of my conda install and conda create commands start to fail (even in different environments). I tried reinstalling conda as well as updating to the latest version of conda (24.4 as of writing).
Troubleshooting
I added a print line at package_cache_data.py:123 (which is self._make_single_record(base_name) according to the traceback above) and found that this validation error is triggered when base_name="ipython-8.24.0-py311h43c7e2a_1". That made me think that perhaps the latest emscripten-forge release of ipython is buggy so I tried pinning ipython to 8.23.0 and that fixed the issue.
TLDR: Installing ipython 8.24.0 causes conda.auxlib.exceptions.ValidationError: 'emscripten' is not a valid Platform. Installing ipython 8.23.0 works ok.
Thanks in advance.
Pinging @DerThorsten because I see that you've been working on the ipython recipe lately. Do you have any insight?
the plattform was renamed to emscripten-wasm32 a long long while ago, could it be that your setup is very old/outdated? @atrawog could it be that the recent quetz updated removed the old emscripten platform?
there used to be repodata at https://repo.mamba.pm/emscripten-forge/emscripte/repodata.json but there isn't anymore
I believe everything I'm using is up to date, and I see emscripten-wasm32 being used everywhere. I'm not sure where the emscripten is coming from but this error is continuing to happen when I try to use a package from https://repo.mamba.pm/emscripten-forge with a release since approximately the first week of May.
can you try to use micromamba instead of conda.
With conda the platform is probably somewhere in a .condarc file.
This file probably still has an "emscripten" instead of emscripten-wasm32.
With micromamba you can just specify --platform=emscripten-wasm32
a
can you try to use micromamba instead of conda. With conda the platform is probably somewhere in a
.condarcfile. This file probably still has an "emscripten" instead ofemscripten-wasm32.With micromamba you can just specify
--platform=emscripten-wasm32
actually, the issue is in the rattler-build which writes the wrong platform to the packages. Now that we know the source of the issue, we working on a fix.
Terrific! Thanks so much @DerThorsten!
For information: I just got the same error after trying to build locally JupyterLite's xeus-python-demo. First in my usual mamba forge install. After which my mambaforge got broken: any attempt to install a new package or create a new environment resulted in a `'emscripten' is not a valid Platform.
I then started with a fresh miniforge3 installation, and got the same symptoms: jupyterlite build failed, and any subsequent mamba install fails with 'emscripten is not a valid Platform'.
Help appreciated!
Linux Ubuntu 22.04.
log
(base) ➜ xeus-python-demo git:(main) ✗ mamba env create -f build-environment.yml Channels: - conda-forge - defaults Platform: linux-64 Collecting package metadata (repodata.json): done Solving environment: done==> WARNING: A newer version of conda exists. <== current version: 24.3.0 latest version: 24.7.1
Please update conda by running
$ conda update -n base -c conda-forge conda
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
To activate this environment, use
$ conda activate build-env
To deactivate an active environment, use
$ conda deactivate
(base) ➜ xeus-python-demo git:(main) ✗ conda activate build-env (build-env) ➜ xeus-python-demo git:(main) ✗ cp README.md content (build-env) ➜ xeus-python-demo git:(main) ✗ jupyter lite build --contents content --output-dir dist
static:jupyter-lite.json
. pre_status:static:jupyter-lite.json
tarball: jupyterlite-app-0.3.0.tgz 13MB
output: /opt/xeus-python-demo/dist
lite dir: /opt/xeus-python-demo
apps:
sourcemaps: True
unused packages: True
archive:archive
contents:contents
icons:icons
lite:jupyter-lite.json
mimetypes:jupyter-lite.json
serve:contents
settings:overrides
translation:translation
. status:archive:archive
[LiteBuildApp] No archive (yet): xeus-python-demo-jupyterlite.tgz
. status:contents:contents
contents: 2 files
. status:icons:icons
favicon files: 0 files
. status:lite:jupyter-lite.json
[LiteBuildApp] jupyter-lite.(json|ipynb): 0 files
. status:mimetypes:jupyter-lite.json
filetypes: 26
. status:serve:contents
url: http://127.0.0.1:8000/
server: tornado
headers:
. status:settings:overrides
overrides.json: 0
. status:translation:translation
translation files: 2 files
static:output_dir
. pre_init:static:output_dir
static:unpack
. init:static:unpack
/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_core/addons/base.py:294: UserWarning: install libarchive-c for better performance when working with archives: No module named 'libarchive'
return has_optional_dependency(
federated_extensions:copy:ext:jupyterlab_pygments
federated_extensions:copy:ext:@jupyterlite/xeus
. pre_build:federated_extensions:copy:ext:jupyterlab_pygments
. pre_build:federated_extensions:copy:ext:@jupyterlite/xeus
contents:copy:README.md
contents:copy:demo.ipynb
icons:copy
/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_core/addons/translation.py:88: UserWarning: [lite] [translation] install jupyterlab_server to load translations: No module named 'jupyterlab_server'
if not self.is_sys_prefix_ignored() and has_optional_dependency(
translation:copy
. build:contents:copy:README.md
. build:contents:copy:demo.ipynb
. build:icons:copy
. build:translation:copy
contents:contents:.
federated_extensions:patch
federated_extensions:settings
Looking for: []
Preparing transaction: done Verifying transaction: done Executing transaction: done
To activate this environment, use
$ mamba activate /tmp/tmp_ba11u06/env/envs/xeus-python-kernel
To deactivate an active environment, use
$ mamba deactivate
Looking for: ['xeus-python', 'ipycanvas']
https://repo.mamba.pm/emscripten-forge/emscripte.. Checked 1.4s https://repo.mamba.pm/emscripten-forge/noarch (c.. Checked 0.2s warning libmamba Could not parse mod/etag header pkgs/main/emscripten-wasm32 (check zst) Checked 0.3s warning libmamba Could not parse mod/etag header pkgs/main/noarch (check zst) Checked 0.1s pkgs/r/emscripten-wasm32 (check zst) Checked 0.2s warning libmamba Could not parse mod/etag header pkgs/r/noarch (check zst) Checked 0.1s pkgs/main/emscripten-wasm32 287.0 B @ 1.3kB/s 404 failed 0.2s https://repo.mamba.pm/emscripten-forge/emscripte.. 53.5kB @ 202.2kB/s 0.3s https://repo.mamba.pm/emscripten-forge/noarch 2.1kB @ 5.6kB/s 0.4s [+] 0.4s conda-forge/emscripten-wasm32 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0 B / ??.?MB @ ??.?MB/s 0.4s conda-forge/emscripten-wasm32 ??.?MB @ ??.?MB/s 404 failed 0.5s pkgs/r/emscripten-wasm32 287.0 B @ 283.0 B/s 404 failed 0.8s pkgs/main/noarch 715.5kB @ 641.4kB/s 0.9s pkgs/r/noarch 2.1MB @ 611.4kB/s 3.0s conda-forge/noarch 15.8MB @ 1.3MB/s 12.2s Transaction
Prefix: /tmp/tmp_ba11u06/env/envs/xeus-python-kernel
Updating specs:
- xeus-python
- ipycanvas
Package Version Build Channel Size ───────────────────────────────────────────────────────────────────────────────────────────────────── Install: ─────────────────────────────────────────────────────────────────────────────────────────────────────
- pillow 10.3.0 hf51ec75_0 repo.mamba.pm/emscripten-forge 1MB
- pyjs 2.1.0 py311hd5f3483_7 repo.mamba.pm/emscripten-forge 4MB
- python 3.11.3 h_bbba66e_25_cpython repo.mamba.pm/emscripten-forge 13MB
- wheel 0.43.0 pyhd8ed1ab_1 conda-forge Cached
- setuptools 71.0.4 pyhd8ed1ab_0 conda-forge Cached
- pip 24.2 pyhd8ed1ab_0 conda-forge Cached
- six 1.16.0 pyh6c4a22f_0 conda-forge Cached
- parso 0.8.4 pyhd8ed1ab_0 conda-forge 75kB
- ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge Cached
- wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge 33kB
- pure_eval 0.2.3 pyhd8ed1ab_0 conda-forge 17kB
- executing 2.0.1 pyhd8ed1ab_0 conda-forge 28kB
- typing_extensions 4.12.2 pyha770c72_0 conda-forge Cached
- traitlets 5.14.3 pyhd8ed1ab_0 conda-forge Cached
- pygments 2.18.0 pyhd8ed1ab_0 conda-forge Cached
- pickleshare 0.7.5 py_1003 conda-forge 9kB
- decorator 5.1.1 pyhd8ed1ab_0 conda-forge 12kB
- backcall 0.2.0 pyh9f0ad1d_0 conda-forge 14kB
- xeus-python-shell-raw 0.6.3 pyhd8ed1ab_0 conda-forge 12kB
- widgetsnbextension 4.0.11 pyhd8ed1ab_0 conda-forge 1MB
- jupyterlab_widgets 3.0.11 pyhd8ed1ab_0 conda-forge 186kB
- asttokens 2.4.1 pyhd8ed1ab_0 conda-forge 29kB
- jedi 0.19.1 pyhd8ed1ab_0 conda-forge 841kB
- pexpect 4.9.0 pyhd8ed1ab_0 conda-forge 54kB
- prompt-toolkit 3.0.47 pyha770c72_0 conda-forge 271kB
- comm 0.2.2 pyhd8ed1ab_0 conda-forge 12kB
- matplotlib-inline 0.1.7 pyhd8ed1ab_0 conda-forge 15kB
- stack_data 0.6.2 pyhd8ed1ab_0 conda-forge 26kB
- numpy 2.0.1 py311hc8e14bb_0 repo.mamba.pm/emscripten-forge 7MB
- ipython 8.25.0 py311hf215df6_1 repo.mamba.pm/emscripten-forge 2MB
- xeus-python-shell 0.6.3 pyhd8ed1ab_0 conda-forge 7kB
- ipywidgets 8.1.3 pyhd8ed1ab_0 conda-forge 114kB
- ipycanvas 0.13.2 pyhd8ed1ab_0 conda-forge 57kB
- xeus-python 0.17.1 py311h8776317_6 repo.mamba.pm/emscripten-forge 4MB
Summary:
Install: 34 packages
Total download: 34MB
─────────────────────────────────────────────────────────────────────────────────────────────────────
wcwidth 32.7kB @ 96.9kB/s 0.3s parso 75.2kB @ 217.9kB/s 0.3s asttokens 28.9kB @ 63.0kB/s 0.1s prompt-toolkit 270.7kB @ 474.1kB/s 0.2s stack_data 26.2kB @ 45.2kB/s 0.1s pickleshare 9.3kB @ 14.3kB/s 0.1s xeus-python-shell-raw 11.7kB @ 15.7kB/s 0.1s matplotlib-inline 14.6kB @ 17.0kB/s 0.1s xeus-python-shell 6.7kB @ 6.8kB/s 0.1s executing 27.7kB @ 24.3kB/s 0.2s widgetsnbextension 1.1MB @ 471.4kB/s 1.2s pexpect 53.6kB @ 21.2kB/s 0.2s pillow 1.1MB @ 263.2kB/s 4.3s pyjs 4.0MB @ 575.1kB/s 7.0s jedi 841.3kB @ 119.4kB/s 2.7s backcall 13.7kB @ 1.9kB/s 0.2s ipycanvas 57.1kB @ 7.1kB/s 1.0s xeus-python 3.8MB @ 474.1kB/s 7.5s comm 12.1kB @ 1.5kB/s 0.2s ipython 1.6MB @ 195.4kB/s 5.7s jupyterlab_widgets 186.5kB @ 21.7kB/s 0.4s decorator 12.1kB @ 1.4kB/s 0.2s ipywidgets 113.8kB @ 12.8kB/s 0.8s pure_eval 16.6kB @ 1.9kB/s 0.6s python 13.2MB @ 943.6kB/s 14.0s numpy 7.5MB @ 455.7kB/s 9.1s 'emscripten' is not a valid Platform
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 959, in exception_converter
raise e
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 952, in exception_converter
exit_code = _wrapped_main(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 898, in _wrapped_main
result = do_call(parsed_args, p)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 763, in do_call
exit_code = install(args, parser, "install")
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 569, in install
handle_txn(conda_transaction, prefix, args, newenv)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/linking.py", line 38, in handle_txn
unlink_link_transaction.download_and_extract()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/link.py", line 255, in download_and_extract
self._pfe.execute()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 771, in execute
self.prepare()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/common/io.py", line 85, in decorated
return f(*args, **kwds)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 750, in prepare
self.paired_actions.update(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 751, in <genexpr>
(prec, self.make_actions_for_record(prec)) for prec in largest_first
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 595, in make_actions_for_record
extracted_pcrec = next(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 596, in <genexpr>
(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 599, in <genexpr>
PackageCacheData(pkgs_dir).query(pref_or_spec)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 166, in query
for pcrec in self._package_cache_records.values()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 306, in _package_cache_records
self.load()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 127, in load
package_cache_record = self._make_single_record(base_name)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 369, in _make_single_record
package_cache_record = PackageCacheRecord.from_objects(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 790, in from_objects
return cls(**init_vars)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 743, in __call__
instance = super().__call__(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/models/records.py", line 418, in __init__
super().__init__(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 759, in __init__
setattr(self, key, kwargs[key])
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 428, in __set__
self.box(instance, instance.__class__, val),
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 570, in box
raise ValidationError(val, msg=e1)
conda.auxlib.exceptions.ValidationError: 'emscripten' is not a valid Platform
$ /opt/miniforge3/condabin/mamba install --yes --prefix /tmp/tmp_ba11u06/env/envs/xeus-python-kernel -c https://repo.mamba.pm/emscripten-forge -c conda-forge xeus-python ipycanvas
environment variables:
CIO_TEST=
active environment : build-env
active env location : /opt/miniforge3/envs/build-env
shell level : 2
user config file : /home/nthiery/.condarc
populated config files : /opt/miniforge3/.condarc /home/nthiery/.condarc /tmp/tmp_ba11u06/env/envs/xeus-python-kernel/.condarc conda version : 24.3.0 conda-build version : not installed python version : 3.10.14.final.0 solver : libmamba (default) virtual packages : __conda=24.3.0=0 base environment : /opt/miniforge3 (writable) conda av data dir : /opt/miniforge3/etc/conda conda av metadata url : None channel URLs : https://repo.mamba.pm/emscripten-forge/emscripten-wasm32 https://repo.mamba.pm/emscripten-forge/noarch https://conda.anaconda.org/conda-forge/emscripten-wasm32 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/emscripten-wasm32 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/emscripten-wasm32 https://repo.anaconda.com/pkgs/r/noarch package cache : /opt/miniforge3/pkgs /home/nthiery/.conda/pkgs envs directories : /opt/miniforge3/envs /home/nthiery/.conda/envs platform : emscripten-wasm32 user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.14 Linux/5.15.0-113-generic ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 UID:GID : 1000:1000 netrc file : None offline mode : False
An unexpected error has occurred. Conda has prepared the above report. If you suspect this error is being caused by a malfunctioning plugin, consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install
[LiteBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus] [ERR] Command '['/opt/miniforge3/condabin/mamba', 'install', '--yes', '--prefix', PosixPath('/tmp/tmp_ba11u06/env/envs/xeus-python-kernel'), '-c', 'https://repo.mamba.pm/emscripten-forge', '-c', 'conda-forge', 'xeus-python', 'ipycanvas']' returned non-zero exit status 1. Traceback (most recent call last): File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/doit_cmd.py", line 294, in run return command.parse_execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/cmd_base.py", line 150, in parse_execute return self.execute(params, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/cmd_base.py", line 570, in execute return self._execute(**exec_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/cmd_run.py", line 265, in _execute return runner.run_all(self.control.task_dispatcher()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/runner.py", line 254, in run_all self.run_tasks(task_dispatcher) File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/runner.py", line 213, in run_tasks node = task_dispatcher.generator.send(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/control.py", line 629, in _dispatcher_generator next_step = node.step() ^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/control.py", line 336, in step return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/control.py", line 345, in _func for value in decorated(*args, **kwargs): File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/control.py", line 473, in _add_task new_tasks = generate_tasks(to_load, task_gen, ref.doc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/loader.py", line 390, in generate_tasks for task_dict, x_doc in flat_generator(gen_result, gen_doc): File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/doit/loader.py", line 27, in flat_generator for item in gen: File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 138, in _delayed_gather yield from _gather() File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 131, in _gather raise error File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 123, in _gather for task in getattr(addon, attr)(self): File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 124, in post_build self.create_prefix() File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 148, in create_prefix create_conda_env_from_env_file(root_prefix, yaml_content, env_file.parent) File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/create_conda_env.py", line 53, in create_conda_env_from_env_file create_conda_env_from_specs( File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/create_conda_env.py", line 69, in create_conda_env_from_specs _create_conda_env_from_specs_impl( File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/create_conda_env.py", line 126, in _create_conda_env_from_specs_impl return _create_env_with_config(MAMBA_COMMAND, prefix_path, specs, channels_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniforge3/envs/build-env/lib/python3.12/site-packages/jupyterlite_xeus/create_conda_env.py", line 144, in _create_env_with_config subprocess_run( File "/opt/miniforge3/envs/build-env/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/opt/miniforge3/condabin/mamba', 'install', '--yes', '--prefix', PosixPath('/tmp/tmp_ba11u06/env/envs/xeus-python-kernel'), '-c', 'https://repo.mamba.pm/emscripten-forge', '-c', 'conda-forge', 'xeus-python', 'ipycanvas']' returned non-zero exit status 1.
conda activate base (base) ➜ xeus-python-demo git:(main) ✗ mamba install tqdm
Looking for: ['tqdm']
warning libmamba Could not parse mod/etag header conda-forge/noarch Using cache warning libmamba Could not parse mod/etag header pkgs/main/linux-64 (check zst) Checked 0.5s warning libmamba Could not parse mod/etag header pkgs/r/linux-64 (check zst) Checked 0.2s pkgs/main/noarch No change pkgs/r/noarch No change pkgs/r/linux-64 1.6MB @ 589.5kB/s 2.8s pkgs/main/linux-64 6.3MB @ 383.4kB/s 16.5s conda-forge/linux-64 36.6MB @ 1.3MB/s 28.4s
Pinned packages:
- python 3.10.*
Transaction
Prefix: /opt/miniforge3
Updating specs:
- tqdm
- ca-certificates
- certifi
- openssl
Package Version Build Channel Size ───────────────────────────────────────────────────────────────────── Upgrade: ─────────────────────────────────────────────────────────────────────
- ca-certificates 2024.2.2 hbcca054_0 conda-forge Cached
- ca-certificates 2024.7.4 hbcca054_0 conda-forge Cached
- openssl 3.2.1 hd590300_1 conda-forge Cached
- openssl 3.3.1 h4bc722e_2 conda-forge Cached
- certifi 2024.2.2 pyhd8ed1ab_0 conda-forge Cached
- certifi 2024.7.4 pyhd8ed1ab_0 conda-forge Cached
Summary:
Upgrade: 3 packages
Total download: 0 B
─────────────────────────────────────────────────────────────────────
Confirm changes: [Y/n] 'emscripten' is not a valid Platform
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 959, in exception_converter
raise e
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 952, in exception_converter
exit_code = _wrapped_main(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 898, in _wrapped_main
result = do_call(parsed_args, p)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 763, in do_call
exit_code = install(args, parser, "install")
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 569, in install
handle_txn(conda_transaction, prefix, args, newenv)
File "/opt/miniforge3/lib/python3.10/site-packages/mamba/linking.py", line 38, in handle_txn
unlink_link_transaction.download_and_extract()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/link.py", line 255, in download_and_extract
self._pfe.execute()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 771, in execute
self.prepare()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/common/io.py", line 85, in decorated
return f(*args, **kwds)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 750, in prepare
self.paired_actions.update(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 751, in <genexpr>
(prec, self.make_actions_for_record(prec)) for prec in largest_first
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 595, in make_actions_for_record
extracted_pcrec = next(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 596, in <genexpr>
(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 599, in <genexpr>
PackageCacheData(pkgs_dir).query(pref_or_spec)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 166, in query
for pcrec in self._package_cache_records.values()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 306, in _package_cache_records
self.load()
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 127, in load
package_cache_record = self._make_single_record(base_name)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 369, in _make_single_record
package_cache_record = PackageCacheRecord.from_objects(
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 790, in from_objects
return cls(**init_vars)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 743, in __call__
instance = super().__call__(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/models/records.py", line 418, in __init__
super().__init__(*args, **kwargs)
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 759, in __init__
setattr(self, key, kwargs[key])
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 428, in __set__
self.box(instance, instance.__class__, val),
File "/opt/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 570, in box
raise ValidationError(val, msg=e1)
conda.auxlib.exceptions.ValidationError: 'emscripten' is not a valid Platform
$ /opt/miniforge3/bin/mamba install tqdm
environment variables:
CIO_TEST=
active environment : base
active env location : /opt/miniforge3
shell level : 3
user config file : /home/nthiery/.condarc
populated config files : /opt/miniforge3/.condarc /home/nthiery/.condarc conda version : 24.3.0 conda-build version : not installed python version : 3.10.14.final.0 solver : libmamba (default) virtual packages : __archspec=1=ivybridge __conda=24.3.0=0 __glibc=2.35=0 __linux=5.15.0=0 __unix=0=0 base environment : /opt/miniforge3 (writable) conda av data dir : /opt/miniforge3/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /opt/miniforge3/pkgs /home/nthiery/.conda/pkgs envs directories : /opt/miniforge3/envs /home/nthiery/.conda/envs platform : linux-64 user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.14 Linux/5.15.0-113-generic ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 UID:GID : 1000:1000 netrc file : None offline mode : False
An unexpected error has occurred. Conda has prepared the above report. If you suspect this error is being caused by a malfunctioning plugin, consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install
For the record: a mamba clean --all, fixed my mamba installation. But the jupyterlite build still breaks.
Good news: upgrading conda to 24.7.1 which contains https://github.com/conda/conda/pull/13962 resolved the issue!
mamba install conda==24.7.1
Ref: https://github.com/jupyterlite/xeus-python-demo/issues/39