Closed raphCode closed 1 year ago
Context: I started working on https://github.com/inducer/pudb/issues/64, and after merging old code from https://github.com/inducer/pudb/pull/146, this cyclic import issue became apparent.
The docs failure will likely disappear if you rebase to current main.
Thanks!
This function may cause an import cycle when it is called during early startup. Specifically, during import of debugger.py, the settings are loaded. Exceptions during load are forwarded to the logging system, where they are handled by TerminalOrStreamHandler. This is turn will call _have_debugger() to determine whether to display an UI dialog. The function attempts to import the debugger.py, completing the import cycle.
sample traceback: