Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing pgoapi #240

Closed
fvorez opened this issue Jul 22, 2016 · 9 comments
Closed

Missing pgoapi #240

fvorez opened this issue Jul 22, 2016 · 9 comments

Comments

@fvorez
Copy link

fvorez commented Jul 22, 2016

Traceback (most recent call last):
File "pokecli.py", line 42, in
from pokemongo_bot import PokemonGoBot
File "C:\Users\Orez\Desktop\PokemonGo-Bot-dev\pokemongo_bot__init__.py", line
10, in
from pgoapi import PGoApi
ImportError: No module named pgoapi

@dominikue
Copy link

dominikue commented Jul 22, 2016

To install the pgoapi use pip install -e git://github.com/tejado/pgoapi.git#egg=pgoapi

Also make sure you add git to the PATH if you use windows.

@Klohto
Copy link
Contributor

Klohto commented Jul 22, 2016

pip install -r ./requirements.txt

@fvorez
Copy link
Author

fvorez commented Jul 22, 2016

Figured i was missing a req, but now

Error [Error 2] The system cannot find the file specified while executing comm
and git clone -q git://github.com/tejado/pgoapi.git C:\Users\Orez\Desktop\Pokemo
nGo-Bot-dev\src\pgoapi
Cannot find command 'git'

@Klohto
Copy link
Contributor

Klohto commented Jul 22, 2016

Don't have git installed in your console

@dominikue
Copy link

Also make sure you add git to the PATH if you use windows.
Are you using windows?
http://stackoverflow.com/questions/11000869/command-line-git-on-windows

@fvorez
Copy link
Author

fvorez commented Jul 22, 2016

Thanks m8s, sorry about my noobness

@dominikue
Copy link

Wrote the same question 20 min ago.. :D If it doesn't work try to open the cmd in your git directory "C:\Users\AppData\Local\GitHub\PortableGit_\cmd" - worked for me.

@aTadTasty
Copy link

for mac users, please use the code pip install -r ./requirements.txt --ignore-installed six

@douglascamata
Copy link
Member

Mac users should use virtualenv, it's the proper solution for clean local python environments.

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* Updated Gym Layout

Gym Layout now contains Icons like the rest of the items (except
Pokeballs)

* Update flags table

* Reformat get_args

* Update flags table

* Reformat get_args

* Add autorefresh flag to README

* Update flags table

* Reformat get_args

* added countdown timer until pokemon disappear

* changed the label so it displays both disappears-at and disappears-in

* changed label format

* Fix multiline string

* decoupled google maps from flask

* removed one more thing

* Cleaned up duplicate and unused imports.

* added some nice autoupdate fixes

* fix DecodeError crash

Completed: 59.5555555556%
[-] looping: step 135 of 225
Exception in thread search_thread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "example.py", line 575, in main
    pokemonsJSON, ignore, only)
  File "example.py", line 600, in process_step
    profile_response))
  File "example.py", line 399, in get_heartbeat
    m5, )
  File "example.py", line 304, in get_profile
    return retrying_api_req(service, api, access_token, req, useauth=useauth)
  File "example.py", line 190, in retrying_api_req
    **kwargs)
  File "example.py", line 228, in api_req
    p_ret.ParseFromString(r.content)
  File "/usr/lib/python2.7/site-packages/google/protobuf/message.py", line 186, in ParseFromString
    self.MergeFromString(serialized)
  File "/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 844, in MergeFromString
    raise message_mod.DecodeError('Unexpected end-group tag.')
DecodeError: Unexpected end-group tag.

* Fix for scanner drift (fixes PokemonGoF#229 and PokemonGoF#231)

1. Quickfix for scanner slowly drifting away from starting location:
  reset location to original at the end of looping steps

2. Also fix updating to the next location feature:
  don't update repeatedly and allow to change only longitude or latitude

* more autoupdate fixes

* Add 'Get Directions' to label

- Add link to google maps directions
- Move index to right of Pokemon name

* ugly hack to keep google flask AND autorefresh functionality

* Added support for Simplified Chinese(zh_cn) pokemon names.

Based on
https://wiki.52poke.com/wiki/%E5%AE%9D%E5%8F%AF%E6%A2%A6%E5%88%97%E8%A1%A8%EF%BC%88%E6%8C%89%E5%85%A8%E5%9B%BD%E5%9B%BE%E9%89%B4%E7%BC%96%E5%8F%B7%EF%BC%89/%E7%AE%80%E5%8D%95%E7%89%88

* Option description update.

* remove marker if duplicate exists

* Fix "AttributeError: lat and lng required" when using coordinates as location (PokemonGoF#241)

Previously, origin_lat and origin_lon was not set, causing an Attribute error when accessing the webpage.

* Fixed typo

Removed unnecessary braces

* added smaller images

* Fixed mobile scaling (PokemonGoF#240)

* Step fix (PokemonGoF#252)

* fixed the pokestop icon


* rebased the poke stop icon

* fixed display of steps and completion, fixed steplimit logic

* Reformat get_args

* Update flags table

* Add autorefresh flag to README

* Fix multiline string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants