PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Value Error when starting the bot

Open Tozic opened this issue 10 years ago • 8 comments

Expected Behavior

Pokemon Bot To Start

Actual Behavior

Receiving error : ValueError: Expecting , delimiter: line 16 column 5 (char 410)

Console Code

C:\Users\amcsp\Desktop\PokemonGo-Bot-dev>python pokecli.py Traceback (most recent call last): File "pokecli.py", line 219, in main() File "pokecli.py", line 196, in main config = init_config() File "pokecli.py", line 63, in init_config load.update(json.load(data)) File "C:\Python27\lib\json__init__.py", line 291, in load **kw) File "C:\Python27\lib\json__init__.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting , delimiter: line 16 column 5 (char 410)

Other Information

OS: windows 10 Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

Tozic avatar Jul 25 '16 03:07 Tozic

Have you created your config.json (using config.json.example as a starting point), and if so, have you checked that it is correct without syntax errors?

dddbliss avatar Jul 25 '16 03:07 dddbliss

your config file has something off in it. probably on line 16 you listed some pokemon and didn't use commas maybe? copy paste otherwise so we can see it

leadboots5 avatar Jul 25 '16 03:07 leadboots5

{ "auth_service": "google", "username": "user", "password": "pass", "location": "Sydney, NSW 2000", "gmapkey": "Aapithing", "max_steps": 5, "mode": "all", "walk": 4.16, "debug": false, "test": false, "initial_transfer": 0, "location_cache": true, "distance_unit": "km", "item_filter": "101,701" "evolve_all": "NONE" }

Tozic avatar Jul 25 '16 03:07 Tozic

Change last 4 lines to this:

"distance_unit": "km", "item_filter": "101,701", "evolve_all": "NONE" }

You have missed a comma.

Nihisil avatar Jul 25 '16 03:07 Nihisil

Thankyou so much

Tozic avatar Jul 25 '16 03:07 Tozic

In my release config how do i make it so it releases no pokemon?

Tozic avatar Jul 25 '16 04:07 Tozic

@Tozic

Like this:

{
    "any": {
        "release_under_cp": 0,
        "release_under_iv": 0,
        "cp_iv_logic": "or"
    },
    "exceptions": {
        "always_capture": []
    }
}

Nihisil avatar Jul 25 '16 04:07 Nihisil

Thankyou

Tozic avatar Jul 25 '16 04:07 Tozic