Can't delete TAG

If I use TAGs in different language then I can’t delete it.
Please help to solve this problem.

TAG example:
szállítás
futár


ERROR LOG:

[ERROR] 2017-06-12 01:48:38,257 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “ridefut\u00e1r”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 7: ordinal not in range(128)
[ERROR] 2017-06-12 01:48:43,282 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)
[ERROR] 2017-06-12 01:48:57,324 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “dfa3ee4567”,
“dt”: “Communication”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)


ERROR LOG 2

[ERROR] 2017-06-12 01:32:43,226 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:32:43.224744-10.0.2.2-160
[ERROR] 2017-06-12 01:34:07,322 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “dfa3ee4567”,
“dt”: “Communication”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)
[ERROR] 2017-06-12 01:34:07,324 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:34:07.322277-10.0.2.2-59d
[DEBUG] 2017-06-12 01:34:37,643 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: erpnext.vm
Queued events for site erpnext.vm
[ERROR] 2017-06-12 01:36:02,786 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “ridefut\u00e1r”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 7: ordinal not in range(128)
[ERROR] 2017-06-12 01:36:02,823 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:36:02.788538-10.0.2.2-1eb
[ERROR] 2017-06-12 01:36:06,707 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)
[ERROR] 2017-06-12 01:36:06,709 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:36:06.707368-10.0.2.2-e46
[ERROR] 2017-06-12 01:36:17,658 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “dfa3ee4567”,
“dt”: “Communication”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)
[ERROR] 2017-06-12 01:36:17,660 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:36:17.658334-10.0.2.2-d1d
[DEBUG] 2017-06-12 01:39:18,986 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: erpnext.vm
Queued events for site erpnext.vm
[ERROR] 2017-06-12 01:41:52,299 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “OPTY-01025”,
“dt”: “Opportunity”,
“tag”: “k\u00e9toldal\u00fa als\u00f3 v\u00e1g\u00f3\u00e9l”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe9’ in position 1: ordinal not in range(128)
[ERROR] 2017-06-12 01:41:52,301 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:41:52.299863-10.0.2.2-102
[DEBUG] 2017-06-12 01:43:19,263 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: erpnext.vm
Queued events for site erpnext.vm
[DEBUG] 2017-06-12 01:47:19,501 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: erpnext.vm
Queued events for site erpnext.vm
[ERROR] 2017-06-12 01:47:56,671 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “ridefut\u00e1r”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 7: ordinal not in range(128)
[ERROR] 2017-06-12 01:47:56,673 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:47:56.672250-10.0.2.2-809
[ERROR] 2017-06-12 01:48:09,302 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “sz\u00e1ll\u00edt\u00e1s”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 2: ordinal not in range(128)
[ERROR] 2017-06-12 01:48:09,303 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:48:09.302311-10.0.2.2-e67
[ERROR] 2017-06-12 01:48:18,057 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “LEHET-00512”,
“dt”: “Opportunity”,
“tag”: “ridefut\u00e1r”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe1’ in position 7: ordinal not in range(128)
[ERROR] 2017-06-12 01:48:18,059 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:48:18.057577-10.0.2.2-182
[ERROR] 2017-06-12 01:48:31,480 | /home/frappe/frappe-bench/apps/frappe/frappe/app.py:
Site: erpnext.vm
Form Dict: {
“cmd”: “frappe.desk.tags.remove_tag”,
“dn”: “OPTY-01025”,
“dt”: “Opportunity”,
“tag”: “k\u00e9toldal\u00fa als\u00f3 v\u00e1g\u00f3\u00e9l”
}
Request Error
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 48, in remove_tag
DocTags(dt).remove(dn, tag)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/tags.py”, line 87, in remove
print(tag, filter(lambda x:x!=tag, tl))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe9’ in position 1: ordinal not in range(128)
[ERROR] 2017-06-12 01:48:31,481 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2017-06-12 01:48:31.480460-10.0.2.2-4c4


Platform
VM production

Installed AppsERPNext: v8.0.47 (master)
Frappe Framework: v8.0.65 (master)

To reproduce:

@krnkris
Would you mind creating a github issue for this. We will fix this and release.

@krnkris,

This has been fixed and merged into hotfix branch and soon it will be release into master branch, Please update and try again.

Thanks

Thank you, for your answer!
Already done…

Thank you for the fix!

Perfectly working!

Thank all of you for the awesome support!!