spylang/spy

Fix the playground

開放

#381 建立於 2026年2月3日

 (2 則留言) (0 個反應) (1 位負責人)Python (60 個分叉)auto 404
help wantedplayground

倉庫指標

星標
 (803 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南