TypeError: int() argument must be a string or a number, not 'list'

Hi, this is first time for me on erpnext.

I tried installation on Ubuntu 14.04 using the easy production setup:

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production

And get error with following trace:

Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time...
Installing wkhtmltopdf
mysql stop/waiting
mysql start/running, process 19381
Adding frappe user
    Installing frappe-bench
Setting up first site
Installing erpnext...
Updating erpnext                    : [========================================]
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, 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/egig/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
    main()
  File "/home/egig/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/egig/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/egig/frappe-bench/apps/frappe/frappe/commands.py", line 163, in install_app
    _install_app(app, verbose=context.verbose)
  File "/home/egig/frappe-bench/apps/frappe/frappe/installer.py", line 134, in install_app
    frappe.get_attr(after_install)()
  File "/home/egig/frappe-bench/apps/erpnext/erpnext/setup/install.py", line 13, in after_install
    set_single_defaults()
  File "/home/egig/frappe-bench/apps/erpnext/erpnext/setup/install.py", line 53, in set_single_defaults
    b.save()
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 244, in save
    self.run_before_save_methods()
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 617, in run_before_save_methods
    self.run_method("validate")
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 579, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 735, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 718, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/egig/frappe-bench/apps/frappe/frappe/model/document.py", line 573, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/egig/frappe-bench/apps/erpnext/erpnext/setup/doctype/features_setup/features_setup.py", line 17, in validate
    set_default(key, self.get(key))
  File "/home/egig/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 168, in set_default
    return frappe.db.set_default(key, val)
  File "/home/egig/frappe-bench/apps/frappe/frappe/database.py", line 646, in set_default
    frappe.defaults.set_default(key, val, parent, parenttype)
  File "/home/egig/frappe-bench/apps/frappe/frappe/defaults.py", line 111, in set_default
    add_default(key, value, parent)
  File "/home/egig/frappe-bench/apps/frappe/frappe/defaults.py", line 123, in add_default
    _clear_cache(parent)
  File "/home/egig/frappe-bench/apps/frappe/frappe/defaults.py", line 200, in _clear_cache
    frappe.clear_cache()
  File "/home/egig/frappe-bench/apps/frappe/frappe/__init__.py", line 419, in clear_cache
    frappe.sessions.clear_cache()
  File "/home/egig/frappe-bench/apps/frappe/frappe/sessions.py", line 43, in clear_cache
    cache.delete_key(name, user)
  File "/home/egig/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 101, in delete_key
    self.delete_value(*args, **kwargs)
  File "/home/egig/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 113, in delete_value
    self.delete(key)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 841, in delete
    return self.execute_command('DEL', *names)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 579, in execute_command
    return self.parse_response(connection, command_name, **options)
  File "/home/egig/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 587, in parse_response
    return self.response_callbacks[command_name](response, **options)
TypeError: int() argument must be a string or a number, not 'list'

@egig

I was not able to replicate your error while I tried to install ERPNext on a fresh ubuntu 14.04 server. Please try re-running the installation script. Post back if you are still facing same error

Im trying to install ERPNext on ubuntu 16.04, I got the same error as above.
I ran the below 2 commands:

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production

A sinppet of the error is as below.

File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 682, in parse_response", "
return self.response_callbacks[command_name](response, **options)",
“TypeError: int() argument must be a string or a number, not ‘list’”],
“stdout”: "\nInstalling erpnext…\n\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [ ]\rUpdating DocTypes for erpnext : [

I have the same error… is there any solution to this?

Any solution?