Upgrade from 6 to 7 error (fixed)

Hello,

When upgrading from 6 to 7 I encountered an error in frappe-bench/apps/erpnext/erpnext/patches/v7_0/create_warehouse_nestedset.py.

The error was UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 0: ordinal not in range(128) – see also Executing erpnext.patches.v7_0.create_warehouse_nestedset in site1.local (1bd3e0 - Pastebin.com

I fixed the error by adding .encode('utf-8') to company.abbr in lines 55 and 110 in the file frappe-bench/apps/erpnext/erpnext/patches/v7_0/create_warehouse_nestedset.py

I don’t know how to patch this so maybe one of the devs can take a look and fix it for others.

Thanks.

1 Like