Skip to main content

All Questions

4 votes
2 answers
1k views

Implicit relative imports inside of Protobuf-generated Python package make importing from outside impossible

I have a package that looks like this: setup.py requirements.txt alphausblue/ api/ ripple/ org_pb2.py org/ v1/ org_pb2_grpc.py In org_pb2_grpc.py I ...
Woody1193's user avatar
  • 8,094
10 votes
1 answer
3k views

protobuf and python: can protoc generate __init__.py files?

Is there a way to ask protoc to generate empty __init__.py files in the directories that it uses to generated the .py files so that they can be used as modules?
eftshift0's user avatar
  • 30.5k
1 vote
1 answer
803 views

python: problem importing protobuf generated files

I'm testing files generated by protobuf for use with python. The problem that I'm hitting is that protobuf is separating the generated python files in directories and then I have problems with the ...
eftshift0's user avatar
  • 30.5k