Frappe V4 Error

I want to install frappe v4 but i getting some error
See commands and error as follows

erpnext4@erpnext4ubu2:~$ bench init frappe-bench --frappe-branch v4.x.x
Already using interpreter /usr/bin/python
/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Cloning into 'frappe'...
remote: Counting objects: 77380, done.
remote: Compressing objects: 100% (339/339), done.
remote: Total 77380 (delta 165), reused 0 (delta 0), pack-reused 77041
Receiving objects: 100% (77380/77380), 37.60 MiB | 4.45 MiB/s, done.
Resolving deltas: 100% (55874/55874), done.
Checking connectivity... done.
installing frappe
/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Traceback (most recent call last):
  File "/home/erpnext4/frappe-bench/env/bin/frappe", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/erpnext4/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 844, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (requests 1.2.3 (/home/erpnext4/frappe-bench/env/lib/python2.7/site-packages), Requirement.parse('requests>=2.5.1'), set(['dropbox']))
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.92', 'console_scripts', 'bench')()
  File "/home/erpnext4/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext4/bench-repo/bench/cli.py", line 165, in init
    no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
  File "/home/erpnext4/bench-repo/bench/utils.py", line 83, in init
    build_assets(bench=path)
  File "/home/erpnext4/bench-repo/bench/utils.py", line 164, in build_assets
    exec_cmd("{frappe} --build".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
  File "/home/erpnext4/bench-repo/bench/utils.py", line 104, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: /home/erpnext4/frappe-bench/env/bin/frappe --build

Can you explain your steps in detail? There is no guarantee we can help though!

I was trying to install V4 using the following setup file which I have altered to install V4 which was throwing up this error. Then I also tried to install bench manually using the command bench init frappe-bench --frappe-branch v4.x.x which is throwing up the same error. OS is Ubutntu 14.04 LTS.
Here is the link to my setup file https://github.com/dngupta78/SwaMedha/blob/master/setup_frappe.sh

Even earlier i have installed many times with these steps which i have written inside “setup_frappe.sh” (also with manually)

Waiting…?

CC @pdvyas

Commited this https://github.com/frappe/frappe/commit/b1b8ba725e3dfe6793597dd1053f50b76156508b to the v4.x.x branch. Try again.

Also, please use code blocks in future for terminal output, it’s easy to read

Thanks @pdvyas. I was able to install V4.x.x after your fix.