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 File "pokecli.py", line 41, in <module> #3757

Closed
Lars-ts opened this issue Aug 12, 2016 · 4 comments
Closed

ERROR File "pokecli.py", line 41, in <module> #3757

Lars-ts opened this issue Aug 12, 2016 · 4 comments

Comments

@Lars-ts
Copy link

Lars-ts commented Aug 12, 2016

(PokemonGo-Bot) sh-3.2# ./run.sh
Traceback (most recent call last):
File "pokecli.py", line 41, in
from pokemongo_bot import PokemonGoBot, TreeConfigBuilder
File "/Users/lars/PokemonGo-Bot/pokemongo_bot/init.py", line 309
<<<<<<< HEAD
^
SyntaxError: invalid syntax
Fri Aug 12 18:44:13 CEST 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

I get this whenever I do ./run.sh
whats wrong?

@Biromain
Copy link

Merge conflict? Simple way is backup configs, delete all and clone again.

@Lars-ts
Copy link
Author

Lars-ts commented Aug 12, 2016

I deleted all, and reinstalled.
now I get this error
`2016-08-12 19:55:56,321 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-12 19:55:56,434 [ cli] [INFO] Configuration initialized
2016-08-12 19:55:56,434 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-12 19:55:56,434 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-12 19:55:56,829 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com

[19:55:57] Setting start location.Traceback (most recent call last):
File "pokecli.py", line 514, in
main()
File "pokecli.py", line 138, in main
report_summary(bot)
File "pokecli.py", line 147, in report_summary
metrics.capture_stats()
File "/Users/lars/PokemonGo-Bot/pokemongo_bot/metrics.py", line 84, in capture_stats
response_dict = request.call()
File "/Users/lars/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 90, in call
if not self.can_call():
File "/Users/lars/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 54, in can_call
raise NoPlayerPositionSetException()
pgoapi.exceptions.NoPlayerPositionSetException
2016-08-12 19:55:57,325 [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 "/Library/Python/2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/Library/Python/2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/Library/Python/2.7/site-packages/raven/utils/http.py", line 44, in urlopen
class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
2016-08-12 19:55:57,326 [sentry.errors.uncaught] [ERROR] [u'NoPlayerPositionSetException', u' File "pokecli.py", line 514, in ', u' File "pokecli.py", line 138, in main', u' File "pokecli.py", line 147, in report_summary', u' File "pokemongo_bot/metrics.py", line 84, 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']`

@leadboots5
Copy link
Contributor

try "health_record": false in your config.

@k4n30
Copy link
Contributor

k4n30 commented Aug 13, 2016

#3679

@k4n30 k4n30 closed this as completed Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants