https://pantsbuild.org/ logo
#general
Title
# general
c

clean-night-52582

11/17/2021, 11:15 PM
Hey trying to upgrade to pants
2.8.0
excited to use the new features. Running into this issue when building any python target that depends on proto.
Copy code
Exception: Client error (404) downloading file grpc_python_plugin from <https://binaries.pantsbuild.org/bin/grpc_python_plugin/1.32.0/macos/grpc_python_plugin>
👀 1
Didn't see anything named like this on the bucket
h

hundreds-father-404

11/17/2021, 11:34 PM
Thanks for the report! What Pants version were you using before?
c

clean-night-52582

11/18/2021, 12:21 AM
2.7.0
h

happy-kitchen-89482

11/18/2021, 12:24 AM
So that's pretty worrying
(note the missing x86_64 bit)
h

hundreds-father-404

11/18/2021, 12:25 AM
Oh:
Copy code
default_url_platform_mapping = {
        "macos_arm64": "macos",
        "macos_x86_64": "macos",
        "linux_arm64": "linux/arm64",
        "linux_x86_64": "linux/x86_64",
    }
h

happy-kitchen-89482

11/18/2021, 12:25 AM
So how did this ever work?
h

hundreds-father-404

11/18/2021, 12:26 AM
That's what I'm wondering..the git blame is 12367 from Pants 2.7
c

clean-night-52582

11/18/2021, 12:34 AM
Adding
Copy code
[grpc-python-plugin]
url_platform_mapping='{"linux_arm64": "linux/arm64", "linux_x86_64": "linux/x86_64", "macos_arm64": "macos/arm65", "macos_x86_64": "macos/x86_64", }'
to my
pants.toml
file makes everything run correctly
h

hundreds-father-404

11/18/2021, 12:37 AM
Okay great, glad you are unblocked. But definitely we should fix. @happy-kitchen-89482 do you know how we go about getting a macOS arm64 binary? Do I need to build it on my M1? I think before we had it using the x86 binary and using Rosetta, although not ideal
h

happy-kitchen-89482

11/18/2021, 12:45 AM
https://github.com/pantsbuild/pants/pull/12367 shouldn't have broken anything
I'm still confused
h

hundreds-father-404

11/18/2021, 12:47 AM
h

happy-kitchen-89482

11/18/2021, 12:47 AM
@clean-night-52582 Can you verify that 2.8.1rc0 fixes this for you?
c

clean-night-52582

11/18/2021, 4:29 PM
Yes the rc works for me
h

happy-kitchen-89482

11/18/2021, 4:33 PM
Without your pants.toml changes?
c

clean-night-52582

11/18/2021, 4:43 PM
Yes pulled that out and it worked
❤️ 1
h

happy-kitchen-89482

11/18/2021, 4:44 PM
Excellent
2 Views