PokemonGoF / PokemonGo-Bot

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

AttributeError #2336

Closed andruxabr closed 8 years ago

andruxabr commented 8 years ago

Traceback (most recent call last): File "C:/python/PokemonGo-Bot-master/pokecli.py", line 220, in main() File "C:/python/PokemonGo-Bot-master/pokecli.py", line 206, in main bot.start() File "C:\python\PokemonGo-Bot-master\pokemongo_botinit.py", line 31, in start self._setup_api() File "C:\python\PokemonGo-Bot-master\pokemongo_botinit.py", line 146, in _setup_api response_dict = self.api.call() File "C:\Python27\lib\site-packages\pgoapi-1.1.6-py2.7.egg\pgoapi\pgoapi.py", line 89, in getattr raise AttributeError AttributeError

How to solve problem? Help please

maestroi commented 8 years ago

Please update with pip install -r requirements.txt
if you not using virtualenv witch we recommend. sudo pip install -r requirements.txt
or run as administrator

ulou commented 8 years ago

same here, @maestroi you comment doesn't solve it

reddivision commented 8 years ago

2357 fixes this. The problem is you're running the newest pgoapi (1.1.6) with a dev branch codebase that wasn't prepared for it. @maestroi's answer would have actually solved your issue as long as you had uninstalled the existing pgoapi module first, which would have effectively reverted you to an earlier pgoapi (i.e. deleted the src/ directory)