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

Bot crashes #4082

Closed
thebringerofdeath789 opened this issue Aug 16, 2016 · 2 comments
Closed

Bot crashes #4082

thebringerofdeath789 opened this issue Aug 16, 2016 · 2 comments

Comments

@thebringerofdeath789
Copy link

Expected Behavior

The bot should not crash

Actual Behavior

After successful login, and the bot starting it crashes.

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

"auth_service": "google",
"username": "",
"Removed pw/gmap",
"encrypt_location": "",
"websocket_server": false,
"tasks": [
  {
    "type": "HandleSoftBan"
  },
  {
    "type": "SleepSchedule",
    "config": {
      "enabled": true,
      "time": "20:51",
      "duration":"8:01",
      "time_random_offset": "00:20",
      "duration_random_offset": "00:56"
    }
  },
  {
    "type": "CollectLevelUpReward"
  },
  {
    "type": "IncubateEggs",
    "config": {
      "longer_eggs_first": true
    }
  },
  {
    "type": "UpdateLiveStats",
    "config": {
      "enabled": true,
      "min_interval": 10,
      "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
      "terminal_log": true,
      "terminal_title": true
    }
  },
  {
    "type": "TransferPokemon"
  },
  {
    "type": "NicknamePokemon",
    "config": {
      "enabled": false,
      "nickname_template": "{iv_pct}_{iv_ads}"
    }
  },
  {
    "type": "EvolvePokemon",
    "config": {
        "evolve_all": "none",
        "first_evolve_by": "cp",
        "evolve_above_cp": 500,
        "evolve_above_iv": 0.8,
        "logic": "or",
        "evolve_speed": 20,
        "use_lucky_egg": false
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "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 }
      }
    }
  },
  {
    "type": "CatchVisiblePokemon"
  },
  {
    "type": "CatchLuredPokemon"
  },
  {
    "type": "SpinFort"
  },
  {
    "type": "MoveToFort",
    "config": {
        "lure_attraction": true,
        "lure_max_distance": 10000
    }
  },
  {
    "type": "FollowSpiral",
    "config": {
      "diameter": 8,
      "step_size": 73
    }
  }
],
"map_object_cache_time": 5,
"forts": {
  "avoid_circles": true,
  "max_circle_size": 50,
  "cache_recent_forts": true
},
"walk_max": 2.16,
"walk_min": 1.16,
"action_wait_min": 1,
"action_wait_max": 4,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "mi",
"reconnecting_timeout": 15,
"catch_randomize_reticle_factor": 1.0,
"catch_randomize_spin_factor": 1.0,
"min_ultraball_to_keep": 10,
"logging_color": true,
"catch": {
  "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
  "// Example of always catching Rattata:": {},
  "// Rattata": { "always_catch" : true }
},
"catch_throw_parameters": {
  "excellent_rate": 0.05,
  "great_rate": 0.25,
  "nice_rate": 0.20,
  "normal_rate": 0.1,
  "spin_success_rate" : 0.5
},
"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 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": {}

}

}

Output when issue occurred

Traceback (most recent call last):
File "pokecli.py", line 609, in
main()
File "pokecli.py", line 104, in main
bot.tick()
File "/root/pgo2/pokemongo_bot/init.py", line 483, in tick
if worker.work() == WorkerResult.RUNNING:
File "/root/pgo2/pokemongo_bot/cell_workers/follow_spiral.py", line 117, in work
if dist <= 1 or (self.bot.config.walk > 0 and step_walker == None):
AttributeError: 'Namespace' object has no attribute 'walk'
2016-08-16 09:50:14,022 [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 44, in urlopen
class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
2016-08-16 09:50:14,022 [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'Namespace' object has no attribute 'walk'", u' File "pokecli.py", line 609, in ', u' File "pokecli.py", line 104, in main', u' File "pokemongo_bot/init.py", line 483, in tick', u' File "pokemongo_bot/cell_workers/follow_spiral.py", line 117, in work']

Steps to Reproduce

Other Information

OS:
Debian 7, python 2.7
Branch:
Master
Git Commit:
52495ae
Python Version:
2.7.3
Any other relevant files/configs (eg: path files)

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

2 participants
@thebringerofdeath789 and others