Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'coloredlogs' has no attribute 'CAN_USE_BOLD_FONT' #3

Closed
iamtalhaasghar opened this issue May 18, 2021 · 3 comments
Closed

module 'coloredlogs' has no attribute 'CAN_USE_BOLD_FONT' #3

iamtalhaasghar opened this issue May 18, 2021 · 3 comments

Comments

@iamtalhaasghar
Copy link

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'
@vra
Copy link
Owner

vra commented May 18, 2021

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

@iamtalhaasghar
Copy link
Author

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

@vra
Copy link
Owner

vra commented May 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants