ERP NEXT Installation Error

Constantly getting same error while installing the New Instance of ERP Next on My local server. Not able to trace out what went wrong. Which File it is asking for and which socket error it refers to.

I am pasting the Snapshot of error as follows. Please help

frappe@ubuntu01:~/erp_intranet$ sudo bash --setup-production
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on

Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf

  • Stopping MariaDB database server mysqld [ OK ]
  • Starting MariaDB database server mysqld [ OK ]
  • Checking for corrupt, not cleanly closed and upgrade needing tables.
    Adding frappe user
    Installing frappe-bench
    Setting up first site
    error: <class 'socket.error>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/ line: 224
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
    File “/home/frappe/bench-repo/bench/”, line 40, in cli
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/bench-repo/bench/commands/”, line 43, in setup_production
    File “/home/frappe/bench-repo/bench/config/”, line 26, in setup_production
    exec_cmd(‘supervisorctl reload’)
    File “/home/frappe/bench-repo/bench/”, line 100, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: supervisorctl reload


Do you have Python 2 in your system?

Both 2 & 3 are installed default is Python 2.7.6

frappe@ubuntu01:~$ python --version
Python 2.7.6
frappe@ubuntu01:~$ python3 --version
Python 3.4.3

Reading this discussion may help, probably: