Frappe io build.json error in bench init

I’m currently installing frappe version 5 in my VM.
During installation of frappe_io, this error occurred.

frappe@ubuntu-s-6vcpu-16gb-sgp1-01:~$ bench init frappe-bench-v5 --frappe-branch v5.0.29
INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
INFO:bench.utils:env/bin/pip -q install --upgrade pip
INFO:bench.utils:env/bin/pip -q install wheel
INFO:bench.utils:env/bin/pip -q install six
INFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone https://github.com/frappe/frappe.git --branch v5.0.29  --origin upstream
Cloning into 'frappe'...
remote: Counting objects: 151102, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 151102 (delta 6), reused 6 (delta 2), pack-reused 151084
Receiving objects: 100% (151102/151102), 163.03 MiB | 11.77 MiB/s, done.
Resolving deltas: 100% (114435/114435), done.
Checking connectivity... done.
Note: checking out '51f81bc3623ffe1fd40ce2ec5f545cbbe7ac6262'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

('installing', u'frappe')
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench-v5/env/bin/pip install -q  -e frappe-bench-v5/apps/frappe --no-cache-dir
INFO:bench.app:getting app frappe_io
INFO:bench.utils:git clone https://github.com/frappe/frappe_io --branch master  --origin upstream
Cloning into 'frappe_io'...
remote: Counting objects: 5124, done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 5124 (delta 126), reused 200 (delta 120), pack-reused 4859
Receiving objects: 100% (5124/5124), 26.10 MiB | 7.48 MiB/s, done.
Resolving deltas: 100% (3756/3756), done.
Checking connectivity... done.
('installing', u'frappe_io')
INFO:bench.app:installing frappe_io
INFO:bench.utils:frappe-bench-v5/env/bin/pip install -q  -e frappe-bench-v5/apps/frappe_io --no-cache-dir
/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py:65: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('get-frappe-commands')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py:69: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('get-frappe-help')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:62: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def new_site(site, mariadb_root_username=None, mariadb_root_password=None, admin_password=None, verbose=False, install_apps=None, source_sql=None, force=None, install_app=None, db_name=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:123: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def restore(context, sql_file_path, mariadb_root_username=None, mariadb_root_password=None, db_name=None, verbose=None, install_app=None, admin_password=None, force=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:133: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:155: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:171: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:186: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def migrate(context, rebuild_website=False):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:226: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:242: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:257: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def build(make_copy=False, verbose=False):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:264: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('watch')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:272: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:288: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:301: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:315: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:329: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:347: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:361: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:374: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:391: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:409: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.argument('args')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:417: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:430: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:445: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:462: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:478: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:493: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:506: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:521: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def import_doc(context, path, force=False):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:534: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:551: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def get_untranslated(context, lang, untranslated_file, all=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:566: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:580: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:601: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:610: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:626: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def run_tests(context, app=None, module=None, doctype=None, test=(), driver=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:653: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def serve(context, port=None, profile=False, sites_path='.', site=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:664: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:687: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('doctor')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:694: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('purge-all-tasks')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:702: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.command('dump-queue-status')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:711: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @click.argument('app_name')
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:718: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def _use(site, sites_path='.'):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:728: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def backup(context, with_files=False, backup_path_db=None, backup_path_files=None, quiet=False):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:746: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  @pass_context
/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py:782: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  def drop_site(site, root_login='root', root_password=None):
/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py:27: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  return click.group(name=app, commands=app_commands)(app_group)
/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py:14: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
  click.Group(commands=commands)(prog_name='bench')
/home/frappe/frappe-bench-v5/apps/frappe_io/frappe_io/public/build.json
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
    main()
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench-v5/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/commands.py", line 262, in build
    frappe.build.bundle(False, make_copy=make_copy, verbose=verbose)
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/build.py", line 31, in bundle
    build(no_compress, verbose)
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/build.py", line 72, in build
    for target, sources in get_build_maps().iteritems():
  File "/home/frappe/frappe-bench-v5/apps/frappe/frappe/build.py", line 88, in get_build_maps
    for target, sources in json.loads(f.read()).iteritems():
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I checked the file build.json in frappe_io directory but the file is empty thats why this error showed.

Can anyone please help me. Thanks :smiley: