[Mar-2017] Showing there were error during setup ERPNext

Here I have attached the details regarding the issue .

I am getting this:

Could be related to these errors?

did not find /home/bbb/ERPNext/frappe-bench-dev/apps/frappe/frappe/public/js/lib/notify.js
did not find /home/bbb/ERPNext/frappe-bench-dev/apps/frappe/frappe/public/js/lib/tag-it.min.js

This is after a fresh bench init and bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

Hmm there is killing me for now a week, these are my logs this morning on the master branch using easy setup. bench update and git pull upstream master say already up to date

1st attempt:

21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
21:46:43 web.1            | Exception in thread Thread-17 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
21:46:43 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
21:46:43 web.1            | Exception in thread Thread-19 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
21:46:43 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
21:46:43 web.1            |  * Restarting with inotify reloader

2nd attempt

22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:28 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
22:29:28 web.1            | Traceback (most recent call last):
22:29:28 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:29:28 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 236, in run
22:29:28 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 401, in dispatch_events
22:29:28 web.1            |   File "/usr/lib/python2.7/Queue.py", line 177, in get
22:29:28 web.1            |   File "/usr/lib/python2.7/threading.py", line 355, in wait
22:29:28 web.1            | <type 'exceptions.TypeError'>: 'NoneType' object is not callable
22:29:28 web.1            |  * Restarting with inotify reloader
22:29:28 web.1            |  * Debugger is active!
22:29:28 web.1            |  * Debugger PIN: 312-785-609
22:29:48 web.1            | 192.168.99.1 - - [21/Mar/2017 22:29:48] "POST / HTTP/1.1" 200 -
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:09 web.1            | Exception in thread Thread-16 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
22:30:09 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
22:30:09 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
22:30:09 web.1            | Exception in thread Thread-1 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 699, in inner
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 536, in serve_forever
22:30:09 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 585, in set
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 407, in notifyAll
22:30:09 web.1            | <type 'exceptions.TypeError'>: 'NoneType' object is not callable
22:30:09 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run
22:30:09 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
22:30:09 web.1            |  * Restarting with inotify reloader
22:30:09 web.1            |  * Debugger is active!

Same error here any fix

I am getting same error as mentioned above, please suggest a solution

first do bench reinstall
then complete setup wizard

1 Like

Latest updates should fix the problem. If not,

you can force this workaround if you can enter bench console

[1] # substitute your details in args
[2] args = {
	"language":"English (United States)",
	"country":"India",
	"timezone":"Asia/Kolkata",
	"currency":"INR",
	"full_name":"Revant",
	"email":"r@r.com",
	"password":"r",
	"domain":"Services",
	"company_name":"R",
	"company_abbr":"R",
	"company_tagline":"R",
	"bank_account":"R",
	"fy_start_date":"2017-04-01",
	"fy_end_date":"2018-03-31",
	"user_sales_1":1,
	"user_purchaser_1":1,
	"user_accountant_1":1,
	"user_sales_2":1,
	"user_purchaser_2":1,
	"user_accountant_2":1,
	"user_sales_3":1,
	"user_purchaser_3":1,
	"user_accountant_3":1,
	"user_sales_4":1,
	"user_purchaser_4":1,
	"user_accountant_4":1,
	"customer_1":"A1", #
	"supplier_1":"S1",
	"item_1":"I1",
	"item_group_1":"Products",
	"item_uom_1":"Unit",
	"is_sales_item_1":1,
	"is_purchase_item_1":0,
	"item_group_2":"Products",
	"item_uom_2":"Unit",
	"is_sales_item_2":0,
	"is_purchase_item_2":0,
	"item_group_3":"Products",
	"item_uom_3":"Unit",
	"is_sales_item_3":0,
	"is_purchase_item_3":0,
	"item_group_4":"Products",
	"item_uom_4":"Unit",
	"is_sales_item_4":0,
	"is_purchase_item_4":0,
	"item_group_5":"Products",
	"item_uom_5":"Unit",
	"is_sales_item_5":0,
	"is_purchase_item_5":0,
	"add_sample_data":0,
	"setup_website":0
}

[3] from frappe.desk.page.setup_wizard.setup_wizard import setup_complete
[4] setup_complete(args)
4 Likes

I was able to make this work with appropriate personalizations, but with it threw a error about the language. Changing it to:
args = {
“language”:“English”,
“country”:“United States”…

worked just fine. I may never use the setup wizard again!
Thanks a million @revant_one!

1 Like

refer frappe/frappe/geo/languages.json and frappe/frappe/geo/country_info.json for available options.

1 Like

I’ve added a comment on existing Issue

https://github.com/frappe/erpnext/issues/7272#issuecomment-307612708

Briefly, Break down wizard / args into smaller chunks so server responds quickly.

1 Like

I have a solution.

First create a new account on erpnext.com as a free user and setup it.
Now take backup of database.

Do the process of erpnext installation on ubuntu. after installation dont use website.
just restore database.

Login using id password which was created on online account.

1 Like

Thanks @Naivedh! I’m set up for now but this is a good workaround for
someone currently facing this issue.

1 Like

Just updated my local instance today and got the same issue

File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py”, line 237, in run
17:39:12 web.1 | <type ‘exceptions.AttributeError’>: ‘NoneType’ object has no attribute ‘Empty’
17:39:12 system | web.1 stopped (rc=-15)

for me after run setup_complete(args)
Out[4]: {u’fail’: u’Failed to update global settings’, u’status’: u’fail’}

@revant_one ,
for me its showing
{u'fail': u'Failed to setup company', u'status': u'fail'}

Actually for me it doesnt even go to error after setup ,
the page just gets stuck after /desk#setup-wizard/4
i.e after i input the name ,
and page becomes unresponsive ,
no errors nothing .

Latest development build .
v10

any help is appreciated .

same report here 'bench run-tests' to make local instance like demo.erpnext.com? - #26 by ashish-greycube

I had trouble getting the develop branch through the setup wizard, possibly our issues are related to this as well: First error after installation as well.

BTW, it worked for me on production, I only had these issues on develop.

{u’fail’: u’Failed to setup company’, u’status’: u’fail’}

I’m receiving this as well on a clean Production Install. I figured out how to resolve this. I had to MANUALLY create this symlink (running frappe as the ubuntu user):

ln -s /home/ubuntu/frappe-bench/apps/erpnext/erpnext/public erprnext

This issue is fixed. Lets pease open specific threads for issues