Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2025 04:05 AM
I did a bit of deep dive into the source code of the pkgutils walk_package, and I noticed this happening:
def get_importer(path_item):
path_item = os.fsdecode(path_item)
try:
importer = sys.path_importer_cache[path_item]
except:
importer = []
return importerfor a given path in dbr <17.2 like `/Workspace/Repos/<user>/<repo>` this returns a normal FileFinder Object, when I try on >= 17.2 this returns <dbruntime.workspace_import_machinery._WorkspacePathEntryFinder object at 0x.....>.
looking further this means that it will never find any files and thus not work on imports within the repo.