JDAI-CV / FaceX-Zoo

A PyTorch Toolbox for Face Recognition

Home Page:https://arxiv.org/pdf/2101.04407.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File "logging.conf" has a redundant ']' in line 32

jushe opened this issue · comments

[handler_fileHandlers]]# fileHandlers
    class = logging.handlers.RotatingFileHandler
    level = DEBUG
    formatter = fmt
    args = ('logs/sdk.log', 'a', 10000, 3, 'UTF-8')

cause this error:

Traceback (most recent call last):
  File "/content/FaceX-Zoo/face_sdk/detect_and_align.py", line 2, in <module>
    from core.model_handler.face_alignment.FaceAlignModelHandler import FaceAlignModelHandler
  File "/content/FaceX-Zoo/face_sdk/core/model_handler/face_alignment/FaceAlignModelHandler.py", line 7, in <module>
    logging.config.fileConfig("config/logging.conf")
  File "/usr/lib/python3.10/logging/config.py", line 80, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python3.10/logging/config.py", line 135, in _install_handlers
    section = cp["handler_%s" % hand]
  File "/usr/lib/python3.10/configparser.py", line 965, in __getitem__
    raise KeyError(key)
KeyError: 'handler_fileHandlers'