spylang/spy

Fix the playground

Aperta

#381 aperta il 3 feb 2026

 (2 commenti) (0 reazioni) (1 assegnatario)Python (60 fork)auto 404
help wantedplayground

Metriche repository

Star
 (803 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor