crewAI
crewAI copied to clipboard
[BUG]
Description
It is recommended to remove emojis as these will create blocking errors in GBK
Steps to Reproduce
It is recommended to remove emojis as these will create blocking errors in GBK
Expected behavior
It is recommended to remove emojis as these will create blocking errors in GBK
Screenshots/Code snippets
Operating System
Windows 11
Python Version
3.10
crewAI Version
0.108.0
crewAI Tools Version
x
Virtual Environment
Venv
Evidence
Possible Solution
It is recommended to remove emojis as these will create blocking errors in GBK
Additional context
It is recommended to remove emojis as these will create blocking errors in GBK
@yueh0607 could you share your snippet code to reproduce that?
I am also having this issue but with charmap:
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f30a' in position 0: character maps to
I am also having this issue but with charmap: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f30a' in position 0: character maps to
I think this is different error, try updating the crewai package to the latest.
I am updated to the latest version; I guess in an ideal situation I'd like to be able to toggle emojis off in the output.
Hey @jidaprano some clarification questions, to try to reproduce here:
- Does your agent replying with emojis?
- Would you mind sharing a few snippet code?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
@lucasgomide
The custom printing package crewai uses causes issues in certain runtime environments such as Azure Functions. My issue is nothing to do with LLM outputs, but rather the crew ai printing logs, they output emojis such as ticks etc. which causes issues.
It would be ideal to have a way to turn off emojis and any other fancy logs and just keep it basic - this would allow it to seamlessly work with Azure Functions.
That's fine! we are working in a fix for this one.. Should be available in the next cut.
@jamiefones could you help us to validate it in your environment?
Yes sure @lucasgomide - so if you use Azure Functions in particular, they lock the log files which makes any manual overrides impossible. We are using Azure Functions Premium on Linux. This fails when you run both local functions on Windows and hosted on Azure with Linux.
If you need any further info or would like me to do some testing let me know.
Are you aware of any manual workarounds we could use whilst we wait for the update?
sounds good!
We have currently a branch devin/1750855694-fix-issue-3062 with a initial fix attempt. Could you give a try by installing crewai package with its reference?
uv pip install crewai git+https://github.com/crewAIInc/crewAI.git@devin/1750855694-fix-issue-3062
Sorry, I haven't been following GitHub for too long, but I solved the problem by automatically modifying the characters in console_formatter.py every time it was executed
@yueh0607 we might have a solution for your issue. Try to install crewai using the following command
uv pip install crewai git+https://github.com/crewAIInc/crewAI.git@devin/1750855694-fix-issue-3062
I'm looking forward to finding out if it works!
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.