I have Issue with get-untranslated bench command

hello erpnext community i have error when excute command :
$ bench get-untranslated en ~/en.txt
i want to translate it to arabic in another file and update it to erpnext
output error :
File “/opt/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func

i need help to create custom translation.
return f(get_current_context(), *args, **kwargs)
File “/opt/erpnext/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/opt/erpnext/frappe-bench/apps/frappe/frappe/commands/translate.py”, line 49, in get_untranslated
frappe.translate.get_untranslated(lang, untranslated_file, get_all=all)
File “/opt/erpnext/frappe-bench/apps/frappe/frappe/translate.py”, line 622, in get_untranslated
f.write((escape_newlines(m) + os.linesep).encode(“utf-8”))
TypeError: write() argument must be str, not bytes

1 Like

I have the same problem