You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and running pyodide xbuildenv install 0.27.2 gives
╭───────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────╮
│ /Users/agriyakhetarpal/envs/skimage-dev/lib/python3.13/site-packages/pyodide_build/cli/xbuildenv.py:61 in _install │
│ │
│ 58 │ if url: │
│ 59 │ │ manager.install(url=url, force_install=force_install) │
│ 60 │ else: │
│ ❱ 61 │ │ manager.install(version=version, force_install=force_install) │
│ 62 │ │
│ 63 │ typer.echo(f"Pyodide cross-build environment installed at {path.resolve()}") │
│ 64 │
│ │
│ /Users/agriyakhetarpal/envs/skimage-dev/lib/python3.13/site-packages/pyodide_build/xbuildenv.py:183 in install │
│ │
│ 180 │ │ │ │ python_version=local_versions["python"], │
│ 181 │ │ │ │ pyodide_build_version=local_versions["pyodide-build"], │
│ 182 │ │ │ ): │
│ ❱ 183 │ │ │ │ raise ValueError( │
│ 184 │ │ │ │ │ f"Version {version} is not compatible with the current environment." │
│ 185 │ │ │ │ ) │
│ 186 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Version 0.27.2 is not compatible with the current environment.
So, I checked the Python version and I got Python 3.13.1 (main, Dec 3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)].
I feel that this could be reported better, somehow, perhaps through a simple check when running pyodide build, which sees if sys.version_info >= (3,12) and sys.version_info < (3, 13) returns True (or whichever the value of requires-python is in the metadata) and asks users to switch a supported Python version.
The text was updated successfully, but these errors were encountered:
I came across this one today.
Running
pyodide build
displaysand running
pyodide xbuildenv install 0.27.2
givesSo, I checked the Python version and I got
Python 3.13.1 (main, Dec 3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)]
.I feel that this could be reported better, somehow, perhaps through a simple check when running
pyodide build
, which sees ifsys.version_info >= (3,12) and sys.version_info < (3, 13)
returnsTrue
(or whichever the value ofrequires-python
is in the metadata) and asks users to switch a supported Python version.The text was updated successfully, but these errors were encountered: