ValueError: Tag "<locals>" does not corespond to any known ansi directive, make sure you did not misspelled it
See original GitHub issueI get this error when deploying app on Heroku, locally all seems fine. Any idea how can I fix this?
ValueError: Tag "<locals>" does not corespond to any known ansi directive, make sure you did not misspelled it
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Network does not generalize - Image.sc Forum
Problem: For a couple of weeks I have been trying to train a network on an extremely simple and uniform human hand movement...
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
Bug:2 - "How do I attach an ebuild. ... Bug:106 - "dircolors is not useable with zsh, and may be broken" status:RESOLVED resolution:FIXED...
Read more >Changelog — Python 3.11.1 documentation
So we keep the warning and no longer claim that literal_eval is safe. ... when the Python test suite is run with the...
Read more >3a2425a5aed1bef93dab954745...
... class do not take into account locations corresponding to synthetic, ... b9a1c53: Merge branch 'safe-sudo-escaping' 7d973ec: no yourkit in pycharm ce ...
Read more >beets Documentation - Read the Docs
for every album you import. Option (a) is really fast, but option (b) makes sure all your songs' tags are exactly right from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Which Loguru version are you using? This error may happen if you use
opt(colors=True)
(formerlyopt(ansi=True)
), because Loguru will try to convert markup found in logged string to ansi color codes. If a markup is found but does not correspond to any known color (like<locals>
), then an error is raised. It may also happen depending on theformat
used by your handler. You can try to.remove()
the default handler, and.add()
a new one while enforcingcolorize=False
.I can’t help you much without seeing code. 😕
@khanfarhan10 Ideally,
opt(colors=True)
should be used only locally where you know the message won’t contain any markup tag.However, you can escape the invalid tag as follow: