TypeError: decoding str is not supported in CSV export

Hi,
I am getting TypeError: decoding str is not supported while exporting CSV file.
Note: I have migrated from V6 to v11.

Full Error:
Traceback (most recent call last):
File “/home/bench/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/bench/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/bench/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/bench/frappe-bench/apps/frappe/frappe/init.py”, line 1036, in call
return fn(*args, **newargs)
File “/home/bench/frappe-bench/apps/frappe/frappe/desk/reportview.py”, line 163, in export_query
frappe.response[‘result’] = text_type(f.read(),‘utf-8’)
TypeError: decoding str is not supported

1 Like

That same traceback noted here [Mega Thread] Version 12 Release Bugs - #97 by Not_a_countant

and recently reported CSV from Report broken · Issue #19827 · frappe/erpnext · GitHub