ERROR:
bench@rtl ~]$ cd /opt/bench/frappe-bench/
[bench@rtl frappe-bench]$ pwd
/opt/bench/frappe-bench
[bench@rtl frappe-bench]$ bench new-site rtl.tech.com
Traceback (most recent call last):
File “/bin/bench”, line 11, in
load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 36, in cli
if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != “src” and not get_config(“.”).get(“developer_mode”):
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 32, in get_config
return get_common_site_config(bench_path)
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 39, in get_common_site_config
return json.load(f)
File “/usr/lib64/python2.7/json/ init .py”, line 290, in load
**kw)
File “/usr/lib64/python2.7/json/ init .py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 17 column 2 (char 479)
[bench@rtl frappe-bench]$
Please what’s this error mean and what the solution for this such.
[bench@rtl frappe-bench]$ bench update --build
Traceback (most recent call last):
File “/bin/bench”, line 11, in
load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 36, in cli
if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != “src” and not get_config(“.”).get(“developer_mode”):
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 32, in get_config
return get_common_site_config(bench_path)
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 39, in get_common_site_config
return json.load(f)
File “/usr/lib64/python2.7/json/init.py”, line 290, in load
**kw)
File “/usr/lib64/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 17 column 2 (char 479)
[bench@rtl frappe-bench]$
[bench@rtl frappe-bench]$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To have ERPNext use python3 rather than 2.7 try bench migrate-env python3.8. The error suggests that there may be a malformed json string , you can try bench update --reset , though it might be a problem with the installation process.
[bench@rtl frappe-bench]$ bench update --reset
Traceback (most recent call last):
File “/bin/bench”, line 11, in
load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 36, in cli
if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != “src” and not get_config(“.”).get(“developer_mode”):
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 32, in get_config
return get_common_site_config(bench_path)
File “/opt/bench/bench-repo/bench/config/common_site_config.py”, line 39, in get_common_site_config
return json.load(f)
File “/usr/lib64/python2.7/json/init.py”, line 290, in load
**kw)
File “/usr/lib64/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 17 column 2 (char 479)
[bench@rtl frappe-bench]$