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

"Not logged in"

Open Pietr opened this issue 10 years ago • 12 comments

Hello. I have a problem logging in. Complements the data correctly in the configuration file and turn on BOT;

pietr@VPS:~/PokemonGo-Bot$ ./run.sh
[09:48:54]  PokemonGO Bot v1.0
[09:48:54]  Configuration initialized
[09:48:54]  Not logged in!
Traceback (most recent call last):
  File "pokecli.py", line 465, in <module>
    main()
  File "pokecli.py", line 81, in main
    report_summary(bot)
  File "pokecli.py", line 89, in report_summary
    metrics.capture_stats()
  File "/home/pietr/PokemonGo-Bot/pokemongo_bot/metrics.py", line 75, in capture_stats
    response_dict = self.bot.api.call()
  File "/home/pietr/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 57, in call
    if not self._can_call():
  File "/home/pietr/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 29, in _can_call
    raise NotLoggedInException()
pgoapi.exceptions.NotLoggedInException

The login details are correct. Please help. Thank you.

Other Information

OS: Debian 7 64 Git Commit: e65602eec5526a74941f17e36f0c90ce49ef018a Python Version: Python 2.7.3

Pietr avatar Aug 01 '16 07:08 Pietr

I think that your config.json file is incorrect. Could you post it?

BartKoppelmans avatar Aug 01 '16 07:08 BartKoppelmans

pietr@VPS:~/PokemonGo-Bot$ cat configs/config.json
{
    "auth_service": "ptc",
    "username": "pkmngxxxx",
    "password": "mypassword",
    "location": "Krakow",
    "gmapkey": "AIzaSyA8vIM4rLHcdY8D-xxxxxxxx",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolveAll",
        "config": {
          "evolve_speed": 20,
          "use_lucky_egg": true
        }
      },
      {
        "type": "RecycleItems"
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort"
      },
      {
        "type": "FollowSpiral"
      }
    ],
    "max_steps": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.16,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "item_filter": {
      "Pokeball":       { "keep" : 100 },
      "Potion":         { "keep" : 10 },
      "Super Potion":   { "keep" : 20 },
      "Hyper Potion":   { "keep" : 30 },
      "Revive":         { "keep" : 30 },
      "Razz Berry":     { "keep" : 100 }
    },
    "evolve_all": "NONE",
    "evolve_cp_min": 300,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on                                                                                                                                                              IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
         "Any pokemon put here directly force to use Berry & Best Ball to captur                                                                                                                                                             e, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the repre                                                                                                                                                             sentative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }

The login and password are correct. I checked on another bot.

Pietr avatar Aug 01 '16 07:08 Pietr

Don't know if the credentials are your actual ones, but remove them if they are 😉. Will look into it and try some things, hold on.

BartKoppelmans avatar Aug 01 '16 08:08 BartKoppelmans

No, I mean that you should remove them from your posts. Otherwise other people will be able to log into your account. Remove the username, password and google maps key.

BartKoppelmans avatar Aug 01 '16 08:08 BartKoppelmans

The problem was your Google Maps Key, it was incorrect. I tried it with mine and it worked. Try another one.

BartKoppelmans avatar Aug 01 '16 08:08 BartKoppelmans

I created a new key in https://console.developers.google.com/apis Still not working. https://zapodaj.net/images/c342a87823709.png

Pietr avatar Aug 01 '16 08:08 Pietr

Thanks. I fixed the problem. :)

Pietr avatar Aug 01 '16 08:08 Pietr

Nice! You're very welcome 😄

BartKoppelmans avatar Aug 01 '16 08:08 BartKoppelmans

Tell everyone how to solve the problem. Faced with the same. :(

sanekesv avatar Aug 01 '16 09:08 sanekesv

Also faced with this problem would love to know how to resolve?

Thanks

pickett2k avatar Aug 01 '16 10:08 pickett2k

@pickett2k Try another location, it helped me. Example: "location": "-33.857783, 151.215069"

sanekesv avatar Aug 01 '16 10:08 sanekesv

Yea this is a location error, I realised I had not put a , in between coordinates, after that it worked straight away

pickett2k avatar Aug 01 '16 10:08 pickett2k