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

Error after starting Bot #2870

Closed
pjakubek opened this issue Aug 7, 2016 · 3 comments
Closed

Error after starting Bot #2870

pjakubek opened this issue Aug 7, 2016 · 3 comments

Comments

@pjakubek
Copy link

pjakubek commented Aug 7, 2016

I edited the config and added the encrypt.so to the main folder, but when I run the bot with "./run.sh" after logging in the bot crashes.
Traceback (most recent call last): File "pokecli.py", line 493, in <module> main() File "pokecli.py", line 127, in main report_summary(bot) File "pokecli.py", line 139, in report_summary logger.info('Total XP Earned: {} Average: {:.2f}/h'.format(metrics.xp_earned(), metrics.xp_per_hour())) File "/home/pjakubek/Documents/Projects/PokemonGo-Bot/pokemongo_bot/metrics.py", line 28, in xp_earned return self.xp['latest'] - self.xp['start'] TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType' 2016-08-07 19:12:04,324 [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/) Traceback (most recent call last): File "/home/pjakubek/Documents/Projects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "/home/pjakubek/Documents/Projects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send ca_certs=self.ca_certs, File "/home/pjakubek/Documents/Projects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 44, in urlopen class ValidHTTPSHandler(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' 2016-08-07 19:12:04,324 [sentry.errors.uncaught] [ERROR] [u"TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'", u' File "pokecli.py", line 493, in <module>', u' File "pokecli.py", line 127, in main', u' File "pokecli.py", line 139, in report_summary', u' File "pokemongo_bot/metrics.py", line 28, in xp_earned']

Other Information

OS: elementary OS Freya
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: 2.7.6

@PraeceptorXS
Copy link

Did you check to see if the config.json was valid?

@pjakubek
Copy link
Author

pjakubek commented Aug 7, 2016

yep, config.json is valid

@pjakubek pjakubek closed this as completed Aug 7, 2016
@CyberMew
Copy link

Probably related to #2596

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

3 participants