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

贡献者指南