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

problem when starting bot #5322

Closed
rut78HR opened this issue Sep 9, 2016 · 6 comments
Closed

problem when starting bot #5322

rut78HR opened this issue Sep 9, 2016 · 6 comments

Comments

@rut78HR
Copy link

rut78HR commented Sep 9, 2016

Yesterday in a hurry i precc CTRL+C and after that can no longer run bot. I try to make new fresh install with master and dev pull but same problem

./run.sh
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
2016-09-09 10:25:25,871 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-09 10:25:25,878 [ cli] [INFO] commit: unknown
2016-09-09 10:25:25,881 [ cli] [INFO] Configuration initialized
2016-09-09 10:25:25,881 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-09 10:25:25,881 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-09 10:25:25,887 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
(3696) wsgi starting up on http://127.0.0.1:4000
2016-09-09 10:25:26,013 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): 127.0.0.1
[2016-09-09 10:25:26] [SleepSchedule] [INFO] Next sleep at 11:32:36, for a duration of 05:01:14
[2016-09-09 10:25:26] [PokemonGoBot] [INFO] Setting start location.
[2016-09-09 10:25:26] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[2016-09-09 10:25:26] [PokemonGoBot] [INFO] Location found: -34.605626,-56.1686889 (-34.605626, -56.1686889, 8.0)
[2016-09-09 10:25:26] [PokemonGoBot] [INFO] Now at (-34.605626, -56.1686889, 8.0)
[2016-09-09 10:25:26] [PokemonGoBot] [INFO] Login procedure started.
[2016-09-09 10:25:28] [PokemonGoBot] [INFO] Login successful.
[2016-09-09 10:25:28] [PokemonGoBot] [INFO] Found encrypt.so! Platform: freebsd12 encrypt.so directory: /root/PokemonGo-Bot-dev
[2016-09-09 10:25:28] [PokemonGoBot] [INFO]
[2016-09-09 10:25:28] [PokemonGoBot] [INFO] [x] Error while opening cached forts: [Errno 2] No such file or directory: u'/root/PokemonGo-Bot-dev/pokemongo_bot/../data/[email protected]'
_inventory was not initialized
_inventory was not initialized
[2016-09-09 10:25:30] [ cli] [INFO]
[2016-09-09 10:25:30] [ cli] [INFO] Ran for 0:00:04
[2016-09-09 10:25:30] [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
[2016-09-09 10:25:30] [ cli] [INFO] Travelled 0.00km
[2016-09-09 10:25:30] [ cli] [INFO] Visited 0 stops
[2016-09-09 10:25:30] [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()
[2016-09-09 10:25:30] [ cli] [INFO] Threw 0 pokeballs
[2016-09-09 10:25:30] [ cli] [INFO] Earned 0 Stardust
[2016-09-09 10:25:30] [ cli] [INFO] Hatched eggs 0
[2016-09-09 10:25:30] [ cli] [INFO]
[2016-09-09 10:25:30] [ cli] [INFO] Highest CP Pokemon:
[2016-09-09 10:25:30] [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 805, in
main()
File "pokecli.py", line 153, in main
bot = start_bot(bot, config)
File "pokecli.py", line 110, in start_bot
bot.start()
File "/root/PokemonGo-Bot-dev/pokemongo_bot/init.py", line 139, in start
init_inventory(self)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 1333, in init_inventory
_inventory = Inventory(bot)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 1180, in init
self.refresh()
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 1190, in refresh
i.refresh(inventory)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 75, in refresh
self._data = self.retrieve_data(inventory)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 71, in retrieve_data
ret[key] = self.parse(item)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 406, in parse
return Pokemon(item)
File "/root/PokemonGo-Bot-dev/pokemongo_bot/inventory.py", line 912, in init
assert max(int(self.cp_exact), 10) == self.cp
AssertionError
[2016-09-09 10:25:30] [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-dev/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/root/PokemonGo-Bot-dev/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/root/PokemonGo-Bot-dev/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/local/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
[2016-09-09 10:25:30] [sentry.errors.uncaught] [ERROR] [u'AssertionError', u' File "pokecli.py", line 805, in ', u' File "pokecli.py", line 153, in main', u' File "pokecli.py", line 110, in start_bot', u' File "pokemongo_bot/init.py", line 139, in start', u' File "pokemongo_bot/inventory.py", line 1333, in init_inventory', u' File "pokemongo_bot/inventory.py", line 1180, in init', u' File "pokemongo_bot/inventory.py", line 1190, in refresh', u' File "pokemongo_bot/inventory.py", line 75, in refresh', u' File "pokemongo_bot/inventory.py", line 71, in retrieve_data', u' File "pokemongo_bot/inventory.py", line 406, in parse', u' File "pokemongo_bot/inventory.py", line 912, in init']
Fri Sep 9 10:25:30 CEST 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@db-coder
Copy link

db-coder commented Sep 9, 2016

same here:

[2016-09-09 15:46:41] Login successful.
_inventory was not initialized
[2016-09-09 15:46:41] Found encrypt.so! Platform: linux2 encrypt.so directory: /home/dibyendu/PokemonGo/PokemonGo-Bot-Dev/PokemonGo-Bot
[2016-09-09 15:46:41] 
_inventory was not initialized

@rut78HR
Copy link
Author

rut78HR commented Sep 9, 2016

nobody else have this problem ??
I try with new gmail account and evrithing is OK with bot . Necrobot works with both accounts.

@LazGit
Copy link

LazGit commented Sep 9, 2016

I have the same problem
[2016-09-09 21:53:12] Login successful.
_inventory was not initialized

@rut78HR
Copy link
Author

rut78HR commented Sep 10, 2016

Hmm . nobody of developer can check this why inventory can be fetch .. corrupt or something else ?

Same on linux (ubuntu 14.04)

root@ubuntu:~/PokemonGo-Bot# ./run.sh
2016-09-10 13:58:04,818 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-10 13:58:04,834 [ cli] [INFO] commit: f02ce43
2016-09-10 13:58:04,839 [ cli] [INFO] Configuration initialized
2016-09-10 13:58:04,840 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-10 13:58:04,841 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-10 13:58:04,845 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
(13355) wsgi starting up on http://127.0.0.1:4000
[2016-09-10 13:58:04] [SleepSchedule] [INFO] Next sleep at 17:43:23, for a duration of 03:01:25
[2016-09-10 13:58:04] [PokemonGoBot] [INFO] Setting start location.
[2016-09-10 13:58:04] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[2016-09-10 13:58:04] [PokemonGoBot] [INFO] Location found: 45.5461081,18.7105759 (45.5461081, 18.7105759, 8.0)
[2016-09-10 13:58:04] [PokemonGoBot] [INFO] Now at (45.5461081, 18.7105759, 8.0)
[2016-09-10 13:58:04] [PokemonGoBot] [INFO] Login procedure started.
[2016-09-10 13:58:06] [PokemonGoBot] [INFO] Login successful.
[2016-09-10 13:58:06] [PokemonGoBot] [INFO] Found encrypt.so! Platform: linux2 encrypt.so directory: /home/rut/PokemonGo-Bot
[2016-09-10 13:58:06] [PokemonGoBot] [INFO]
[2016-09-10 13:58:08] [PokemonGoBot] [INFO] [x] Error while opening cached forts: [Errno 2] No such file or directory: u'/home/rut/PokemonGo-Bot/pokemongo_bot/../data/[email protected]'
_inventory was not initialized
_inventory was not initialized
[2016-09-10 13:58:08] [ cli] [INFO]
[2016-09-10 13:58:08] [ cli] [INFO] Ran for 0:00:04
[2016-09-10 13:58:08] [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
[2016-09-10 13:58:08] [ cli] [INFO] Travelled 0.00km
[2016-09-10 13:58:08] [ cli] [INFO] Visited 0 stops
[2016-09-10 13:58:08] [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()
[2016-09-10 13:58:08] [ cli] [INFO] Threw 0 pokeballs
[2016-09-10 13:58:08] [ cli] [INFO] Earned 0 Stardust
[2016-09-10 13:58:08] [ cli] [INFO] Hatched eggs 0
[2016-09-10 13:58:08] [ cli] [INFO]
[2016-09-10 13:58:08] [ cli] [INFO] Highest CP Pokemon:
[2016-09-10 13:58:08] [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 841, in
main()
File "pokecli.py", line 189, in main
bot = start_bot(bot, config)
File "pokecli.py", line 144, in start_bot
bot.start()
File "/home/rut/PokemonGo-Bot/pokemongo_bot/init.py", line 142, in start
init_inventory(self)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1333, in init_inventory
_inventory = Inventory(bot)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1180, in init
self.refresh()
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1190, in refresh
i.refresh(inventory)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 75, in refresh
self._data = self.retrieve_data(inventory)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 71, in retrieve_data
ret[key] = self.parse(item)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 406, in parse
return Pokemon(item)
File "/home/rut/PokemonGo-Bot/pokemongo_bot/inventory.py", line 912, in init
assert max(int(self.cp_exact), 10) == self.cp
AssertionError
[2016-09-10 13:58:08] [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 "/home/rut/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/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/home/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/home/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/home/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/rut/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/home/rut/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 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
[2016-09-10 13:58:08] [sentry.errors.uncaught] [ERROR] [u'AssertionError', u' File "pokecli.py", line 841, in ', u' File "pokecli.py", line 189, in main', u' File "pokecli.py", line 144, in start_bot', u' File "pokemongo_bot/init.py", line 142, in start', u' File "pokemongo_bot/inventory.py", line 1333, in init_inventory', u' File "pokemongo_bot/inventory.py", line 1180, in init', u' File "pokemongo_bot/inventory.py", line 1190, in refresh', u' File "pokemongo_bot/inventory.py", line 75, in refresh', u' File "pokemongo_bot/inventory.py", line 71, in retrieve_data', u' File "pokemongo_bot/inventory.py", line 406, in parse', u' File "pokemongo_bot/inventory.py", line 912, in init']
Sat Sep 10 13:58:08 CEST 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@rut78HR
Copy link
Author

rut78HR commented Sep 12, 2016

commit cb9ebb3 in dev branch fix my problems

@Gobberwart
Copy link
Contributor

OP says fixed now. closing.

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

4 participants