Consider namespace what we have is com.example.foo with schemas defined at the both level com.example and com.example.foo This causes a problem in import. For example, from mymodule.com import example imports the sub-package example instead of the module example.py
The schema defined at the foo level uses a schema defined at example level. Even though the codegen is succesfull, it gives error in importing the generated classes. For example from mymodule.com.example import foo gives ImportError: cannot import name 'MyFooRecord' from 'mymodule.com.example'
Consider namespace what we have is
com.example.foo
with schemas defined at the both levelcom.example
andcom.example.foo
This causes a problem in import. For example,from mymodule.com import example
imports the sub-packageexample
instead of the moduleexample.py
The schema defined at thefoo
level uses a schema defined atexample
level. Even though the codegen is succesfull, it gives error in importing the generated classes. For examplefrom mymodule.com.example import foo
givesImportError: cannot import name 'MyFooRecord' from 'mymodule.com.example'