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

analizar problemas de novas versões do GRPC > 1.6.0 #99

Closed
jfunez opened this issue Dec 8, 2017 · 1 comment
Closed

analizar problemas de novas versões do GRPC > 1.6.0 #99

jfunez opened this issue Dec 8, 2017 · 1 comment

Comments

@jfunez
Copy link
Contributor

jfunez commented Dec 8, 2017

Editar o arquivo requirements/base.txt

Trocar:

grpcio==1.6.0
grpcio-tools==1.6.0
grpcio-health-checking==1.6.0

Para

grpcio==1.7.3
grpcio-tools==1.7.3
grpcio-health-checking==1.7.3

Instalar as dependências:

pip install -r requirements/local.txt

Tentar rodar o servidor grpc:

python manage.py grpc_server

Erro:

Starting GRPC... Host: [::], Port: 5000
Traceback (most recent call last):
  File "manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/jamil/.virtualenvs/opac_ssm/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/Users/jamil/.virtualenvs/opac_ssm/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/jamil/.virtualenvs/opac_ssm/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/jamil/.virtualenvs/opac_ssm/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/Users/jamil/projects/opac_ssm/grpc_ssm/management/commands/grpc_server.py", line 20, in handle
    settings.GRPC_MAX_SEND_MESSAGE_LENGTH)
  File "/Users/jamil/projects/opac_ssm/grpc_ssm/grpc_server.py", line 288, in serve
    health_pb2.add_HealthServicer_to_server(servicer, server)
AttributeError: module 'grpc_health.v1.health_pb2' has no attribute 'add_HealthServicer_to_server'
@jamilatta jamilatta changed the title analizar problemas de novas versões do GRPC > 1.4 analizar problemas de novas versões do GRPC > 1.6.0 Dec 8, 2017
@jfunez
Copy link
Contributor Author

jfunez commented Oct 4, 2018

Resolvido em: #184

@jfunez jfunez closed this as completed Oct 4, 2018
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