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
Protoc generates python libraries, name_pb2.py, name_pb2_grpc.py and name_pb2.pyi. The last one is interface file. The files are generated all right. Protol then fixes imports, but only in .py files, .pyi files are left untouched.
It looks like it is only mistake in rewriting patterns. Because imports in .py files look like: "from phonexia.common import core_pb2 as pkg_name_dot_common_dot_core__pb2", but in pyi files imports are like: "from phonexia.common import core_pb2 as _core_pb2". I tried renaming import in pyi files and it worked.
The text was updated successfully, but these errors were encountered:
I'm working on a project with nested structure where are shared objects in directories.
This is how directory structure looks like.
Protoc generates python libraries, name_pb2.py, name_pb2_grpc.py and name_pb2.pyi. The last one is interface file. The files are generated all right. Protol then fixes imports, but only in .py files, .pyi files are left untouched.
It looks like it is only mistake in rewriting patterns. Because imports in .py files look like: "from phonexia.common import core_pb2 as pkg_name_dot_common_dot_core__pb2", but in pyi files imports are like: "from phonexia.common import core_pb2 as _core_pb2". I tried renaming import in pyi files and it worked.
The text was updated successfully, but these errors were encountered: