-
-
Notifications
You must be signed in to change notification settings - Fork 10
Black execution fails (missing 'typing_extensions') #13
Comments
Thanks for the issue. What version of rules_python is that running with? You're right that
could you try locally changing that to the one you intend, and confirm if it fixes the issue? |
This is with
To me it feels like the locked dependencies are evaluated for python3.10 (see |
I hacked around this by patching the rules to use the version of black installed with our repository requirements file as a workaround. Obviously, not the best long term decision but we use the auto-detecting toolchain so needed the workaround: WORKSPACE
0001-use-autodetecting-python-toolchain.patch
|
I just did an overhaul of the python setup to make it optional, I think that also means you could install black yourself so long as it appears at |
Confirmed that works. For those following along at home, you just need to do this:
Thanks! |
Trying to run v0.2.2 with
fails with
while running with
already fails at the configuration step with
which looks like an inconsistency to me. Note that I have a python toolchain registered before, i.e.,
but that one is not picked up by
bazel-super-formatter
as it's expecting the python toolchain to be calledpython3
notpython39
(could that be the source of the issue?)The text was updated successfully, but these errors were encountered: