Also tried setting up the new site without any custom app of mine
Python version: 3.10.4
python-barcode 0.13.1
Apps installed : erpnext, payments, hrms and india-compliance
while installation it showed above mention output and after that, it start appearing in almost every bench command.
bench --help worked but it’s not showing frappe framwork commands anymore
bench setup requirements gives the following error
~/frappe-bench$ bench setup requirements
$ /home/frappe/frappe-bench/env/bin/python-barcode -m pip install --quiet --upgrade pip
usage: python-barcode [-h] [-v] {create,list} ...
python-barcode: error: argument {create,list}: invalid choice: 'pip' (choose from 'create', 'list')
ERROR:
Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/commands/setup.py", line 228, in setup_requirements
bench.setup.requirements(apps=apps)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py", line 435, in requirements
self.pip()
File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py", line 389, in pip
return self.run(
File "/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py", line 47, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
even tried reinstalling python-barcode package as well still no luck.
Tried creating a new environment with both methods and also tried uninstalling india_compliance app but what I observed is once I install python-barcode in the environment (even without india_compliance) bench starts behaving like this.