Try ERPNext Buy Support Partners Foundation

Bench get-app --branch version-12 erpnext get error

Hello Everybody

After follow above step from (https://github.com/frappe/frappe/wiki/The-Hitchhiker's-Guide-to-Installing-Frappe-on-Linux) to this setp (bench get-app --branch version-12 erpnext) I get error which message shows below:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443
DEBUG:urllib3.connectionpool:https://api.github.com:443 “GET /repos/frappe/erpnext HTTP/1.1” 200 None
INFO:bench.app:getting app erpnext
Traceback (most recent call last):
File “/home/ut/.local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/ut/bench/bench/cli.py”, line 40, in cli
bench_command()
File “/home/ut/.local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/ut/.local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/ut/.local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ut/.local/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ut/.local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/ut/bench/bench/commands/make.py”, line 41, in get_app
get_app(git_url, branch=branch)
File “/home/ut/bench/bench/app.py”, line 118, in get_app
shallow_clone = ‘–depth 1’ if check_git_for_shallow_clone() else ‘’
File “/home/ut/bench/bench/utils.py”, line 355, in check_git_for_shallow_clone
config = get_config(’.’)
File “/home/ut/bench/bench/config/common_site_config.py”, line 30, in get_config
return get_common_site_config(bench_path)
File “/home/ut/bench/bench/config/common_site_config.py”, line 37, in get_common_site_config
return json.load(f)
File “/usr/lib/python2.7/json/init.py”, line 291, in load
**kw)
File “/usr/lib/python2.7/json/init.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 19 column 1 (char 535)

Does anybody face it or guide me how to fix it?

Thank you.

Your ./sites/common_site_config.json may be malformed?

Here’s mine for comparison:

{
“auto_update”: false,
“background_workers”: 1,
“file_watcher_port”: 6787,
“frappe_user”: “frappe”,
“gunicorn_workers”: 2,
“rebase_on_pull”: false,
“redis_cache”: “redis://localhost:13000”,
“redis_queue”: “redis://localhost:11000”,
“redis_socketio”: “redis://localhost:12000”,
“restart_supervisor_on_update”: true,
“serve_default_site”: true,
“shallow_clone”: true,
“socketio_port”: 9000,
“update_bench_on_update”: true,
“webserver_port”: 8000
}

Don’t know if it is related - but many v12 users are using python3.6 - did you follow the instructions for python3? Also ensure that you have installed all the python3-devtools and other requirements as specified in the guide.