crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG]

Open yueh0607 opened this issue 7 months ago • 5 comments

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

Image

Operating System

Windows 11

Python Version

3.10

crewAI Version

0.108.0

crewAI Tools Version

x

Virtual Environment

Venv

Evidence

Image

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 avatar Apr 17 '25 06:04 yueh0607

@yueh0607 could you share your snippet code to reproduce that?

lucasgomide avatar Apr 22 '25 14:04 lucasgomide

I am also having this issue but with charmap: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f30a' in position 0: character maps to

jidaprano avatar May 01 '25 18:05 jidaprano

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.

Vidit-Ostwal avatar May 01 '25 18:05 Vidit-Ostwal

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.

jidaprano avatar May 01 '25 18:05 jidaprano

Hey @jidaprano some clarification questions, to try to reproduce here:

  1. Does your agent replying with emojis?
  2. Would you mind sharing a few snippet code?

lucasgomide avatar May 02 '25 20:05 lucasgomide

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.

github-actions[bot] avatar Jun 02 '25 12:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 08 '25 12:06 github-actions[bot]

@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.

jamiefones avatar Jun 25 '25 12:06 jamiefones

That's fine! we are working in a fix for this one.. Should be available in the next cut.

lucasgomide avatar Jun 25 '25 17:06 lucasgomide

@jamiefones could you help us to validate it in your environment?

lucasgomide avatar Jun 25 '25 17:06 lucasgomide

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?

jamiefones avatar Jun 25 '25 18:06 jamiefones

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

lucasgomide avatar Jun 25 '25 19:06 lucasgomide

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 avatar Jun 26 '25 01:06 yueh0607

@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!

lucasgomide avatar Jun 26 '25 14:06 lucasgomide

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.

github-actions[bot] avatar Jul 27 '25 12:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 01 '25 12:08 github-actions[bot]