Bench Manager New Site Create Error

Hi,

I want to create a new site with Bench Manager. But I am getting the following error. There is no problem with Shell.

Traceback (most recent call last):

File “/home/yasir/benc-test/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/yasir/bench-test/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/yasir/bench-test/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/yasir/bench-test/apps/frappe/frappe/init.py”, line 942, in call
return fn(*args, **newargs)
File “/home/yasir/bench-test/apps/bench_manager/bench_manager/bench_manager/doctype/site/site.py”, line 221, in create_site
all_sites = check_output(“ls”).strip(‘\n’).split(‘\n’)
TypeError: a bytes-like object is required, not ‘str’

@codingCoffee

Did you try creating new site from frappe.bench folder?

Yes, I can create a new site using command… I can not create it with Bench Manager (GUI).

Seems like they were python 2 - 3 compatibility issues. Have fixed them now in this PR. Update and try again.