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

IndentationError: unexpected indent

Open BScreen opened this issue 10 years ago • 1 comments

Expected Behavior

Bot should start up as usual

Actual Behavior

After running the bot earlier today I tested some of the PRs, but reverted back to the original master branch. Now I keep getting the same error and can't fix it myself, since I'm only slowly getting the hang of python. After doing

python pokecli.py

I get the following message:

Traceback (most recent call last):
  File "pokecli.py", line 39, in <module>
    from pokemongo_bot import logger
  File "/Users/***/Desktop/PokemonGo-Bot/pokemongo_bot/__init__.py", line 89
    forts.sort(key=lambda x: distance(self.position[
    ^
IndentationError: unexpected indent

I hope you guys can help me.

Steps to Reproduce

$ git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot  
$ cd PokemonGo-Bot  
$ virtualenv .  
$ source bin/activate  
$ pip install -r requirements.txt
$ git submodule init
$ git submodule update

Other Information

OS: OS X El Capitan 10.11.6 Git Commit: 32cefeed4760d6b5d2b3eb76d783d0f13d068e83

BScreen avatar Jul 26 '16 10:07 BScreen

Please upgrade to the latest dev branch by running this command:

git reset --hard
git pull -f

Then run this command: pip install --upgrade -r requirements.txt

If issue persists, open a new issue.

/closed

AdaptCharm avatar Jul 29 '16 18:07 AdaptCharm