GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — WASM Emscripten 3.x fails with: Cannot find module 'ws' · Issue #146325 · python/cpython

WASM Emscripten 3.x fails with: Cannot find module 'ws' #146325

New issue
Copy link
New issue
Copy link
Closed
Closed
WASM Emscripten 3.x fails with: Cannot find module 'ws'#146325
Copy link
Labels
OS-emscriptentestsTests in the Lib/test dirTests in the Lib/test dir

Description

@vstinner
vstinner
opened on Mar 23, 2026
Issue body actions

First failing build: https://buildbot.python.org/#/builders/1810/builds/2097

0:06:44 load avg: 0.10 [255/501] test_import
0:06:46 load avg: 0.10 [255/501] test_import passed
0:06:46 load avg: 0.10 [256/501] test_importlib
node:internal/modules/cjs/loader:1456
  const err = new Error(message);
              ^
Error: Cannot find module 'ws'
Require stack:
- /home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
    at Module._load (node:internal/modules/cjs/loader:1242:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1556:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:99158)
    at ___syscall_listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:116282)
    at wasm://wasm/02b65c12:wasm-function[16939]:0x730c5a {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs'
  ]
}
Node.js v24.14.0
program finished with exit code 1

cc @hoodmane

Linked PRs

  • gh-146325: Use test.support.requires_fork in test_fastpath_cache_cleared_in_forked_child #146330

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    OS-emscripten
    on Mar 23, 2026
  2. vstinner commented on Mar 23, 2026

    @vstinner
    vstinner
    on Mar 23, 2026
    MemberAuthor
    More actions

    Sadly, "WASM Emscripten 3.x" buildbot doesn't run python -m test.pythoninfo to dump build information. It would be useful to check if something changed between successful build 2096 and failing build 2097.

  3. vstinner commented on Mar 23, 2026

    @vstinner
    vstinner
    on Mar 23, 2026
    MemberAuthor
    More actions

    cc @ambv

  4. hoodmane commented on Mar 23, 2026

    @hoodmane
    hoodmane
    on Mar 23, 2026
    Contributor
    More actions

    I'll see if I can reproduce locally. It was introduced #146231 which was a change to importlib and it fails in test_importlib. So hopefully it won't be that mysterious.

  5. hoodmane commented on Mar 23, 2026

    @hoodmane
    hoodmane
    on Mar 23, 2026
    Contributor
    More actions

    The added test test_fastpath_cache_cleared_in_forked_child forks but runs on Emscripten.

  6. hoodmane
    added 3 commits that reference this issue on Mar 23, 2026

    pythongh-146325: Use `test.support.requires_fork` in test_fastpath_ca…

    b1f7fc7

    pythongh-146325: Use `test.support.requires_fork` in test_fastpath_ca…

    135067a

    pythongh-146325: Use `test.support.requires_fork` in test_fastpath_ca…

    cd1ccd4
  7. hugovk
    added a commit that references this issue on Mar 23, 2026

    gh-146325: Use `test.support.requires_fork` in test_fastpath_cache_cl…

    0c83e8b
  8. hoodmane
    closed this as completedon Mar 23, 2026
  9. vstinner commented on Mar 23, 2026

    @vstinner
    vstinner
    on Mar 23, 2026
    MemberAuthor
    More actions

    Fixed by #146330. Thanks for the quick fix!

  10. CuriousLearner
    added a commit that references this issue on Mar 23, 2026

    Merge branch 'main' of github.com:python/cpython into fix-pythongh-13…

    3e05fa3
  11. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-146325: Use `test.support.requires_fork` in test_fastpath_ca…

    8d60b03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-emscriptentestsTests in the Lib/test dirTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.