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
When importing the library all subpackages are added to sys.modules as top-hierarchy packages/modules which creates ambigious imports.
If I would have my own module/package named like any of the supackages the import order becomes important.
# file 1importworld# imports my module, or the expected one from sys.pathimportad_rss
# file 2importad_rssimportworld# This is ad_rss.rss.world which is unexpected
sys.modules["core"], sys.modules["world"], sys.modules["unstructured"], ... these all should be appropriate subpackages of ad_rss and not their own package, e.g. sys.modules[ad_rss.rss.core]`
The text was updated successfully, but these errors were encountered:
When importing the library all subpackages are added to
sys.modules
as top-hierarchy packages/modules which creates ambigious imports.If I would have my own module/package named like any of the supackages the import order becomes important.
sys.modules["core"], sys.modules["world"], sys.modules["unstructured"], ...
these all should be appropriate subpackages ofad_rss
and not their own package, e.g.sys.modules[
ad_rss.rss.core]`The text was updated successfully, but these errors were encountered: