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 http://pastebin.com/5vW6PXpB

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