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_frappe.sh --setup-production
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io

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/socket.py 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/cli.py”, line 40, in cli
    bench_command()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/bench-repo/bench/commands/setup.py”, line 43, in setup_production
    setup_production(user=user)
    File “/home/frappe/bench-repo/bench/config/production_setup.py”, line 26, in setup_production
    exec_cmd(‘supervisorctl reload’)
    File “/home/frappe/bench-repo/bench/utils.py”, line 100, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: supervisorctl reload
    frappe@ubuntu01:~/erp_intranet$
    frappe@ubuntu01:~/erp_intranet$
    frappe@ubuntu01:~/erp_intranet$
    ==========================================================

Thanks
Jayesh

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
frappe@ubuntu01:~$

Reading this discussion may help, probably:
https://github.com/Supervisor/supervisor/issues/121