Bench Update Error when updating ERPNext account (Locally Installed)

I just received an error when I tried to update my ERPNext account installed locally.

/home/sam/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
Command “/home/sam/frappe-bench/env/bin/python -c “import setuptools, tokenize;file=‘/tmp/pip-build-ZOfqQL/Pillow/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-NAQ3qY-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sam/frappe-bench/env/include/site/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-ZOfqQL/Pillow
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
File “/home/sam/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/sam/bench-repo/bench/cli.py”, line 240, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/sam/bench-repo/bench/cli.py”, line 260, in update
update_requirements(bench=bench_path)
File “/home/sam/bench-repo/bench/utils.py”, line 355, in update_requirements
exec_cmd(“{pip} install -q -r {req_file}”.format(pip=pip, req_file=req_file))
File “/home/sam/bench-repo/bench/utils.py”, line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt

sam@sam-VirtualBox:~/frappe-bench$ bench update
Already up-to-date.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch develop → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch develop → FETCH_HEAD
    Already up-to-date.
    Command “/home/sam/frappe-bench/env/bin/python -c “import setuptools, tokenize;file=‘/tmp/pip-build-xyvxYn/Pillow/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-jrpn59-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sam/frappe-bench/env/include/site/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-xyvxYn/Pillow
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
    File “/home/sam/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/sam/bench-repo/bench/cli.py”, line 240, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/sam/bench-repo/bench/cli.py”, line 260, in update
    update_requirements(bench=bench_path)
    File “/home/sam/bench-repo/bench/utils.py”, line 355, in update_requirements
    exec_cmd(“{pip} install -q -r {req_file}”.format(pip=pip, req_file=req_file))
    File “/home/sam/bench-repo/bench/utils.py”, line 104, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt

run this

bench update --requirement

@ruchin78 run this command:

sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

Hi Sambhaji,
I have already ran it and it says no requirement.

It worked for me, but I appreciate if you can put some light about what was happened and what this command does.

We have added a new requirement called Pillow to generate image thumbnails. This command installs the dependencies.

But, it will be better if you send an email to all paid users regarding the same or you post this on the forum so that everyone can go through it. Because it is not like that you start pouring water when you see the fire.

It is my suggestion only, and I am sorry if I wrote anything wrong.

Yes, now I can see your post on forum you added the post after my query.
Thanks Anand, thanks a lot

@ruchin78 this is not officially released yet.