vra / dompare

:green_apple: :apple: A tool to compare two directories and show diff in HTML:apple: :green_apple:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module 'coloredlogs' has no attribute 'CAN_USE_BOLD_FONT'

iamtalhaasghar opened this issue · comments

Stacktrace:

Traceback (most recent call last):
  File "/home/programmer/.local/bin/dompare", line 8, in <module>
    sys.exit(main())
  File "/home/programmer/.local/lib/python3.9/site-packages/dompare/__init__.py", line 161, in main
    logger = create_logger(args.verbose)
  File "/home/programmer/.local/lib/python3.9/site-packages/dompare/__init__.py", line 24, in create_logger
    levelname=dict(color='yellow', bold=coloredlogs.CAN_USE_BOLD_FONT),
AttributeError: module 'coloredlogs' has no attribute 'CAN_USE_BOLD_FONT'

hi @iamtalhaasghar ,
Thanks for trying dompare :)
I guess this issue is related about the version of coloredlogs you are using. Can you print the version of it by running commands below:

pip3 list |grep coloredlogs

One of quick solution of this issue is installing the certain version of coloredlogs that works for me:

pip3 install -U coloredlogs==10.0.0

Thanks for this awesome tool.
coloredlogs v10.0.0 works just fine.

Great to hear that. Hope you enjoy playing with this tool :)