ERROR while completing Setup-wizard

Error occurred final step of setup wizard…
Please go through image.

    Traceback (most recent call last):
  File "/home/medipta/frappe-bench/apps/frappe/frappe/app.py", line 55, in application
    response = frappe.handler.handle()
  File "/home/medipta/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
    execute_cmd(cmd)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/__init__.py", line 879, in call
    return fn(*args, **newargs)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 34, in setup_complete
    update_user_name(args)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 91, in update_user_name
    doc.insert()
  File "/home/medipta/frappe-bench/apps/frappe/frappe/model/document.py", line 231, in insert
    self.run_post_save_methods()
  File "/home/medipta/frappe-bench/apps/frappe/frappe/model/document.py", line 728, in run_post_save_methods
    self.run_method("on_update")
  File "/home/medipta/frappe-bench/apps/frappe/frappe/model/document.py", line 661, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/model/document.py", line 839, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/medipta/frappe-bench/apps/frappe/frappe/model/document.py", line 824, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "/home/medipta/frappe-bench/apps/phr/phr/templates/pages/profile.py", line 37, in create_qr
    code = pyqrcode.create(doc.profile_id)
  File "/home/medipta/frappe-bench/env/local/lib/python2.7/site-packages/pyqrcode/__init__.py", line 111, in create
    return QRCode(content, error, version, mode, encoding)
  File "/home/medipta/frappe-bench/env/local/lib/python2.7/site-packages/pyqrcode/__init__.py", line 137, in __init__
    guessed_content_type, encoding = self._detect_content_type(content, encoding)
  File "/home/medipta/frappe-bench/env/local/lib/python2.7/site-packages/pyqrcode/__init__.py", line 307, in _detect_content_type
    c = content.encode('shiftjis')
AttributeError: 'NoneType' object has no attribute 'encode'
Report this issue

@Lalit_Patil in order for somebody to try to help you should post the traceback here as text so it can be analyzed. The screenshot cut some of the important information off.

this when i complte the setup in the dev environment i have search in the data-bank here but no answer. This what i have from the output;
12:07:13 web.1 | 10.0.1.186 - - [24/Sep/2018 12:07:13] “POST / HTTP/1.1” 301 -
12:07:13 web.1 | INFO:werkzeug:10.0.1.186 - - [24/Sep/2018 12:07:13] “POST / HTTP/1.1” 301 -
12:07:16 web.1 | 10.0.1.186 - - [24/Sep/2018 12:07:16] “GET /desk HTTP/1.1” 200 -
12:07:16 web.1 | INFO:werkzeug:10.0.1.186 - - [24/Sep/2018 12:07:16] “GET /desk HTTP/1.1” 200 -
12:07:18 worker_default.1 | 12:07:18 default: frappe.utils.background_jobs.execute_job(async=True, event=None, job_name=‘frappe.core.doctype.user.user.update_gravatar’, kwargs={‘name’: ‘hans.stuivenberg@gmail.com’}, method=‘frappe.core.doctype.user.user.update_gravatar’, site=‘site1.local’, user=‘Administrator’) (f4b471c7-7bfa-4c81-83f4-4b2da8e73286)
12:07:19 web.1 | * Detected change in ‘/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/data/pycache/init.cpython-35.pyc’, reloading
12:07:19 web.1 | INFO:werkzeug: * Detected change in ‘/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/data/pycache/init.cpython-35.pyc’, reloading
12:07:19 web.1 | * Detected change in ‘/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/data/pycache/industry_type.cpython-35.pyc’, reloading
12:07:19 web.1 | INFO:werkzeug: * Detected change in ‘/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/data/pycache/industry_type.cpython-35.pyc’, reloading
12:07:20 worker_default.1 | 12:07:20 default: Job OK (f4b471c7-7bfa-4c81-83f4-4b2da8e73286)
12:07:20 worker_default.1 | 12:07:20 Result is kept for 500 seconds
12:07:20 worker_default.1 | 12:07:20 default: frappe.utils.background_jobs.execute_job(async=True, event=None, job_name=‘frappe.core.doctype.user.user.update_gravatar’, kwargs={‘name’: ‘hans.stuivenberg@gmail.com’}, method=‘frappe.core.doctype.user.user.update_gravatar’, site=‘site1.local’, user=‘Administrator’) (b2fd0d57-6a32-48cf-b942-334e59c7aec0)
12:07:20 web.1 | * Restarting with inotify reloader
12:07:20 worker_default.1 | 12:07:20 default: Job OK (b2fd0d57-6a32-48cf-b942-334e59c7aec0)
12:07:20 worker_default.1 | 12:07:20 Result is kept for 500 seconds
12:07:21 web.1 | * Debugger is active!
12:07:21 web.1 | * Debugger PIN: 842-421-151
Setup failed

Could not start up: Error in setup

thanks Hans

I am facing the same problem as the OP. Here is my message:

