Install ERPNext open source ERP on CentOS 7

This is my first time installing ERPNext.
Here is the url of the guide i used How to install ERPNext open source ERP on CentOS 7 - Programmer Sought
Almost everything went fine until when i tried to create a new site i got an error which i don’t understand.

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.

Try bench update --build then try the new site again.

A lot of the code has been redeveloped for python 3.x, so it may help to update your python environment to a newer version

Please am still having same error…

[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]$

Sir,
I think am running the latest version…

[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.

[bench@rtl frappe-bench]$ python3.8 --version
Python 3.8.3
[bench@rtl frappe-bench]$ pip3.8 --version
pip 19.2.3 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
[bench@rtl frappe-bench]$

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.

Okay.

Please do you any documentation for the installation…Maybe i should from scratch.

[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]$

try with the following link.

ref…