[issue44120] logging.config.fileConfig/dictConfig can not import class

Hiroaki Mizuguchi report at bugs.python.org
Thu May 13 02:00:02 EDT 2021


New submission from Hiroaki Mizuguchi <hiroaki-m at iij.ad.jp>:

This bug is loading bar.logging.FooBarFormatter is occur "ModuleNotFoundError: No module named 'bar.logging.FooBarFormatter'; 'bar.logging' is not a package" when bar module has 'import logging' directive.

logging.config._resolve and logging.config.BaseConfiguration.resolve has the bug.

See also my testcase repository: https://github.com/akihiro/python-logging-config-testcase

----------
components: Library (Lib)
messages: 393557
nosy: akihiro
priority: normal
severity: normal
status: open
title: logging.config.fileConfig/dictConfig can not import class
type: crash
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44120>
_______________________________________


More information about the Python-bugs-list mailing list