bench icon indicating copy to clipboard operation
bench copied to clipboard

TypeError: unsupported operand type(s) for +: 'Nonetype' and 'list'

Open El-profesor-0 opened this issue 4 years ago • 2 comments

I am facing this issue while using 'bench init frappe-bench'. I have downloaded it using 'pip3 install frappe-bench' I found this issue closed but no solution has seemed to work.

/usr/local/Cellar/python/3.7.6_1/bin/python3.7: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')

Traceback (most recent call last): File "/usr/local/bin/bench", line 11, in load_entry_point('frappe-bench', 'console_scripts', 'bench')() File "/Users/narendra/Development/bench-repo/bench/cli.py", line 48, in cli if sys.argv[1] in get_frappe_commands() + ["--site", "--verbose", "--force", "--profile"]: TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

El-profesor-0 avatar Dec 08 '20 10:12 El-profesor-0

I have been trying this for quite some time now and still see the same issue.

Somehow got bench installed but it did so with some warnings, I thought:

Screenshot 2020-12-30 at 11 31 16 PM

But, after that, when we try to use it, it throws the error. It looks like bench was not properly installed:

Screenshot 2020-12-30 at 11 31 33 PM

I see so many people have reported the same issue but no proper answer to it.

Is there really a solution to this issue? Could someone from Frappe tech show some light on this, please?

saru2020 avatar Dec 30 '20 18:12 saru2020

This error seems to come up when frappe hasn't been installed properly in your bench's env.

gavindsouza avatar Mar 01 '21 12:03 gavindsouza