13:13:48 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:48] "GET / HTTP/1.1" 301 -
13:13:48 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:48] "GET / HTTP/1.1" 301 -
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/__init__.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/__init__.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/api_jwt.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/api_jwt.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/api_jws.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/api_jws.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/algorithms.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/algorithms.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/compat.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/compat.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/exceptions.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/exceptions.cpython-37.pyc', reloading
13:13:49 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/utils.cpython-37.pyc', reloading
13:13:49 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/jwt/__pycache__/utils.cpython-37.pyc', reloading
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /desk HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /desk HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/report.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/report.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/desk.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/desk.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/form.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/form.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/module.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/module.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/list.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/list.min.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/erpnext.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/css/erpnext.css?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/list.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/list.min.js?ver=1551339668.0 HTTP/1.1" 200 -127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/libs.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/libs.min.js?ver=1551339668.0 HTTP/1.1" 200 -127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/control.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/form.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/desk.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/report.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/control.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/form.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/desk.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/report.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/frappe/js/frappe/toolbar.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/frappe/js/frappe/toolbar.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/erpnext.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /assets/js/erpnext.min.js?ver=1551339668.0 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /?items=%5B%22assets%2Ferpnext%2Fjs%2Fsetup_wizard.js%22%5D&cmd=frappe.client.get_js&_=1551339829492 HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "GET /?items=%5B%22assets%2Ferpnext%2Fjs%2Fsetup_wizard.js%22%5D&cmd=frappe.client.get_js&_=1551339829492 HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:49 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:49 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:49] "POST / HTTP/1.1" 200 -
13:13:50 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:50] "GET /api/method/frappe.realtime.get_user_info?sid=ee74c2e068c53dd5e4dc555df3a9acf753a33243afa05ce7eecc27fe HTTP/1.1" 200 -
13:13:50 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:13:50] "GET /api/method/frappe.realtime.get_user_info?sid=ee74c2e068c53dd5e4dc555df3a9acf753a33243afa05ce7eecc27fe HTTP/1.1" 200 -
13:13:50 web.1            |  * Restarting with inotify reloader
13:13:50 web.1            |  * Debugger is active!
13:13:50 web.1            |  * Debugger PIN: 278-685-188
13:13:51 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:51] "POST / HTTP/1.1" 200 -
13:13:55 web.1            | 127.0.0.1 - - [28/Feb/2019 13:13:55] "POST / HTTP/1.1" 200 -
13:14:07 web.1            | 127.0.0.1 - - [28/Feb/2019 13:14:07] "GET /?doctype=Currency&name=CAD&cmd=frappe.desk.form.load.getdoc&_=1551339829493 HTTP/1.1" 200 -
13:14:14 web.1            | 127.0.0.1 - - [28/Feb/2019 13:14:14] "POST / HTTP/1.1" 200 -
13:14:22 web.1            | 127.0.0.1 - - [28/Feb/2019 13:14:22] "POST / HTTP/1.1" 200 -
13:14:22 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:14:22] "POST / HTTP/1.1" 200 -
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/__init__.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/__init__.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/matching.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/matching.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/scoring.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/scoring.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/adjacency_graphs.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/adjacency_graphs.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/frequency_lists.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/frequency_lists.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/time_estimates.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/time_estimates.cpython-37.pyc', reloading
13:14:22 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/feedback.cpython-37.pyc', reloading
13:14:22 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/zxcvbn/__pycache__/feedback.cpython-37.pyc', reloading
13:14:24 web.1            |  * Restarting with inotify reloader
13:14:24 web.1            |  * Debugger is active!
13:14:24 web.1            |  * Debugger PIN: 278-685-188
13:14:24 web.1            | 127.0.0.1 - - [28/Feb/2019 13:14:24] "POST / HTTP/1.1" 200 -
13:14:44 web.1            | 127.0.0.1 - - [28/Feb/2019 13:14:44] "POST / HTTP/1.1" 200 -
13:14:44 web.1            | INFO:werkzeug:127.0.0.1 - - [28/Feb/2019 13:14:44] "POST / HTTP/1.1" 200 -
13:14:44 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/unidecode/__pycache__/__init__.cpython-37.pyc', reloading
13:14:44 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/unidecode/__pycache__/__init__.cpython-37.pyc', reloading
13:14:45 web.1            |  * Restarting with inotify reloader
13:14:46 web.1            |  * Debugger is active!
13:14:46 web.1            |  * Debugger PIN: 278-685-188
13:15:01 web.1            | 127.0.0.1 - - [28/Feb/2019 13:15:01] "POST / HTTP/1.1" 200 -
13:15:02 web.1            | make_records: in DEBUG mode
13:15:04 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/email_reply_parser/__pycache__/__init__.cpython-37.pyc', reloading
13:15:04 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/lib/python3.7/site-packages/email_reply_parser/__pycache__/__init__.cpython-37.pyc', reloading
13:15:04 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/src/pdfkit/pdfkit/__pycache__/__init__.cpython-37.pyc', reloading
13:15:04 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/src/pdfkit/pdfkit/__pycache__/__init__.cpython-37.pyc', reloading
13:15:04 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/src/pdfkit/pdfkit/__pycache__/pdfkit.cpython-37.pyc', reloading
13:15:04 web.1            | INFO:werkzeug: * Detected change in '/home/saurabh/bella-bench/env/src/pdfkit/pdfkit/__pycache__/pdfkit.cpython-37.pyc', reloading
13:15:04 web.1            |  * Detected change in '/home/saurabh/bella-bench/env/src/pdfkit/pdfkit/__pycache__/source.cpython-37.pyc', reloading
13:1

Is something up with the current version of frappe or ERPNext? I am on version 11.1.11 of both.