object has no attribute 'position'
Expected Behavior
Bot runs
Actual Behavior
Crashes,
LOG:
[2016-07-26 21:10:56] [x] PokemonGO Bot v1.0
[2016-07-26 21:10:56] [x] Configuration initialized
[2016-07-26 21:10:57] [x] The location given using -l could not be parsed. Checking for a cached location.
[2016-07-26 21:11:13] [#] Username: x
[2016-07-26 21:11:13] [#] Acccount Creation: x
[2016-07-26 21:11:13] [#] Bag Storage: x
[2016-07-26 21:11:13] [#] Pokemon Storage: x
[2016-07-26 21:11:13] [#] Stardust: x
[2016-07-26 21:11:13] [#] Pokecoins: 0
[2016-07-26 21:11:13] [#] PokeBalls: 10
[2016-07-26 21:11:13] [#] GreatBalls: x
[2016-07-26 21:11:13] [#] UltraBalls: x
[2016-07-26 21:11:13] [#] -- Level: x
[2016-07-26 21:11:13] [#] -- Experience: x
[2016-07-26 21:11:13] [#] -- Experience until next level: x
[2016-07-26 21:11:13] [#] -- Pokemon Captured: x
[2016-07-26 21:11:13] [#] -- Pokestops Visited: x
[2016-07-26 21:11:13] [#]
Traceback (most recent call last):
File "pokecli.py", line 220, in
Config: { "auth_service": "ptc", "username": "x", "password": "x", "location": "45.5231,-122.6765", // PORTLAND, OR "gmapkey": "x", "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", "evolve_all": "NONE" }
Console Args: python pokecli.py
Steps to Reproduce
Running it on my server.
Other Information
OS: Ubuntu Server 14.04 Git Commit: 893483778366075aa9f3b80e090b448088439b93
Replaced sensitive info with 'x' to prevent being banned.
same issue.
EDIT: I found out that this issue appears if I'm using "minus" coordinates (45.5231,-122.6765)
OS: OSX 10.11.5
Happened to me with both positive and negative coordinates. @DimaVIII
Same position with dev build returns: [21:49:37] [x] The location given using -l could not be parsed. Checking for a cached location. [21:49:37] [x] Parsing cached location... No cached Location. Please specify initial location.
@banksymate If I add a positive location the script is not crashing but it stuck here: [2016-07-27 05:10:30] [x] Starting PokemonGo Bot.... [2016-07-27 05:10:30] [#] Scanning area for objects (1 / 25) [2016-07-27 04:49:34] [#] Walking from (2.6e-322, 5e-323) to (53.551472, 10.002872) for approx. 1448531.00 seconds
@DimaVIII What location are you using in your config, I want to see if it works for me.
Getting this too. 37.7915833,-122.3921887 crashes, but 37.7915833,122.3921887 does not. I'm happy to take a peak.
@banksymate MY Config:
"location": "53.551472,10.002872", "gmapkey": "", "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", "evolve_all": ""
@klvs @DimaVIII both of your coordinates work fine for me in the dev branch, so confirming it's if you have a negative coordinate.
edit: both your positive coordinates that is
Removed the try \ catch so I could get a error, this is what I got.
Traceback (most recent call last):
File "pokecli.py", line 283, in
possibleCoordinates = re.findall("[-]?\d{1,3}[.]\d{6,7}", location_name)
Maybe this regex isn't finding the coordinates with negatives correctly? It shouldn't be using googles Geocoder otherwise.
Yes I can confirm this too, the issue is coming from the negative coordinates. I just installed the dev branch, here it works for me with negative coordinates.
Dev branch doesn't work with negative coordinates for me.
I can confirm this issue for current master branch.
Found out the issue was a entered 'ß' in location in master branch. This was no problem in older builds.