Closed mohakevin closed 8 years ago
I have that problem as well since some minutes.
Same problem...since some minutes too. I'm using master branch
Same one.
config.json
{
"auth_service": "google",
"username": "***",
"password": "***",
"location": "**coord**, ***coord***",
"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": "NONE"
}
python --version
Python 2.7.9
git pull
Already up-to-date.
(branch is master)
Linux Ubuntu 16.04
I'm having the same problem!
Same problem, may be Niantic do something...
This is a problem caused by an update in the pgoapi from tejado. It can easily be fixed by pinning the pgoapi pip to the "v1.1.0" tag. Change the first line in the requirements.txt in this way:
-e git+https://github.com/tejado/pgoapi.git@v1.1.0#egg=pgoapi
and update your pip with
pip install -r requirements.txt
@LasseSkogland created a fix in the form of a .patch file : https://gist.github.com/LasseSkogland/f4c9fb3459d1ef5f4a2a6b842d6c4594
But then I'm getting this error:
python pokecli.py
Traceback (most recent call last):
File "pokecli.py", line 39, in <module>
from pokemongo_bot import logger
File "/home/area51/Stuff/PokemonGo-Bot/pokemongo_bot/__init__.py", line 13, in <module>
from pgoapi import PGoApi
File "/home/area51/Stuff/PokemonGo-Bot/src/pgoapi/pgoapi/__init__.py", line 17, in <module>
raise PleaseInstallProtobufVersion3()
pgoapi.exceptions.PleaseInstallProtobufVersion3
What do I do?
Ubuntu 16.04 LTS
@palakz Update your ProtoBuf to version 3
@leovarmak How do I update it?
@palakz Which OS ?
@leovarmak Ubuntu 16.04 LTS
pip install --update -r requirements.txt
to update on any OS.
When I run pip install --update -r requirements.txt
I get
Usage:
pip install [options] <requirement specifier> ...
pip install [options] -r <requirements file> ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --update
--upgrade not helpful.
area51@Alienware:~/Stuff/PokemonGo-Bot$ python pokecli.py
Traceback (most recent call last):
File "pokecli.py", line 39, in <module>
from pokemongo_bot import logger
File "/home/area51/Stuff/PokemonGo-Bot/pokemongo_bot/__init__.py", line 13, in <module>
from pgoapi import PGoApi
File "/home/area51/Stuff/PokemonGo-Bot/src/pgoapi/pgoapi/__init__.py", line 17, in <module>
raise PleaseInstallProtobufVersion3()
pgoapi.exceptions.PleaseInstallProtobufVersion3
area51@Alienware:~/Stuff/PokemonGo-Bot$ pip install --update -r requirements.txt
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --update
area51@Alienware:~/Stuff/PokemonGo-Bot$ pip install --upgrade -r requirements.txt
Obtaining pgoapi from git+https://github.com/tejado/pgoapi.git@v1.1.0#egg=pgoapi (from -r requirements.txt (line 1))
Updating ./src/pgoapi clone (to v1.1.0)
Collecting geopy==1.11.0 (from -r requirements.txt (line 2))
Using cached geopy-1.11.0-py2.py3-none-any.whl
Collecting protobuf==3.0.0b4 (from -r requirements.txt (line 3))
Using cached protobuf-3.0.0b4-py2.py3-none-any.whl
Collecting requests==2.10.0 (from -r requirements.txt (line 4))
Using cached requests-2.10.0-py2.py3-none-any.whl
Collecting s2sphere==0.2.4 (from -r requirements.txt (line 5))
Using cached s2sphere-0.2.4-py2.py3-none-any.whl
Collecting gpsoauth==0.3.0 (from -r requirements.txt (line 6))
Collecting protobuf-to-dict==0.1.0 (from -r requirements.txt (line 7))
Collecting googlemaps==2.4.4 (from -r requirements.txt (line 8))
Using cached googlemaps-2.4.4-py2-none-any.whl
Collecting colorama==0.3.7 (from -r requirements.txt (line 9))
Using cached colorama-0.3.7-py2.py3-none-any.whl
Collecting enum34==1.1.6 (from -r requirements.txt (line 10))
Using cached enum34-1.1.6-py2-none-any.whl
Collecting pyyaml==3.11 (from -r requirements.txt (line 11))
Collecting haversine==0.4.5 (from -r requirements.txt (line 12))
Collecting polyline==1.3.1 (from -r requirements.txt (line 13))
Using cached polyline-1.3.1-py2.py3-none-any.whl
Collecting six>=1.9 (from protobuf==3.0.0b4->-r requirements.txt (line 3))
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting setuptools (from protobuf==3.0.0b4->-r requirements.txt (line 3))
Using cached setuptools-25.1.0-py2.py3-none-any.whl
Collecting future (from s2sphere==0.2.4->-r requirements.txt (line 5))
Collecting pycryptodomex>=3.0 (from gpsoauth==0.3.0->-r requirements.txt (line 6))
Installing collected packages: geopy, six, setuptools, protobuf, requests, future, s2sphere, pycryptodomex, gpsoauth, pgoapi, protobuf-to-dict, googlemaps, colorama, enum34, pyyaml, haversine, polyline
Running setup.py develop for pgoapi
Successfully installed colorama-0.3.7 enum34-1.1.2 future-0.15.2 geopy-1.11.0 googlemaps-2.4.4 gpsoauth-0.3.0 haversine-0.4.5 pgoapi-1.1.0 polyline-1.3.1 protobuf-2.6.1 protobuf-to-dict-0.1.0 pycryptodomex-3.4.2 pyyaml-3.11 requests-2.9.1 s2sphere-0.2.4 setuptools-20.7.0 six-1.10.0
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
area51@Alienware:~/Stuff/PokemonGo-Bot$ python pokecli.pyTraceback (most recent call last):
File "pokecli.py", line 39, in <module>
from pokemongo_bot import logger
File "/home/area51/Stuff/PokemonGo-Bot/pokemongo_bot/__init__.py", line 13, in <module>
from pgoapi import PGoApi
File "/home/area51/Stuff/PokemonGo-Bot/src/pgoapi/pgoapi/__init__.py", line 17, in <module>
raise PleaseInstallProtobufVersion3()
pgoapi.exceptions.PleaseInstallProtobufVersion3
area51@Alienware:~/Stuff/PokemonGo-Bot$
I think they meant pip install update -r requirements.txt
Sorry, for linux it should be apt-get install python-protobuf
latest version and still occuring
sudo apt-get install python-protobuf
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-protobuf is already the newest version (2.6.1-1.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I ran brew update && brew install --devel protobuf
on OSX and still get the Walking from (0.0, 0.0) to [0.0018, 0.0]
Same problem as @kriswong. It says python-protobuf is already the newest version (2.6.1-1.3).
You can manually install it from here : https://github.com/google/protobuf/tree/master/python Installation instructions are below.
I'm mobile so I. Cannot quote dude but this is the answer.
This is a problem caused by an update in the pgoapi from tejado. It can easily be fixed by pinning the pgoapi pip to the "v1.1.0" tag. Change the first line in the requirements.txt in this way: -e git+https://github.com/tejado/pgoapi.git@v1.1.0#egg=pgoapi and update your pip with pip install -r requirements.txt
I re-installed my whole dev environment after that commit came out. So my requirements.txt already has that in it. My submodule is pointing to a commit 83463c2b
Commit has been reverted, please repull. #1065
Expected Behavior
Set location and begin to move
Actual Behavior
Incorrect location or movement
Steps to Reproduce
Log information:
[2016-07-26 20:17:59] [x] PokemonGO Bot v1.0 [2016-07-26 20:17:59] [x] Configuration initialized [2016-07-26 20:17:59] [x] Coordinates found in passed in location, not geocoding. [2016-07-26 20:17:59] [2016-07-26 20:17:59] [x] Address found: 41.656144,-0.879090 [2016-07-26 20:17:59] [x] Position in-game set as: (41.656144, -0.87909, 0.0) [2016-07-26 20:17:59] ... [2016-07-26 20:18:01] [#] Scanning area for objects (1 / 25) [2016-07-26 20:18:01] [#] Walking from (2.03e-322, 0.0) to (41.656144, -0.87909) for approx. 1113653.00 seconds [#] Attempting to evolve all pokemons ...
Some ideas what could be the problem?
Regards and thank you!