You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to import the generated python file it does not work because apparently the imported definitions are not there or something.
>>> import gen.pb_python.all.test.test_pb2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/nilan/Desktop/docker-protoc/gen/pb_python/all/test/test_pb2.py", line 16, in <module>
from all.test import include_pb2 as all_dot_test_dot_include__pb2
ImportError: cannot import name 'include_pb2' from 'all.test' (unknown location)
Ideally I am really trying to auto generate python files for proto definitions that could be in different files but are imported in the main file but could not get to do that.
The text was updated successfully, but these errors were encountered:
Hi @nilansaha,
I'm sorry for the late response.
If this issue is still relevant, would you mind explaining the difference between your invocation and the test?
Perhaps you can also share a proto file definitions to reproduce he issue.
So, I followed the commands given in the test to try to generate python files for the proto definitions in the
all/test/
folderHere is the command I used which is almost the same as the one used in the test file at
all/test.sh
But when I try to import the generated python file it does not work because apparently the imported definitions are not there or something.
Ideally I am really trying to auto generate python files for proto definitions that could be in different files but are imported in the main file but could not get to do that.
The text was updated successfully, but these errors were encountered: