L2 - UnicodeEncodeError when running: result = crew.kickoff(inputs={"topic": "Artificial Intelligence"})

I won’t paste the entire traceback here. It is quite long. Please let me know if you want it pasted or shared another way. Below is the last part of the traceback.

File /opt/anaconda3/lib/python3.11/site-packages/httpx/_models.py:76, in (.0)
70 self._list = list(headers._list)
71 elif isinstance(headers, Mapping):
72 self._list = [
73 (
74 normalize_header_key(k, lower=False, encoding=encoding),
75 normalize_header_key(k, lower=True, encoding=encoding),
—> 76 normalize_header_value(v, encoding),
77 )
78 for k, v in headers.items()
79 ]
80 else:
81 self._list = [
82 (
83 normalize_header_key(k, lower=False, encoding=encoding),
87 for k, v in headers
88 ]

File /opt/anaconda3/lib/python3.11/site-packages/httpx/_utils.py:53, in normalize_header_value(value, encoding)
51 if isinstance(value, bytes):
52 return value
—> 53 return value.encode(encoding or “ascii”)

UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\u2018’ in position 7: ordinal not in range(128)

Are you running this locally or on the deeplearning.ai platform?

I am running locally. However, I was successfully able run locally all of the labs from the three-course series of Machine Learning Specialization. I have limited ability to debug when it is crewai code.

That does not really apply to the short courses. The short courses do not run on Coursera’s platform (as the MLS courses do).