Title: WASM Emscripten 3.x fails with: Cannot find module 'ws' · Issue #146325 · python/cpython · GitHub
Open Graph Title: WASM Emscripten 3.x fails with: Cannot find module 'ws' · Issue #146325 · python/cpython
X Title: WASM Emscripten 3.x fails with: Cannot find module 'ws' · Issue #146325 · python/cpython
Description: 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/m...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/python/cpython/issues/146325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WASM Emscripten 3.x fails with: Cannot find module 'ws'","articleBody":"First failing build: https://buildbot.python.org/#/builders/1810/builds/2097\n\n```\n0:06:44 load avg: 0.10 [255/501] test_import\n0:06:46 load avg: 0.10 [255/501] test_import passed\n0:06:46 load avg: 0.10 [256/501] test_importlib\nnode:internal/modules/cjs/loader:1456\n const err = new Error(message);\n ^\nError: Cannot find module 'ws'\nRequire stack:\n- /home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs\n at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)\n at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)\n at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)\n at Module._load (node:internal/modules/cjs/loader:1242:25)\n at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)\n at Module.require (node:internal/modules/cjs/loader:1556:12)\n at require (node:internal/modules/helpers:152:16)\n at Object.listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:99158)\n at ___syscall_listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:116282)\n at wasm://wasm/02b65c12:wasm-function[16939]:0x730c5a {\n code: 'MODULE_NOT_FOUND',\n requireStack: [\n '/home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs'\n ]\n}\nNode.js v24.14.0\nprogram finished with exit code 1\n```\n\ncc @hoodmane \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146330\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-03-23T11:37:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/146325/cpython/issues/146325"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:49cfea5c-7e9e-637d-659f-e09584f7ae66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 965A:322E35:72232FA:A020ABF:6A507461 |
| html-safe-nonce | 4b306117dcb709847cb5f4dd6e256e2d6f7a4cea499688217031c94788b6cab8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjVBOjMyMkUzNTo3MjIzMkZBOkEwMjBBQkY6NkE1MDc0NjEiLCJ2aXNpdG9yX2lkIjoiNjgyMjczMDkwMjEwOTQ1MTM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3bf8f60511eee140e85fae20f8eb1995968693a638711121233c09b6a2e787b0 |
| hovercard-subject-tag | issue:4120214864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/146325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6cc15a042cb07144f5bce560e0b4172af5a6f1120dedb26676b5a1c62cddcdd2/python/cpython/issues/146325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6cc15a042cb07144f5bce560e0b4172af5a6f1120dedb26676b5a1c62cddcdd2/python/cpython/issues/146325 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width