When I select the Portuguese as default language in the Setup Wizard, the following appears:
Traceback (innermost last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 67, in application
response = frappe.handler.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 74, in handle
execute_cmd(cmd)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 99, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 757, in call
return fn(*args, **newargs)
File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/setup_wizard.py", line 572, in load_messages
m = get_dict("page", "setup-wizard")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/translate.py", line 113, in get_dict
translation_assets[asset_key] = make_dict_from_messages(messages)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/translate.py", line 148, in make_dict_from_messages
full_dict = get_full_dict(frappe.local.lang)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/translate.py", line 176, in get_full_dict
frappe.local.lang_full_dict = load_lang(lang)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/translate.py", line 186, in load_lang
csv_content = read_csv_file(path)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/translate.py", line 387, in read_csv_file
newdata = [[unicode(val, 'utf-8') for val in row] for row in data]
Error: newline inside string
So I made an attempt using English as the default language and it appeared at the end of the Setup Wizard:
a) on the same laptop, bench update --upgrade and run again
b) tried installing virtual box and upload virtual image in another laptop
c) tried using a different country (Philippines, Singapore)
and got the same errors on the popup window after going through the setup process:
Traceback (innermost last):
File “/home/dir/frappe-bench/apps/frappe/frappe/app.py”, line 67, in application
response = frappe.handler.handle()
File “/home/dir/frappe-bench/apps/frappe/frappe/handler.py”, line 74, in handle
execute_cmd(cmd)
File “/home/dir/frappe-bench/apps/frappe/frappe/handler.py”, line 99, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/dir/frappe-bench/apps/frappe/frappe/init.py”, line 758, in call
return fn(*args, **newargs)
File “/home/dir/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/setup_wizard.py”, line 37, in setup_account
install_fixtures.install(args.get(“country”))
File “/home/dir/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/install_fixtures.py”, line 193, in install
doc.insert(ignore_permissions=True)
File “/home/dir/frappe-bench/apps/frappe/frappe/model/document.py”, line 188, in insert
self.db_insert()
File “/home/dir/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 264, in db_insert
), d.values())
File “/home/dir/frappe-bench/apps/frappe/frappe/database.py”, line 135, in sql
self._cursor.execute(query, values)
File “/home/dir/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/dir/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
DuplicateEntryError: (u’Print Heading’, u’Credit Note’, IntegrityError(1062, “Duplicate entry ‘Credit Note’ for key ‘PRIMARY’”))
I’ve downloaded the new Virtualbox image yesterday. I still get the same error.
I used english and Philippines. Is there something wrong with my settings? Appreciate if anyone can help.
Traceback (innermost last):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/app.py”, line 67, in application
response = frappe.handler.handle()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py”, line 74, in handle
execute_cmd(cmd)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py”, line 99, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 758, in call
return fn(*args, **newargs)
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/setup_wizard.py”, line 37, in setup_account
install_fixtures.install(args.get(“country”))
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/install_fixtures.py”, line 193, in install
doc.insert(ignore_permissions=True)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py”, line 188, in insert
self.db_insert()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 264, in db_insert
), d.values())
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line 135, in sql
self._cursor.execute(query, values)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
DuplicateEntryError: (u’Print Heading’, u’Credit Note’, IntegrityError(1062, “Duplicate entry ‘Credit Note’ for key ‘PRIMARY’”))