Error: Could not import `Pool` from `multiprocess`
Describe the Bug
https://github.com/uqfoundation/multiprocess
v1.0.0
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Thanks for the report, @asukaminato0721! To triage this properly, could you share few more details?
I can reproduce the baseline error:
ERROR Cannot find module multiprocess [missing-import]
but only when multiprocess isn't installed anywhere pyrefly can find it. The third-party multiprocess package (from uqfoundation) is not in typeshed, so pyrefly has no bundled stubs for it and has to find the actual package in your environment.
To figure out the right fix, could you confirm:
- Is
multiprocessinstalled in your active environment?: - Does pyrefly find your venv?
- Is your
.venva symlink? (We have a separate bug #3458 about symlinked .venvs not being detected and this could be the same root cause.)
https://github.com/open-spaced-repetition/srs-benchmark/pull/329 I use this pr to trigger the error. in the main branch, ci passes.