After attempting to build the jupyterlite xeus-python-demo site, I receive the following error message:
conda.auxlib.exceptions.ValidationError: 'emscripten' is not a valid Platform
However, after receiving this error, conda then breaks and any attempt I make at creating a new environment or updating conda, I receive the same error message. The only way I have of fixing this is to delete my conda installation and reinstall it (which is starting to become a pain after three or four times).
This issue may not likely be related to the upstream issue but I don't think that conda should break after a failed jupyterlite build attempt. This issue is about the conda-breaking part.
Conda Info
<details><summary><pre>conda info</pre></summary>
**Note**: While this current installation is using miniforge3, the exact same thing happened on a miniconda3 installation in previous iteration.
<pre>
active environment : base
active env location : /home/connorferster/miniforge3
shell level : 1
user config file : /home/connorferster/.condarc
populated config files : /home/connorferster/miniforge3/.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=icelake
__conda=24.3.0=0
__glibc=2.35=0
__linux=6.4.6=0
__unix=0=0
base environment : /home/connorferster/miniforge3 (writable)
conda av data dir : /home/connorferster/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
package cache : /home/connorferster/miniforge3/pkgs
/home/connorferster/.conda/pkgs
envs directories : /home/connorferster/miniforge3/envs
/home/connorferster/.conda/envs
platform : linux-64
user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.14 Linux/6.4.6-76060406-generic pop/22.04 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
UID:GID : 1000:1000
netrc file : /home/connorferster/.netrc
offline mode : False
</pre></details>
Full traceback for attempting to create a new environment after receiving the initial error from the jupyterlite build step
(base) connorferster@pop-os ~/code/jupyterlite-xeus-python main ± conda create -n newenv python=3.12
Channels:
- conda-forge
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.5.0
Please update conda by running
$ conda update -n base -c conda-forge conda
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/cli/main.py", line 83, in main_subshell
exit_code = do_call(args, parser)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 199, in do_call
result = getattr(module, func_name)(args, parser)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/notices/core.py", line 131, in wrapper
return func(*args, **kwargs)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py", line 125, in execute
return install(args, parser, "create")
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/cli/install.py", line 450, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/cli/install.py", line 468, in handle_txn
unlink_link_transaction.print_transaction_summary()
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/link.py", line 1221, in print_transaction_summary
legacy_action_groups = self._make_legacy_action_groups()
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/link.py", line 1201, in _make_legacy_action_groups
self._pfe.prepare()
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/common/io.py", line 85, in decorated
return f(*args, **kwds)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 750, in prepare
self.paired_actions.update(
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 751, in
(prec, self.make_actions_for_record(prec)) for prec in largest_first
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 595, in make_actions_for_record
extracted_pcrec = next(
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 596, in
(
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 599, in
PackageCacheData(pkgs_dir).query(pref_or_spec)
File "/home/connorferster/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 "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/core/package_cache_data.py", line 306, in _package_cache_records
self.load()
File "/home/connorferster/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 "/home/connorferster/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 "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 790, in from_objects
return cls(**init_vars)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 743, in __call__
instance = super().__call__(*args, **kwargs)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/models/records.py", line 418, in __init__
super().__init__(*args, **kwargs)
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 759, in __init__
setattr(self, key, kwargs[key])
File "/home/connorferster/miniforge3/lib/python3.10/site-packages/conda/auxlib/entity.py", line 428, in __set__
self.box(instance, instance.__class__, val),
File "/home/connorferster/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
`$ /home/connorferster/miniforge3/bin/conda create -n newenv python=3.12`
environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/connorferster/miniforge3/bin/conda
CONDA_PREFIX=/home/connorferster/miniforge3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home/connorferster/miniforge3/bin/python
CONDA_ROOT=/home/connorferster/miniforge3
CONDA_SHLVL=1
CURL_CA_BUNDLE=
DEFAULTS_PATH=/usr/share/gconf/pop.default.path
LD_PRELOAD=
MANDATORY_PATH=/usr/share/gconf/pop.mandatory.path
PATH=/home/connorferster/miniforge3/bin:/home/connorferster/miniforge3/cond
abin:/home/connorferster/.nvm/versions/node/v22.2.0/bin:/home/connorfe
rster/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sb
in:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/
connorferster/.repobee/bin:/opt/ParaView-5.11/bin:/usr/local/go/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=
WINDOWPATH=2
active environment : base
active env location : /home/connorferster/miniforge3
shell level : 1
user config file : /home/connorferster/.condarc
populated config files : /home/connorferster/miniforge3/.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=icelake
__conda=24.3.0=0
__glibc=2.35=0
__linux=6.4.6=0
__unix=0=0
base environment : /home/connorferster/miniforge3 (writable)
conda av data dir : /home/connorferster/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
package cache : /home/connorferster/miniforge3/pkgs
/home/connorferster/.conda/pkgs
envs directories : /home/connorferster/miniforge3/envs
/home/connorferster/.conda/envs
platform : linux-64
user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.14 Linux/6.4.6-76060406-generic pop/22.04 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
UID:GID : 1000:1000
netrc file : /home/connorferster/.netrc
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
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: y
Upload successful.
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running
$ conda config --set report_errors true
Checklist
What happened?
I think there are two issues, an upstream one (conda) and a downstream one (jupyterlite). I have filed the jupyterlite issue here: https://github.com/jupyterlite/xeus-python-demo/issues/39
After attempting to build the jupyterlite xeus-python-demo site, I receive the following error message:
However, after receiving this error, conda then breaks and any attempt I make at creating a new environment or updating conda, I receive the same error message. The only way I have of fixing this is to delete my conda installation and reinstall it (which is starting to become a pain after three or four times).
This issue may not likely be related to the upstream issue but I don't think that conda should break after a failed jupyterlite build attempt. This issue is about the conda-breaking part.
Conda Info
Conda Config
Conda list
Additional Context
Full traceback for attempting to create a new environment after receiving the initial error from the jupyterlite build step