Problem with creating new app

I use bench new-app test_warranty, add information about app and then received this traceback

‘test_warranty’ created at /home/zwebmaster/frappe-bench/apps/test_warranty
INFO:bench.app:installing test_warranty
Traceback (most recent call last):
File “./env/bin/pip”, line 11, in
sys.exit(main())
File “/home/zwebmaster/frappe-bench/env/local/lib/python2.7/site-packages/pip/init.py”, line 215, in main
locale.setlocale(locale.LC_ALL, ‘’)
File “/home/zwebmaster/frappe-bench/env/lib/python2.7/locale.py”, line 579, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==2.1.0’, ‘console_scripts’, ‘bench’)()
File “/home/zwebmaster/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/zwebmaster/bench-repo/bench/commands/make.py”, line 36, in new_app
new_app(app_name)
File “/home/zwebmaster/bench-repo/bench/app.py”, line 72, in new_app
install_app(app, bench=bench)
File “/home/zwebmaster/bench-repo/bench/app.py”, line 82, in install_app
find_links=find_links))
File “/home/zwebmaster/bench-repo/bench/utils.py”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -e ./apps/test_warranty
Can anyone help me?

Seems issue with locale.

Try

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

then create a app.

1 Like

thanks