ColourizedFormatter cannot work after packaging with pyinstaller on Windows #2007
Unanswered
lovexuan
asked this question in
Potential Issue
Replies: 1 comment 3 replies
-
Do you have an MRE? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After packaging with pyinstaller,

sys.stderr
will beNone
, and at line 47 ofuvicorn.logging
, it called sys.stdout.isatty() directly. So it will always raise anAttributeError
like:Of cause I can construct a custom logger config without
ColourizedFormatter
, but I think the default logger should avoid this error :)Beta Was this translation helpful? Give feedback.
All reactions