spylang/spy

Fix the playground

Open

#381 opened on Feb 3, 2026

View on GitHub
 (2 comments) (0 reactions) (1 assignee)Python (60 forks)auto 404
help wantedplayground

Repository metrics

Stars
 (803 stars)
PR merge metrics
 (PR metrics pending)

Description

The SPy playground is broken and fails with this errror:

Installing spy... Traceback (most recent call last):
  File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async
    await CodeRunner(
  File "/lib/python312.zip/_pyodide/_base.py", line 413, in run_async
    await coroutine
  File "<exec>", line 18, in <module>
  File "/lib/python3.12/site-packages/micropip/_commands/install.py", line 142, in install
    await transaction.gather_requirements(requirements)
  [...]
ValueError: Requested 'packaging>=24.0', but packaging==23.2 is already installed

I don't 100% know what's happening, but I guess it's something along these lines:

  1. pyproject.toml specifies pinned versions
  2. indirect dependencies are not pinned
  3. pyodide comes with its own version of packaging (I'm not sure about this one, we should double check)
  4. some indirect dependencies has been updated and now they conflict with pyodide's builtin packaging

Contributor guide