-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CANT RUN BOT errors pokecli.py and others #3106
Comments
Have you set your config.json with location? |
2016-08-08 12:21:03,371 [sentry.errors.uncaught] [ERROR] u'NoPlayerPositionSetException |
{
} |
what does it mean?? |
@ponytails check you api or location setting, it seem the bot can't set the location properly. |
what u used on this ? |
@ponytails im using Maps JavaScript API |
what type of key ? server / ios / android / browser? |
browser |
check the json file using jsonlint |
@hklcf i run pokemon bot on linux ubuntu and what should i type on this "libencrypt_location": "", |
@ponytails just leave it blank |
(PokemonGo-Bot) root@oldtimes: |
validate your config.json please |
@hklcf yes its valid |
Example Installation for Ubuntu |
it works now but im getting invalid user/pass from google PokemonGo-Bot) root@oldtimes:~/PokemonGo-Bot# ./run.sh configs/config.json |
where will i put this ? -p "" on configs/config.json? |
@ponytails simply replace your password with the app password in the config.json file |
thanks |
Location is usually in the format there should be locations shown in some of the example config files. |
Edited :D |
* Remove unused scannedLabel() function * Remove pogom/pgoapi if empty at startup * use pgoapi from requirements.txt instead of copying its files * gitignore src/ * Fixups for using mainline pgoapi * Update pgoapi to latest HEAD * Use get_pos_by_name from pgoapi * Update search api for new pgoapi * Removing cell ID's, this functionality is provided in pgoapi * Update search for the new pgoapi (again) * making sure we change with step location, rather than starting position * silenced logging * Increase scan reliability (PokemonGoF#3262) - Handle exceptions better - Prevent search_workers from even fully exiting - High-load backoff is now backoff based instead of randomly assigned absolute - Logins will retry `login-retries` times before throwing an exception to cause the search_worker to create a new PgoAPI instance and start over * Update pgoapi * Show a big scary warning if user hasn't updated * Use standard logging for this and for the check of the old pogom/pgoapi * Automatically remove pogom/pgoapi, regardless if its empty or not. Its not going to be useful anymore and will cause problems.
Expected Behavior
start bot
Actual Behavior
(PokemonGo-Bot) root@oldtimes:
/PokemonGo-Bot# ./run.sh/PokemonGo-Bot#2016-08-08 12:21:03,129 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-08 12:21:03,132 [ cli] [INFO] Configuration initialized
2016-08-08 12:21:03,132 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-08 12:21:03,132 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-08 12:21:03,136 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-08 12:21:03,232 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
Traceback (most recent call last):
File "pokecli.py", line 503, in
main()
File "pokecli.py", line 131, in main
report_summary(bot)
File "pokecli.py", line 140, in report_summary
metrics.capture_stats()
File "/root/PokemonGo-Bot/pokemongo_bot/metrics.py", line 76, in capture_stats
response_dict = request.call()
File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 90, in call
if not self.can_call():
File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 54, in can_call
raise NoPlayerPositionSetException()
pgoapi.exceptions.NoPlayerPositionSetException
2016-08-08 12:21:03,369 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1048, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1088, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1044, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 886, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-08 12:21:03,371 [sentry.errors.uncaught] [ERROR] u'NoPlayerPositionSetException', u' File "pokecli.py", line 503, in ', u' File "pokecli.py", line 131, in main', u' File "pokecli.py", line 140, in report_summary', u' File "pokemongo_bot/metrics.py", line 76, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 90, in call', u' File "pokemongo_bot/api_wrapper.py", line 54, in can_call' root@oldtimes:
Steps to Reproduce
./run.sh
normal use
Other Information
OS: Ubuntu 15.04 (GNU/Linux 3.19.0-49-generic x86_64)
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
ff380cd
Python Version: (run 'python -V' and paste it here)
Python 2.7.9
The text was updated successfully, but these errors were encountered: