both \_\_init__.py is empty and **test.proto** is like this:
package test; import "comm/comm.proto";
message Test{ optional comm.Foo foo = 1; } and **comm.proto** is like this:
package comm;
message Foo{}
i successfuly used command *protoc --python_out=. -I.* to compile **comm.proto** and **test.proto** but when i tried to import ***test_pb2*** in ***test.py***, i encounter this error
TypeError: Couldn't build proto file into descriptor pool: Depends on file 'comm/comm.proto', but it has not been loaded
Can someone help me identify the reason and provide a solution, please?
Daz Wilkin
unread,
Sep 17, 2023, 9:04:13 PM9/17/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
I took a stab at answering your question on Stack overflow: