famous-kite-46295
07/19/2024, 7:33 PMpants check ::
. Every now and then, mypy complains for multiple files that it cannot find torch and other packages:
path/to/file.py:1: error: Library stubs not installed for "PIL.Image" [import-untyped]
path/to/file.py:1: error: Cannot find implementation or library stub for module named "torch" [import-not-found]
path/to/file.py:1: error: Cannot find implementation or library stub for module named "torch.distributed.distributed_c10d" [import-not-found]
path/to/file.py:1: error: Cannot find implementation or library stub for module named "torch.nn" [import-not-found]
The error always gets reported for line 1
and on multiple files at the same time.
Just running pants check ::
again makes it go away. So it’s not reproducible reliably but also not just a one-time thing. Some days happens, some days not.
Has anyone seen this before?curved-manchester-66006
07/22/2024, 3:13 PMfamous-kite-46295
07/22/2024, 10:37 PMfamous-kite-46295
07/22/2024, 10:37 PMcurved-manchester-66006
07/29/2024, 6:40 PM