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

python error #190

Closed
0xRoM opened this issue Jul 22, 2016 · 2 comments
Closed

python error #190

0xRoM opened this issue Jul 22, 2016 · 2 comments

Comments

@0xRoM
Copy link

0xRoM commented Jul 22, 2016

Hi I am getting the following:

Traceback (most recent call last):
File "./pokecli.py", line 120, in
main()
File "./pokecli.py", line 117, in main
bot.take_step()
File "/opt/PokemonGo-Bot/bot.py", line 29, in take_step
self.stepper.take_step()
File "/opt/PokemonGo-Bot/stepper.py", line 41, in take_step
self._walk_to(self.config.walk, *position)
File "/opt/PokemonGo-Bot/stepper.py", line 72, in _walk_to
dist = self.distance(i2f(self.api._position_lat), i2f(self.api._position_lng), lat, lng)
AttributeError: 'Stepper' object has no attribute 'distance'

any ideas?

@jtdroste
Copy link
Contributor

What version of the bot are you running? Which branch (Dev or Master)?

@glennvgastel
Copy link
Contributor

This should be closed, getting a current copy of stepper.py resolves this error.
dist = self.distance should be dist = distance, it was fixed in a recent commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants