bitter-ability-32190
03/18/2022, 5:08 PM[17:04:07]
File "/home/buildagent/.cache/pants/setup/bootstrap-Linux-x86_64/2.10.0rc2_py38/lib/python3.8/site-packages/pants/util/dirutil.py", line 18, in <module>
[17:04:07]
from typing_extensions import Literal
[17:04:07]
ModuleNotFoundError: No module named 'typing_extensions'
Does that import belong behind a if TYPE_CHECKING
?bitter-ability-32190
03/18/2022, 5:22 PMbitter-ability-32190
03/18/2022, 5:32 PMwide-midnight-78598
03/18/2022, 5:37 PMtry:
from typing import Literal
except ImportError:
from typing_extensions import Literal
wide-midnight-78598
03/18/2022, 5:38 PMtyping_extensions
is just for 3.7, correct?bitter-ability-32190
03/18/2022, 5:38 PMtyping_extensions
I think this is an installation issue 😐bitter-ability-32190
03/18/2022, 5:38 PMtyping_extensions
so no?wide-midnight-78598
03/18/2022, 5:39 PMtyping_extensions
needed to be pip installed. I've literally never used it.
I use from typing
and future imports for all my typed needs.wide-midnight-78598
03/18/2022, 5:41 PMbitter-ability-32190
03/18/2022, 6:12 PMbitter-ability-32190
03/18/2022, 6:13 PMbitter-ability-32190
03/18/2022, 6:48 PMtyping_extensions
is not in ~/.cache/pants/setup/bootstrap-Linux-x86_64/2.10.0rc2_py38/lib/python3.8/site-packages
bitter-ability-32190
03/18/2022, 6:57 PMI wonder if PYTHOPATH is set to something that has the library, so when my subprocess executes it inherits it. When I invoke pants directly it doesn't?I think this is exactly what's happening.
bitter-ability-32190
03/18/2022, 7:03 PM