PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

Bot Crash in start #5387

Closed lossonfire closed 8 years ago

lossonfire commented 8 years ago

Expected Behavior

to use the bot

Actual Behavior

bot crashes

Your FULL config.json (remove your username, password, gmapkey and any other private info)

{
    "websocket_server": false,
    "heartbeat_threshold": 10,
    "enable_social": true,
    "live_config_update": {
      "enabled": false,
      "tasks_only": false
    },
    "tasks": [
      {
        "type": "TelegramTask",
        "config": {
          "enabled": false,
          "master": null,
          "// old syntax, still supported: alert_catch": ["all"],
          "// new syntax:": {},
          "alert_catch": {
            "all": {"operator": "and", "cp": 1300, "iv": 0.95},
            "Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
          }
        }
      },
      {
        "//NOTE: This task MUST be placed on the top of task list": {},
        "type": "RandomAlivePause",
        "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:05:00",
          "max_interval": "01:30:00"
        }
      },
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "RandomPause",
        "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:10:00",
          "max_interval": "02:00:00"
        }
      },
      {
        "type": "CompleteTutorial",
        "config": {
          "enabled": false,
          "// set a name": "",
          "nickname": "",
          "// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "",
          "team": 0
        }
      },
      {
        "type": "CollectLevelUpReward",
        "config": {
          "collect_reward": true,
          "level_limit": -1
        }
      },
      {
        "type": "IncubateEggs",
        "config": {
          "enabled": true,
          "infinite_longer_eggs_first": false,
          "breakable_longer_eggs_first": true,
          "min_interval": 120,
         "infinite": [2,5,10],
         "breakable": [2,5,10]
        }
      },
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": false,
          "min_interval": 10,
          "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
          "terminal_log": true,
          "terminal_title": true
        }
      },
      {
        "type": "UpdateLiveInventory",
        "config": {
          "enabled": false,
          "min_interval": 120,
          "show_all_multiple_lines": false,
          "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
        }
      },
      {
        "type": "ShowBestPokemon",
        "config": {
          "enabled": true,
          "min_interval": 60,
          "amount": 5,
          "order_by": "cp",
          "info_to_show": ["cp", "ivcp", "dps", "hp"]
        }
      },
      {
        "type": "TransferPokemon",
        "config": {
          "enabled": true,
          "min_free_slot": 5,
          "transfer_wait_min": 3,
          "transfer_wait_max": 5
        }
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "enabled": false,
          "nickname_above_iv": 0.9,
          "nickname_template": "{iv_pct}_{iv_ads}",
          "nickname_wait_min": 3,
          "nickname_wait_max": 5
        }
      },
      {
        "type": "EvolvePokemon",
        "config": {
          "enabled": false,

            "// evolve only pidgey and drowzee": "",
            "// evolve_list": "pidgey, drowzee",
            "// donot_evolve_list": "none",

            "// evolve all but pidgey and drowzee": "",
            "// evolve_list": "all",
            "// donot_evolve_list": "pidgey, drowzee",

            "evolve_list": "all",
            "donot_evolve_list": "none",

          "first_evolve_by": "cp",
          "evolve_above_cp": 500,
          "evolve_above_iv": 0.8,
          "logic": "or",
          "min_evolve_speed": 25,
          "max_evolve_speed": 30,
          "use_lucky_egg": false
        }
      },
      {
        "type": "UseIncense",
        "config": {
          "use_incense": false,
          "use_order": [
            "ordinary",
            "spicy",
            "cool",
            "floral" 
          ]
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "enabled": true,
          "min_empty_space": 15,
          "max_balls_keep": 150,
          "max_potions_keep": 50,
          "max_berries_keep": 70,
          "max_revives_keep": 70,
          "item_filter": {
            "Pokeball":       { "keep" : 100 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 100 }
          },
          "recycle_wait_min": 3,
          "recycle_wait_max": 5,
          "recycle_force": true,
          "recycle_force_min": "00:01:00",
          "recycle_force_max": "00:05:00"
        }
      },
      {
        "type": "CatchPokemon",
        "config": {
          "enabled": true,
          "catch_visible_pokemon": true,
          "catch_lured_pokemon": true,
          "min_ultraball_to_keep": 5,
          "berry_threshold": 0.35,
          "vip_berry_threshold": 0.9,
          "treat_unseen_as_vip": true,
          "daily_catch_limit": 800,
          "vanish_settings": {
            "consecutive_vanish_limit": 10,
            "rest_duration_min": "02:00:00",
            "rest_duration_max": "04:00:00"
          },
          "catch_throw_parameters": {
            "excellent_rate": 0.1,
            "great_rate": 0.5,
            "nice_rate": 0.3,
            "normal_rate": 0.1,
            "spin_success_rate" : 0.6,
            "hit_rate": 0.75
          },
          "catch_simulation": {
            "flee_count": 3,
            "flee_duration": 2,
            "catch_wait_min": 3,
            "catch_wait_max": 6,
            "berry_wait_min": 3,
            "berry_wait_max": 5,
            "changeball_wait_min": 3,
            "changeball_wait_max": 5,
            "newtodex_wait_min": 20, 
            "newtodex_wait_max": 30
          }
        }
      },
      {
        "type": "SpinFort",
        "config": {
          "enabled": true,
          "spin_wait_min": 3,
          "spin_wait_max": 5,
          "daily_spin_limit": 1900
        }
      },
      { "type": "UpdateWebInventory",
        "config": {
          "enabled": true
        }
      },
      {
        "type": "MoveToFort",
        "config": {
          "enabled": true,
          "lure_attraction": true,
          "lure_max_distance": 2000,
          "walker": "StepWalker",
          "log_interval": 5
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "enabled": true,
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50,
      "cache_recent_forts": true
    },
    "pokemon_bag": {
      "// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
      "show_at_start": true,
      "// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
      "show_count": false,
      "// if 'show_candies' is true, it will show the amount of candies for each pokemon": {},
      "show_candies": false,
      "// 'pokemon_info' parameter define which info to show for each pokemon": {},
      "// the available options are": {},
      "// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
      "pokemon_info": ["cp", "iv_pct"]
    },
    "walk_max": 4.16,
    "walk_min": 2.16,
    "alt_min": 500,
    "alt_max": 1000,
    "sleep_schedule": [
      {
        "time": "12:00",
        "duration": "5:30",
        "time_random_offset": "00:30",
        "duration_random_offset": "00:30",
        "wake_up_at_location": ""
      },
      {
        "time": "17:45",
        "duration": "3:00",
        "time_random_offset": "01:00",
        "duration_random_offset": "00:30",
        "wake_up_at_location": ""
      }
    ],
    "gps_default_altitude": 8.0,
    "replicate_gps_xy_noise": false,
    "replicate_gps_z_noise": false,
    "gps_xy_noise_range": 0.000125,
    "gps_z_noise_range": 12.5,
    "debug": false,
    "test": false,
    "walker_limit_output": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "logging": {
      "color": true,
      "show_datetime": true,
      "show_process_name": true,
      "show_log_level": true,
      "show_thread_name": false
    },
    "catch": {
      "any": {"candy_threshold" : 400 ,"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 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Keep no more than 3 best IV pokemon for every pokemon type": {},
      "// any": {"keep_best_iv": 3},
      "// Discard all pokemon in bag except 100 pokemon with best CP": {},
      "// all": {"keep_best_cp": 100},
      "// 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},
      "// Example of custom order of static criterion": {},
      "// Zubat": {"keep_best_custom": "iv, cp, hp_max", "amount":2}
    },
    "vips" : {
        "Any pokemon put here directly force to use Berry & Best Ball to capture, 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 representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}
    },
    "websocket": {
        "start_embedded_server": true,
        "server_url": "127.0.0.1:4000"
    }
}

Output when issue occurred

--------------------Starting bot--------------------

2016-09-11 02:45:06,132 [       cli] [INFO] PokemonGO Bot v1.0
2016-09-11 02:45:06,132 [       cli] [INFO] commit: unknown
2016-09-11 02:45:06,132 [       cli] [INFO] No auth argument specified, checking
 for C:\Users\lossonfire\Downloads\PokemonGoPokemonGo-Bot\pokemongo_bot\..\confi
gs\auth.json
2016-09-11 02:45:06,148 [       cli] [INFO] No config argument specified, checki
ng for C:\Users\lossonfire\Downloads\PokemonGoPokemonGo-Bot\pokemongo_bot\..\con
figs\config.json
2016-09-11 02:45:06,148 [       cli] [INFO] Configuration initialized
2016-09-11 02:45:06,148 [pokemongo_bot.health_record.bot_event] [INFO] Health ch
eck is enabled. For more information:
2016-09-11 02:45:06,148 [pokemongo_bot.health_record.bot_event] [INFO] https://g
ithub.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-11 02:45:06,180 [requests.packages.urllib3.connectionpool] [INFO] Starti
ng new HTTP connection (1): www.google-analytics.com
2016-09-11 02:45:07,512 [yoyo.migrations] [INFO] Applying pokemongobot
2016-09-11 02:45:07,512 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:07,512 [yoyo.migrations] [INFO] Marking pokemongobot applied
2016-09-11 02:45:07,776 [yoyo.migrations] [INFO] Applying catch_log
2016-09-11 02:45:07,776 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:07,776 [yoyo.migrations] [INFO] Marking catch_log applied
2016-09-11 02:45:08,230 [yoyo.migrations] [INFO] Applying eggs_hatched_log
2016-09-11 02:45:08,230 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,230 [yoyo.migrations] [INFO] Marking eggs_hatched_log applie
d
2016-09-11 02:45:08,355 [yoyo.migrations] [INFO] Applying evolve_log
2016-09-11 02:45:08,369 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,369 [yoyo.migrations] [INFO] Marking evolve_log applied
2016-09-11 02:45:08,479 [yoyo.migrations] [INFO] Applying pokestop_log
2016-09-11 02:45:08,479 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,479 [yoyo.migrations] [INFO] Marking pokestop_log applied
2016-09-11 02:45:08,556 [yoyo.migrations] [INFO] Applying softban_log
2016-09-11 02:45:08,556 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,556 [yoyo.migrations] [INFO] Marking softban_log applied
2016-09-11 02:45:08,651 [yoyo.migrations] [INFO] Applying transfer_log
2016-09-11 02:45:08,651 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,651 [yoyo.migrations] [INFO] Marking transfer_log applied
2016-09-11 02:45:08,744 [yoyo.migrations] [INFO] Applying vanish_log
2016-09-11 02:45:08,744 [yoyo.migrations] [INFO]  - applying step 0
2016-09-11 02:45:08,744 [yoyo.migrations] [INFO] Marking vanish_log applied
(4128) wsgi starting up on http://127.0.0.1:4000
2016-09-11 02:45:08,963 [requests.packages.urllib3.connectionpool] [INFO] Starti
ng new HTTP connection (1): 127.0.0.1
[2016-09-11 02:45:08] [SleepSchedule] [INFO] Next sleep at 12:05:37, for a durat
ion of 5:30:07
[2016-09-11 02:45:09] [PokemonGoBot] [INFO] Setting start location.
[2016-09-11 02:45:09] [PokemonGoBot] [INFO] [x] Coordinates found in passed in l
ocation, not geocoding.
[2016-09-11 02:45:09] [PokemonGoBot] [INFO] Location found: -33.435335,-70.64152
3 (-33.435335, -70.641523, 8.0)
[2016-09-11 02:45:09] [PokemonGoBot] [INFO] Now at (-33.435335, -70.641523, 8.0)

[2016-09-11 02:45:09] [PokemonGoBot] [INFO] Login procedure started.
[2016-09-11 02:45:13] [PokemonGoBot] [INFO] Login successful.
[2016-09-11 02:45:13] [PokemonGoBot] [INFO] Found encrypt.dll! Platform: win32 e
ncrypt.dll directory: C:\Users\lossonfire\Downloads\PokemonGoPokemonGo-Bot
[2016-09-11 02:45:13] [PokemonGoBot] [INFO]
Traceback (most recent call last):
  File "pokecli.py", line 802, in <module>
    main()
  File "pokecli.py", line 238, in main
    report_summary(bot)
  File "pokecli.py", line 286, in report_summary
    metrics.capture_stats()
  File "C:\Users\lossonfire\Downloads\PokemonGoPokemonGo-Bot\pokemongo_bot\metri
cs.py", line 105, in capture_stats
    self.dust['latest'] = self.bot.stardust
  File "C:\Users\lossonfire\Downloads\PokemonGoPokemonGo-Bot\pokemongo_bot\__ini
t__.py", line 72, in stardust
    return filter(lambda y: y['name'] == 'STARDUST', self._player['currencies'])
[0]['amount']
AttributeError: 'PokemonGoBot' object has no attribute '_player'
[2016-09-11 02:45:13] [sentry.errors] [ERROR] Sentry responded with an error: 'u
tf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https:
//app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in
 send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send

    ca_certs=self.ca_certs,
  File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line
494, in open
    response = self._open(req, data)
  File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line
512, in _open
    '_open', req)
  File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line
466, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_op
en
    return self.do_open(ValidHTTPSConnection, req)
  File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line
1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "C:\Python27\lib\httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "C:\Python27\lib\httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "C:\Python27\lib\httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "C:\Python27\lib\httplib.py", line 895, in _send_output
    msg += message_body
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid s
tart byte
[2016-09-11 02:45:13] [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'Pokem
onGoBot' object has no attribute '_player'", u'  File "pokecli.py", line 802, in
 <module>', u'  File "pokecli.py", line 238, in main', u'  File "pokecli.py", li
ne 286, in report_summary', u'  File "C:\\Users\\lossonfire\\Downloads\\PokemonG
oPokemonGo-Bot\\pokemongo_bot\\metrics.py", line 105, in capture_stats', u'  Fil
e "C:\\Users\\lossonfire\\Downloads\\PokemonGoPokemonGo-Bot\\pokemongo_bot\\__in
it__.py", line 72, in stardust']

Something went wrong and the bot needed to be restarted. Please investigate the cause.

Esperando 0 segundos, presione una tecla para continuar ...

Steps to Reproduce

start PokemonGo-Bot-Start.bat

Other Information

OS: Windows 7 x64

Branch: master Git Commit: Git-2.10.0-64-bit.exe Python Version: python-2.7.12.msi

CtrlAltDefeat94 commented 8 years ago

Same for me :/

CtrlAltDefeat94 commented 8 years ago

What I got from other (closed) issues is that the problem is with logging in with a google account and to "just use ptc" so much for botting on a google account ._.

lossonfire commented 8 years ago

im using a ptc account

lossonfire commented 8 years ago

i've tried the fix for stardust problems but doesn't work

` func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) File "C:\Python27\lib\ctypesinit.py", line 375, in getattr func = self.getitem(name) File "C:\Python27\lib\ctypesinit.py", line 380, in getitem func = self._FuncPtr((name_or_ordinal, self)) RuntimeError: maximum recursion depth exceeded while calling a Python object Traceback (most recent call last): File "pokecli.py", line 802, in main() File "pokecli.py", line 149, in main bot = start_bot(bot, config) File "pokecli.py", line 108, in start_bot bot.start() File "C:\pokego\PokemonGo-Bot\pokemongo_botinit.py", line 135, in start self._setup_api() File "C:\pokego\PokemonGo-Bot\pokemongo_botinit.py", line 961, in setup api self.update_web_location() File "C:\pokego\PokemonGo-Bot\pokemongobotinit.py", line 734, in update web_location cells = self.find_close_cells(*location) File "C:\pokego\PokemonGo-Bot\pokemongo_botinit.py", line 790, in find_cl ose_cells response_dict = self.get_map_objects(lat, lng, timestamp, cellid) File "C:\pokego\PokemonGo-Bot\pokemongo_botinit.py", line 1355, in get_ma p_objects cell_id=cellid File "c:\python27\src\pgoapi\pgoapi\pgoapi.py", line 137, in function return request.call() File "C:\pokego\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 237, in call

result = self._call()

File "C:\pokego\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 186, in _cal l return PGoApiRequest.call(self, signature) File "c:\python27\src\pgoapi\pgoapi\pgoapi.py", line 226, in call request.activate_signature(lib_path) File "c:\python27\src\pgoapi\pgoapi\rpc_api.py", line 83, in activate_signatur e self._signature_lib = ctypes.cdll.LoadLibrary(lib_path) File "C:\Python27\lib\ctypesinit.py", line 440, in LoadLibrary return self._dlltype(name) File "C:\Python27\lib\ctypesinit.py", line 362, in init self._handle = _dlopen(self._name, mode) WindowsError: [2016-09-11 19:42:52] [sentry.errors] [ERROR] Sentry responded with an error: 'u tf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https: //app.getsentry.com/api/90254/store/) Traceback (most recent call last): File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send

ca_certs=self.ca_certs,

File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen return opener.open(url, data, timeout) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open response = self._open(req, data) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open '_open', req) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain result = func(args) File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_op en return self.do_open(ValidHTTPSConnection, req) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "C:\Python27\lib\httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "C:\Python27\lib\httplib.py", line 1097, in _send_request self.endheaders(body) File "C:\Python27\lib\httplib.py", line 1053, in endheaders self._send_output(message_body) File "C:\Python27\lib\httplib.py", line 895, in _send_output msg += message_body File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid s tart byte [2016-09-11 19:42:52] [sentry.errors.uncaught] [ERROR] [u'WindowsError: (Error d ecoding value)', u' File "pokecli.py", line 802, in ', u' File "pokecl i.py", line 149, in main', u' File "pokecli.py", line 108, in start_bot', u' F ile "C:\pokego\PokemonGo-Bot\pokemongo_bot*init.py", line 135, in start' , u' File "C:\pokego\PokemonGo-Bot\pokemongo_bot\init.py", line 961, in _setup_api', u' File "C:\pokego\PokemonGo-Bot\pokemongo_bot__init__.py", line 734, in update_web_location', u' File "C:\pokego\PokemonGo-Bot\pokemong o_bot\init.py", line 790, in find_close_cells', u' File "C:\pokego\Pokem onGo-Bot\pokemongo_bot\init.py", line 1355, in get_map_objects', u' File "c:\python27\src\pgoapi\pgoapi\pgoapi.py", line 137, in function', u' File "C:\pokego\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 237, in call', u' File "C:\pokego\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 186, in _call', u' File "c:\python27\src\pgoapi\pgoapi\pgoapi.py", line 226, in call', u' File "c:\python27\src\pgoapi\pgoapi\rpc_api.py", line 83, in ac tivate_signature', u' File "C:\Python27\lib\ctypes__init__.py", line 440, in LoadLibrary', u' File "C:\Python27\lib\ctypes\init.py", line 362, in init**']

Something went wrong and the bot needed to be restarted. Please investigate the cause.

Esperando 49 segundos, presione una tecla para continuar ... 2016-09-11 19:43:04,529 [ cli] [INFO] PokemonGO Bot v1.0 2016-09-11 19:43:04,538 [ cli] [INFO] commit: unknown 2016-09-11 19:43:04,539 [ cli] [INFO] No auth argument specified, checking for C:\pokego\PokemonGo-Bot\pokemongo_bot..\configs\auth.json 2016-09-11 19:43:04,539 [ cli] [INFO] No config argument specified, checki ng for C:\pokego\PokemonGo-Bot\pokemongo_bot..\configs\config.json 2016-09-11 19:43:04,542 [ cli] [INFO] Configuration initialized 2016-09-11 19:43:04,542 [pokemongo_bot.health_record.bot_event] [INFO] Health ch eck is enabled. For more information: 2016-09-11 19:43:04,542 [pokemongo_bot.health_record.bot_event] [INFO] https://g ithub.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics 2016-09-11 19:43:04,551 [requests.packages.urllib3.connectionpool] [INFO] Starti ng new HTTP connection (1): www.google-analytics.com (1956) wsgi starting up on http://127.0.0.1:4000 2016-09-11 19:43:04,829 [requests.packages.urllib3.connectionpool] [INFO] Starti ng new HTTP connection (1): 127.0.0.1 [2016-09-11 19:43:04] [SleepSchedule] [INFO] Next sleep at 22:48:41, for a durat ion of 7:45:30 `

bhaveshrangani commented 8 years ago

same for me UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte

ikariya69 commented 8 years ago

same problem here :+1: UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte looks like an error related to websocket as it appears after 127.0.0.1 message however bot seems working

ricardofiorani commented 8 years ago

+1

Gobberwart commented 8 years ago

Stale. Closed.

CtrlAltDefeat94 commented 8 years ago

Still an issue tho