Raspberry Pi Syntax Error
Hello, I followed steps from documentation actually python is chinese for me . I'm calling script with command: pytgon pokecli.py
Terminal Output:
pi@raspberrypi:~/PokemonGo-Bot $ python pokecli.py
Traceback (most recent call last):
File "pokecli.py", line 39, in
Other Information
OS: Raspbian Jessie Python version:: 2.7.12 Latest pip installed virtualenv installed protobuf installed Master branch used
sudo apt-get install protobuf-compiler and then run pip inside a virtualenv and should work
inside pip it complains that protoc isnt installed or in ../src
Thank you I'll check it after I got home.
@heihachi i tried it, doesnt work :( im inside the virtualenv but i get this error:
Installed /tmp/pip-build-WRZGZh/protobuf-to-dict/nose-1.3.7-py2.7.egg Searching for protobuf>=2.3.0 Reading https://pypi.python.org/simple/protobuf/ Best match: protobuf 3.0.0b4 Downloading https://pypi.python.org/packages/8b/fa/2a4f48c3579a5d88bfe4e8408227cb12731efcb30da4ba423cf115a1d320/protobuf-3.0.0b4-py2.7.egg#md5=e29a69cb89fff0bc39f099e705e4e93e Processing protobuf-3.0.0b4-py2.7.egg creating /tmp/pip-build-WRZGZh/protobuf-to-dict/protobuf-3.0.0b4-py2.7.egg Extracting protobuf-3.0.0b4-py2.7.egg to /tmp/pip-build-WRZGZh/protobuf-to-dict
Installed /tmp/pip-build-WRZGZh/protobuf-to-dict/protobuf-3.0.0b4-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-WRZGZh/protobuf-to-dict/setup.py", line 25, in <module>
'Topic :: Software Development :: Libraries :: Python Modules',
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 867, in best_match
dist = working_set.find(req)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9'))
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WRZGZh/protobuf-to-dict/ (PokemonGo-Bot) pi@raspberrypi:~/PokemonGo-Bot $
pip install --update six
it has a older version of six installed
It's pip install six --upgrade
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