opentelemetry-demo icon indicating copy to clipboard operation
opentelemetry-demo copied to clipboard

recommendation service failing to start

Open cartersocha opened this issue 1 year ago • 1 comments

Getting a weird error on the above mentioned service. Seems to be a protobuf issue

"Traceback (most recent call last): File "/usr/src/app/recommendation_server.py", line 28, in from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter File "/usr/local/lib/python3.10/site-packages/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/init.py", line 22, in from opentelemetry.exporter.otlp.proto.grpc.exporter import ( File "/usr/local/lib/python3.10/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py", line 39, in from opentelemetry.proto.common.v1.common_pb2 import ( File "/usr/local/lib/python3.10/site-packages/opentelemetry/proto/common/v1/common_pb2.py", line 36, in _descriptor.FieldDescriptor( File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in new _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower)."

cartersocha avatar Sep 20 '22 03:09 cartersocha

I'm running the latest version, but can't reproduce this problem.

mviitane avatar Sep 20 '22 06:09 mviitane