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

Troubles to run the bot

Open valigar29 opened this issue 8 years ago • 5 comments

HI Guys,

I tried your web app, but I've some trouble to run the bot.

I set up all my account, gmap, configuration, and tried to run the bot. It seems that the bot doesn't startup.

The process status stay to

Not Started

In the developer console I see that the request url is :

http://local.bot.fr/bot/pool/config_MyAccount.com.json

And the result is :

{"content":"","status":"not-started"}

Did someone got the same thing ?

Thank's

valigar29 avatar Aug 04 '16 09:08 valigar29

Please see if the log is written in app/logs/{account}.json.

Most likely, you do not have the command ps to view the active processes, for example windows has tasklist.

massimo-me avatar Aug 04 '16 11:08 massimo-me

Please see if the log is written in app/logs/{account}.json.

I've already check in it, there is no file inside the logs directory

Most likely, you do not have the command ps to view the active processes

I've check that, but no process related to the bot showed up.

I think it's more a rights problem. I manually create the log file inside app/logs and set the rights using ACL on the log folder and on the file.

It seems to be ok for the Status not-started problem.

Now I got this :

{"content":"","status":"pending"}

And I'm stuck, the log file still empty, and no errors / warnings appears.

valigar29 avatar Aug 04 '16 13:08 valigar29

Try to run manually

(cd {YOUR_DIR}/PokemonGo-Bot && virtualenv . && source bin/activate && pip install -r requirements.txt && ./pokecli.py -cf {YOUR_CONFIG}.json > test.log &

massimo-me avatar Aug 05 '16 10:08 massimo-me

It looks like running manually the bot works.

[2016-08-05 13:07:59] [x] Starting PokemonGo Bot....
[2016-08-05 13:07:59] [#] Scanning area for objects (1 / 25)
[2016-08-05 13:07:59] [#] Walking from (48.858789, 2.3707577) to (48.858789, 2.3707577) for approx. 0.00 seconds
[#] (48.858789, 2.3707577, 0)
[#] Attempting to evolve all pokemons ...
[2016-08-05 13:08:08] [#] Scanning area for objects (2 / 25)
[2016-08-05 13:08:08] [#] Walking from (48.858789, 2.3707577) to (48.861289, 2.3707577) for approx. 1.12 minutes

Now I've to find why the bot doesn't run using the web app :)

But it seems the bot doesn't work very well, he does nothing just walking (no pokestop, no pokemon, etc...). It's probably related to the Niantic API change : https://www.reddit.com/r/pokemongodev/comments/4w1cvr/pokemongo_current_api_status/

valigar29 avatar Aug 05 '16 11:08 valigar29

@valigar29 PokemonGo-Bot is still working fine (as of now, at least) so it's more likely an issue with your configuration (found in Config/config.json) I'd recommend writing one manually to see if it picks that up okay.

lkd70 avatar Sep 12 '16 03:09 lkd70