Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting dev bot #928

Closed
alexanderrock opened this issue Jul 26, 2016 · 4 comments
Closed

Error starting dev bot #928

alexanderrock opened this issue Jul 26, 2016 · 4 comments

Comments

@alexanderrock
Copy link

Commit: b93db8f

Error:

./pokecli.py -cf configs/config_ptc.json
[08:17:22] PokemonGO Bot v1.0
Traceback (most recent call last):
  File "./pokecli.py", line 232, in <module>
    main()
  File "./pokecli.py", line 211, in main
    config = init_config()
  File "./pokecli.py", line 56, in init_config
    load.update(json.load(data))
  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 property name: line 22 column 5 (char 637)

Config File:
{ "auth_service": "ptc", "username": "xxxx", "password": "xxxx", "location": "Buchhornplatz, Friedrichshafen, DE", "gmapkey": "xxxx", "max_steps": 5, "mode": "all", "walk": 4.16, "debug": false, "test": false, "initial_transfer": 0, "location_cache": true, "distance_unit": "km", "item_filter": ["101","102","103","104","201","701"], "evolve_all": "NONE", "cp_min": 300, "use_lucky_egg": false, "evolve_captured": false, "catch": { "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"}, }, "release": { "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"}, } }

@Tiokun
Copy link

Tiokun commented Jul 26, 2016

your json is wrong

{ "auth_service": "ptc", "username": "xxxx", "password": "xxxx", "location": "Buchhornplatz, Friedrichshafen, DE", "gmapkey": "xxxx", "max_steps": 5, "mode": "all", "walk": 4.16, "debug": false, "test": false, "initial_transfer": 0, "location_cache": true, "distance_unit": "km", "item_filter": ["101", "102", "103", "104", "201", "701"], "evolve_all": "NONE", "cp_min": 300, "use_lucky_egg": false, "evolve_captured": false, "catch": { "any": { "catch_above_cp": 0, "catch_above_iv": 0, "logic": "or" } }, "release": { "any": { "release_below_cp": 0, "release_below_iv": 0, "logic": "or" } } }

@anhkhoi
Copy link

anhkhoi commented Jul 26, 2016

My error
Traceback (most recent call last): File "pokecli.py", line 232, in <module> main() File "pokecli.py", line 223, in main bot.take_step() File "/Users/macmini02/Desktop/PokemonGo-Bot/pokemongo_bot/__init__.py", line 40, in take_step self.work_on_cell(cell, location) File "/Users/macmini02/Desktop/PokemonGo-Bot/pokemongo_bot/__init__.py", line 211, in work_on_cell hack_chain = worker.work() File "/Users/macmini02/Desktop/PokemonGo-Bot/pokemongo_bot/cell_workers/seen_fort_worker.py", line 107, in work raise RuntimeError(message) RuntimeError: Stopped at Pokestop and did not find experience, items or information about the stop cooldown. You are probably softbanned. Try to play on your phone, if pokemons always ran away and you find nothing in PokeStops you are indeed softbanned. Please try again in a few hours.

@tstumm
Copy link
Contributor

tstumm commented Jul 26, 2016

@anhkhoi You are softbanned try again later.

@alexanderrock Your JSON has a faulty syntax as @foxy1990 said.

@tstumm tstumm closed this as completed Jul 26, 2016
@AndyBean
Copy link

I see this error frequently without the nice softban messages. Part of the confusion in the error is that it implies that something is wrong in other files that have not been touched. It seems we could replace the messaging with a note stating that either:

  1. a person's config is syntactically incorrect
  2. they have been soft banned
  3. their login credentials are invalid ?

It seems we know when they have been soft banned so it can be streamlined even further.

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* Update requirements.txt to fix PokemonGoF#926

gpsoauth 0.4.0 is now required

* Update requirements.txt to fix PokemonGoF#926

Removed gpsoauth requirement completely as this lib is only used by pgoapi that already defines this requirement in its own requirements.txt
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* Make too late scanning configurable

Some would rather catch all spawns (for statistical analysis)
Others only want ones they can get to in time.

Making this configurable allows you to start skipping queued items earlier, so if workers get behind they can eventually catch up again.

* Status improvements (PokemonGoF#935)

* Improved Overseer line

Now shows next queue item, when that item is supposed to be scanned (for -ss), and how far ahead/behind of realtime your queue is.

* Username already shown, not need to write it twice

* Format all lat/lng to 6 decimals

That is an accuracy of approx 10cm, more than enough for display purposes.

* Show sleep length, reformat some messages

* Appease travis

* Make too late scanning configurable

Some would rather catch all spawns (for statistical analysis)
Others only want ones they can get to in time.

Making this configurable allows you to start skipping queued items earlier, so if workers get behind they can eventually catch up again.

* Show total skipped items

* Add account name back into log message

* Update config.ini

* Update requirements.txt to fix PokemonGoF#926 (PokemonGoF#928)

* Update requirements.txt to fix PokemonGoF#926

gpsoauth 0.4.0 is now required

* Update requirements.txt to fix PokemonGoF#926

Removed gpsoauth requirement completely as this lib is only used by pgoapi that already defines this requirement in its own requirements.txt

* Add username of possibly banned accounts (PokemonGoF#941)

Just a small fix in order to add banned usernames.

* Prevent header from cutting off bottom of accordion (PokemonGoF#873)

height: 100% doesn't take into account the #header height of 3.5em

* Make too late scanning configurable

Some would rather catch all spawns (for statistical analysis)
Others only want ones they can get to in time.

Making this configurable allows you to start skipping queued items earlier, so if workers get behind they can eventually catch up again.

* Show total skipped items

* Update config.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants