Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail with ./gateway.go:101:2: opts declared and not used #4

Open
kingaj12 opened this issue Jul 11, 2023 · 0 comments
Open

Fail with ./gateway.go:101:2: opts declared and not used #4

kingaj12 opened this issue Jul 11, 2023 · 0 comments

Comments

@kingaj12
Copy link
Member

Describe the bug

Using the command python -m grpc_gateway_wrapper --proto <file>.proto generates an error:

# grpc-gateway-wrapper
./gateway.go:101:2: opts declared and not used
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/kingaj/.local/share/virtualenvs/text_sentiment-x2dwtZKr/lib/python3.11/site-packages/grpc_gateway_wrapper/__main__.py", line 9, in <module>
    main()
  File "/home/kingaj/.local/share/virtualenvs/text_sentiment-x2dwtZKr/lib/python3.11/site-packages/grpc_gateway_wrapper/gen_gateway.py", line 246, in main
    cmd(f"go build -o {bin_out}", cwd=go_build_dir)
  File "/home/kingaj/.local/share/virtualenvs/text_sentiment-x2dwtZKr/lib/python3.11/site-packages/grpc_gateway_wrapper/shell_tools.py", line 19, in cmd
    raise RuntimeError(f"Command [{cmd}] failed with code {res.returncode}")
RuntimeError: Command [go build -o /home/kingaj/Github/caikit-flask/text_sentiment/build/app] failed with code 1

Platform

Please provide details about the environment you are using, including the following:

  • Interpreter version: Python 3.11.4
  • Library version: 0.1.0
@kingaj12 kingaj12 changed the title go build gateway.go fails with opts declared and not used Fail with ./gateway.go:101:2: opts declared and not used Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant