hyperledger-archives / education-sawtooth-simple-supply

https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
51 stars 61 forks source link

sawtooth-simple-supply-subscriber, sawtooth-simple-supply-tp, sawtooth-simple-supply-rest-api containers exit upon getting started #44

Open chandrikaba opened 4 years ago

chandrikaba commented 4 years ago

Hi All: After executing command - docker-compose up, these below mentioned containers exit immediately they are started.

  1. sawtooth-simple-supply-subscriber,
  2. sawtooth-simple-supply-tp,
  3. sawtooth-simple-supply-rest-api

Log trace is as follows - Traceback (most recent call last): File "/project/sawtooth-simple-supply/bin/simple-supply-subscriber", line 27, in from simple_supply_subscriber.main import main File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/main.py", line 22, in from simple_supply_subscriber.event_handling import get_events_handler File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/event_handling.py", line 25, in from simple_supply_subscriber.decoding import deserialize_data File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/decoding.py", line 18, in from simple_supply_protobuf.agent_pb2 import AgentContainer File "/project/sawtooth-simple-supply/protobuf/simple_supply_protobuf/agent_pb2.py", line 21, in create_key=_descriptor._internal_create_key, AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key' Traceback (most recent call last): File "/project/sawtooth-simple-supply/bin/simple-supply-subscriber", line 27, in from simple_supply_subscriber.main import main File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/main.py", line 22, in from simple_supply_subscriber.event_handling import get_events_handler File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/event_handling.py", line 25, in from simple_supply_subscriber.decoding import deserialize_data File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/decoding.py", line 18, in from simple_supply_protobuf.agent_pb2 import AgentContainer File "/project/sawtooth-simple-supply/protobuf/simple_supply_protobuf/agent_pb2.py", line 21, in create_key=_descriptor._internal_create_key, AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Please be informed that Both the protoc and protobuf versions are same. - 3.13.0 Request your help and guidance to solve this issue.

Thanks & Regards, Chandrika

Sid330s commented 3 years ago

Same Problem with me

Sid330s commented 3 years ago

Please Tell if you solved ?

amandaSFer commented 3 years ago

Same issue

ichigo92 commented 3 years ago

This is due to version mismatch. Go to /shell/Dockerfile at line 39 change grpcio-tools \ with grpcio-tools==1.29.0 \. This will solve your issue. You can check out my updated version of sawtooth-marketplace.

danintel commented 3 years ago

This may be fixed with PR #48