Error in update V7

Hi,
I am getting below error when I enter bench update command.

Already up-to-date.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Current branch master is up to date.
    INFO:bench.app:pulling erpnext
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Current branch master is up to date.
    INFO:bench.app:pulling knowledge_base
    From https://github.com/frappe/knowledge_base
  • branch master -> FETCH_HEAD
    Current branch master is up to date.
    INFO:bench.app:pulling library_management
    From https://github.com/frappe/library_management
  • branch master -> FETCH_HEAD
    Current branch master is up to date.
    INFO:bench.app:pulling meeting
    From https://github.com/frappe/meeting
  • branch master -> FETCH_HEAD
    Current branch master is up to date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-oCWR5P/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/itwork/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 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/itwork/bench-repo/bench/commands/update.py”, line 62, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset)
    File “/home/itwork/bench-repo/bench/commands/update.py”, line 81, in _update
    update_requirements(bench_path=bench_path)
    File “/home/itwork/bench-repo/bench/utils.py”, line 375, in update_requirements
    install_requirements(pip, req_file)
    File “/home/itwork/bench-repo/bench/utils.py”, line 379, in install_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
    File “/home/itwork/bench-repo/bench/utils.py”, line 127, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/library_management/requirements.txt

Same error…

bench update --requirements
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: 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 https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: 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 https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-wrkvbm/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/itwork/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 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/itwork/bench-repo/bench/commands/update.py”, line 62, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset)
File “/home/itwork/bench-repo/bench/commands/update.py”, line 81, in _update
update_requirements(bench_path=bench_path)
File “/home/itwork/bench-repo/bench/utils.py”, line 375, in update_requirements
install_requirements(pip, req_file)
File “/home/itwork/bench-repo/bench/utils.py”, line 379, in install_requirements
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
File “/home/itwork/bench-repo/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/library_management/requirements.txt

pip install -r ./apps/library_management/requirements.txt
Collecting frappe (from -r ./apps/library_management/requirements.txt (line 1))
Using cached frappe-2.1.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-vGywLq/frappe/setup.py”, line 10, in
raise LookupError(“You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)”)
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-vGywLq/frappe/

./env/bin/pip install --upgrade -r apps/frappe/requirements.txt
./env/bin/pip install --upgrade -r apps/library_management/requirements.txt

Trying to solve by this…

sudo apt-get install gfortran libatlas-base-dev liblapack-dev python-dev build-essential
sudo pip install https://github.com/grafos-ml/test.fm/archive/v1.0.tar.gz
sudo pip install -U testfm
sudo pip install frappe

and recreate my virtual environnement (in frappre dir) : virtualenv -p python2.7 ./env/

and finally :
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

Getting this error when I run below code and then bench update --upgrade
sudo pip install --upgrade -r apps/library_management/requirements.txt

itwork@ERP:~/frappe-bench$ bench update --upgrade
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2627, in load_entry_point
return ep.load()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2287, in load
return self.resolve()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2293, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/home/itwork/bench-repo/bench/cli.py”, line 6, in
from bench.commands import bench_command
File “/home/itwork/bench-repo/bench/commands/init.py”, line 66, in
from bench.commands.config import config
File “/home/itwork/bench-repo/bench/commands/config.py”, line 67, in
@click.option(‘configs’, ‘-c’, ‘–config’, multiple=True, type=(unicode, unicode))
File “/usr/local/lib/python2.7/dist-packages/click/decorators.py”, line 159, in decorator
_param_memo(f, Option(param_decls, **attrs))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1308, in init
Parameter.init(self, param_decls, type=type, **attrs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1132, in init
self.type = convert_type(type, default)
File “/usr/local/lib/python2.7/dist-packages/click/types.py”, line 431, in convert_type
return FuncParamType(ty)
File “/usr/local/lib/python2.7/dist-packages/click/types.py”, line 73, in init
self.name = func.name
AttributeError: ‘tuple’ object has no attribute ‘name