pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Error: Could not import `Pool` from `multiprocess`

Open asukaminato0721 opened this issue 6 months ago • 3 comments

Describe the Bug

https://github.com/uqfoundation/multiprocess

v1.0.0

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

asukaminato0721 avatar May 17 '26 12:05 asukaminato0721

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.

NathanTempest avatar May 19 '26 19:05 NathanTempest

To figure out the right fix, could you confirm:

  1. Is multiprocess installed in your active environment?:
  2. Does pyrefly find your venv?
  3. Is your .venv a symlink? (We have a separate bug #3458 about symlinked .venvs not being detected and this could be the same root cause.)

NathanTempest avatar May 19 '26 19:05 NathanTempest

https://github.com/open-spaced-repetition/srs-benchmark/pull/329 I use this pr to trigger the error. in the main branch, ci passes.

asukaminato0721 avatar May 21 '26 12:05 asukaminato0721