Installation error on ubuntu 14.04

Dear ERP next users,
i face this error when i try to install erpnext V7 on my ubuntu 14.04 LTS server
neham@neham-server:~$ sudo bash
[sudo] password for neham:
Installing for Ubuntu trusty x86
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
    Already using interpreter /usr/bin/python app frappe
    Cloning into ‘frappe’… frappe
    /home/neham/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see
    /home/neham/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see
    Command “/home/neham/frappe-bench/env/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-build-hQTlFd/python-ldap/’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-CUrEE7-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/neham/frappe-bench/env/include/site/python2.7/python-ldap” failed with error code 1 in /tmp/pip-build-hQTlFd/python-ldap/
    installing frappe
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/neham/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 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/neham/bench-repo/bench/commands/”, line 19, in init
    verbose=verbose, clone_from=clone_from)
    File “/home/neham/bench-repo/bench/”, line 56, in init
    get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
    File “/home/neham/bench-repo/bench/”, line 73, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
    File “/home/neham/bench-repo/bench/”, line 103, in install_app
    File “/home/neham/bench-repo/bench/”, line 127, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe

i have faced the same error if there is a solution please?

Your python-ldap is failing: