Skip to content

Correct Way To Create A Package From Protobufs #10108

Answered by inolaole
inolaole asked this question in Q&A

You must be logged in to vote

Alright having solved my problem I will document here for those encountering the same. If you are having issues packaging files generated by the standardproto compiler, the most likely issue you will be facing is that they are missing init.py's at each level of your python packages. In my case

[repo root]
- generated
   - python
      -  standardproto 
         -  [org_name]
            - [area (i.e. accounts)]
               - [sub (v1)]
                  - *.pyi, *.py
              - [sub (v0)]
                  - *.pyi, *.py

In order to properly get these packaged use a script to drop an init.py at each level starting with [org_name]. After you have done that you can specify the follo…

Replies: 2 comments 8 replies

You must be logged in to vote
8 replies
@inolaole

@inolaole

@inolaole

@dimbleby

@abn

abn Jan 30, 2025
Maintainer

You must be logged in to vote
0 replies
Answer selected by inolaole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants