tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

No Module named google.protobuf #19

Closed kashtrip closed 8 years ago

kashtrip commented 8 years ago

Hi, I am getting the following error. What am I doing wrong?

python main.py --debug -u tejado -p 1234 --location "New York, Washington Square"
Traceback (most recent call last):
  File "main.py", line 6, in <module>
    import pokemon_pb2
  File "C:\Users\Akash\Downloads\pokemongo-api-demo-master\pokemongo-api-demo-master\pokemon_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf
jbaiter commented 8 years ago

You have to install the protobuf package:

pip install protobuf
kashtrip commented 8 years ago

That worked. Thanks

Simon0x commented 8 years ago

Use python 2.7 not the 3.5 Tryed first with python 3.5 but this only make problem.