Typeerror:not enough arguments for format string

Source: Internet
Author: User

Error msg:

---Logging error---Traceback (most recent): File"/usr/lib/python3.6/logging/__init__.py", line 993,inchEmit msg=Self.format (record) File"/usr/lib/python3.6/logging/__init__.py", line 839,inchformatreturnFmt.format (record) File"/usr/lib/python3.6/logging/__init__.py", Line 579,inchformat S=Self.formatmessage (record) File"/usr/lib/python3.6/logging/__init__.py", line 548,inchFormatMessagereturnSelf._style.format (record) File"/usr/lib/python3.6/logging/__init__.py", Line 391,inchformatreturnSelf._fmt% record.__dict__TypeError: notEnough arguments forformat Stringcall stack:file"start.py", Line 7,inch<module>Engine (). Start () File"/home/hpcm/desktop/spider/13-frame_spider/myscrapy/core/engine.py", line 45,inchStart Logger.info ("End time is [{}]". Format (end)) Message:'End time is [2018-09-27 17:55:54.795786]'Arguments: ()

Problem:

Error in DEFAULT_LOG_FMT parameter used for LOG in setting

Solve:

Check if the parameter is incorrectly written, or if there are many fewer items

Typeerror:not enough arguments for format string

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.