Could not create new APP

I have a problem with creation of a new app for Frappe.
I have a clean install of Frappe, and development mode is on.

I get the following error message.
Please let me know how to fix that.

frappe@dev:~/frappe-bench$ bench new-app topservice new app topservice
App Title (default: Topservice): Topservice
App Description: Topservice Custom Modules
App Publisher: sg
App Email:
App Icon (default ‘octicon octicon-file-directory’):
App Color (default ‘grey’): blue
App License (default ‘MIT’): MIT
‘topservice’ created at /home/frappe/frappe-bench/apps/topservice topservice
INFO:bench.utils:./env/bin/pip install -q -e ./apps/topservice --no-cache-dir
Command “python egg_info” failed with error code 1 in /home/frappe/frappe-bench/apps/topservice/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 48, in new_app
File “/home/frappe/.bench/bench/”, line 156, in new_app
install_app(app, bench_path=bench_path)
File “/home/frappe/.bench/bench/”, line 167, in install_app
File “/home/frappe/.bench/bench/”, line 153, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -e ./apps/topservice --no-cache-dir

Check the following link

This PR should fix the problem new app creation fix by codingCoffee · Pull Request #5670 · frappe/frappe · GitHub