Error on completing setup wizard

I got the following error on local installation of Erpnext 7 in Ubuntu 16.04

Traceback (most recent call last):
File “/home/savad/frappe-bench/apps/frappe/frappe/”, line 56, in application
response = frappe.handler.handle()
File “/home/savad/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/savad/frappe-bench/apps/frappe/frappe/”, line 42, in execute_cmd
ret =, **frappe.form_dict)
File “/home/savad/frappe-bench/apps/frappe/frappe/”, line 907, in call
return fn(*args, **newargs)
File “/home/savad/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/”, line 35, in setup_complete
File “/home/savad/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/”, line 107, in update_user_name
last_name=%(last_name)s WHERE name=%(name)s"“”, args)
File “/home/savad/frappe-bench/apps/frappe/frappe/”, line 138, in sql
self._cursor.execute(query, values)
File “/home/savad/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 185, in execute
for key, item in args.iteritems())
KeyError: ‘first_name’

I cannot move forward due to this error . Anyone got idea?

When do you get this error?
Can you please explain the steps you took?
Add screenshots?

Sorry for late reply. I got this error on clicking Complete Setup after entering the Name,Users,Customers ,Suppliers,Item etc after deloying the instance on my server

I only gave details which are required and nothing else in every screen on setup.

I tried again but with same result

I have the same error on my dev site.

I have the same error on my local site.
Someone who has gone through the same and has the solution?


Seems like you site is not installed properly, Please reinstall the site using bench --site your_sitename reinstall

Gracias, lo hice y resolvi el problema.