Closed
Description
Hello! I've been using python-betterproto
for quite some time, but after setting up the installation on a new machine (M1 MacBook Pro), I am getting the following errors when using the compiler. It seems to be exclusive to this plugin, as I've been able to successfully invoke protoc
with other output plugins. My protoc
installation was done with Homebrew.
michael@Michaels-MacBook-Pro path % python3 -m pip install "betterproto[compiler]"
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: betterproto[compiler] in /Users/michael/Library/Python/3.8/lib/python/site-packages (1.2.5)
Requirement already satisfied: stringcase in /Users/michael/Library/Python/3.8/lib/python/site-packages (from betterproto[compiler]) (1.2.0)
Requirement already satisfied: grpclib in /Users/michael/Library/Python/3.8/lib/python/site-packages (from betterproto[compiler]) (0.3.2)
Requirement already satisfied: jinja2 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from betterproto[compiler]) (2.11.2)
Requirement already satisfied: black in /Users/michael/Library/Python/3.8/lib/python/site-packages (from betterproto[compiler]) (22.3.0)
Requirement already satisfied: protobuf in /Users/michael/Library/Python/3.8/lib/python/site-packages (from betterproto[compiler]) (3.12.2)
Requirement already satisfied: pathspec>=0.9.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (0.9.0)
Requirement already satisfied: platformdirs>=2 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (2.5.1)
Requirement already satisfied: mypy-extensions>=0.4.3 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (0.4.3)
Requirement already satisfied: typing-extensions>=3.10.0.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (4.1.1)
Requirement already satisfied: click>=8.0.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (8.1.2)
Requirement already satisfied: tomli>=1.1.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from black->betterproto[compiler]) (2.0.1)
Requirement already satisfied: multidict in /Users/michael/Library/Python/3.8/lib/python/site-packages (from grpclib->betterproto[compiler]) (4.7.6)
Requirement already satisfied: h2 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from grpclib->betterproto[compiler]) (3.2.0)
Requirement already satisfied: MarkupSafe>=0.23 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from jinja2->betterproto[compiler]) (1.1.1)
Requirement already satisfied: setuptools in /Users/michael/Library/Python/3.8/lib/python/site-packages (from protobuf->betterproto[compiler]) (62.0.0)
Requirement already satisfied: six>=1.9 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from protobuf->betterproto[compiler]) (1.15.0)
Requirement already satisfied: hpack<4,>=3.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from h2->grpclib->betterproto[compiler]) (3.0.0)
Requirement already satisfied: hyperframe<6,>=5.2.0 in /Users/michael/Library/Python/3.8/lib/python/site-packages (from h2->grpclib->betterproto[compiler]) (5.2.0)
michael@Michaels-MacBook-Pro path % protoc --python_betterproto_out="./out" -I "./protos" $(find protos -name "*.proto")
protoc-gen-python_betterproto: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--python_betterproto_out: protoc-gen-python_betterproto: Plugin failed with status code 1.
Could there be something misconfigured with my installation? Any tips would be greatly appreciated.