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

list index out of range #3200

Closed
jlim0930 opened this issue Aug 9, 2016 · 12 comments
Closed

list index out of range #3200

jlim0930 opened this issue Aug 9, 2016 · 12 comments

Comments

@jlim0930
Copy link

jlim0930 commented Aug 9, 2016

was working fine all day then all the sudden started to fail with list index out of range

Actual Behavior

Traceback (most recent call last):
File "pokecli.py", line 521, in
main()
File "pokecli.py", line 95, in main
bot.tick()
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/init.py", line 446, in tick
if worker.work() == WorkerResult.RUNNING:
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/cell_workers/recycle_items.py", line 22, in work
item_count_dict = self.bot.item_inventory_count('all')
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/init.py", line 820, in item_inventory_count
inventory_req = self.get_inventory()
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/init.py", line 781, in get_inventory
self.latest_inventory = self.api.get_inventory()
File "/home/jlim/newbot/XXXXXX/dev/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
return request.call()
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/api_wrapper.py", line 106, in call
result = self._call()
File "/home/jlim/newbot/XXXXXX/dev/pokemongo_bot/api_wrapper.py", line 63, in _call
return PGoApiRequest.call(self)
File "/home/jlim/newbot/XXXXXX/dev/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
File "/home/jlim/newbot/XXXXXX/dev/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
response_dict = self._parse_main_response(response, subrequests)
File "/home/jlim/newbot/XXXXXX/dev/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response
response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)
File "/home/jlim/newbot/XXXXXX/dev/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
request_entry = subrequests_list[i]
IndexError: list index out of range
2016-08-08 23:02:48,605 [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/jlim/newbot/XXXXXX/dev/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/home/jlim/newbot/XXXXXX/dev/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/jlim/newbot/XXXXXX/dev/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-08 23:02:48,606 [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u' File "pokecli.py", line 521, in ', u' File "pokecli.py", line 95, in main', u' File "pokemongo_bot/init.py", line 446, in tick', u' File "pokemongo_bot/cell_workers/recycle_items.py", line 22, in work', u' File "pokemongo_bot/init.py", line 820, in item_inventory_count', u' File "pokemongo_bot/init.py", line 781, in get_inventory', u' File "pgoapi/pgoapi.py", line 122, in function', u' File "pokemongo_bot/api_wrapper.py", line 106, in call', u' File "pokemongo_bot/api_wrapper.py", line 63, in _call', u' File "pgoapi/pgoapi.py", line 220, in call', u' File "pgoapi/rpc_api.py", line 129, in request', u' File "pgoapi/rpc_api.py", line 359, in _parse_main_response', u' File "pgoapi/rpc_api.py", line 376, in _parse_sub_responses']

Steps to Reproduce

Other Information

OS: Ubuntu 14.04.5 LTS
Git Commit: a2b9fe9
Python Version: Python 2.7.6

@thadeubrito
Copy link

thadeubrito commented Aug 9, 2016

is not it fix?
#3193

@Ryurem
Copy link
Contributor

Ryurem commented Aug 9, 2016

How about looking at the other issues,before making a useless repost?

@mywarr
Copy link

mywarr commented Aug 9, 2016

#3193 (comment)

@liampuddles
Copy link

Having same issue as above after completing #3193

Originally
"File "pokecli.py", line 521, in
main()
File "pokecli.py", line 81, in main
bot.start()"

Now
"File "pokecli.py", line 521, in
main()
File "pokecli.py", line 95, in main
bot.tick()"

@shivamkalra
Copy link

Can you try setting health_record and update_map in your config to false?

@liampuddles
Copy link

'Can you try setting health_record and update_map in your config to false?'

I have changed health_record to false but can not find update_map

Sorry if this is the wrong way to reply I am new to this

@shivamkalra
Copy link

@liampuddles So did it fix the problem?

@LeeRongWen
Copy link

@shivamkalra It`s fix from my side....

@liampuddles
Copy link

@shivamkalra this did not fix my issue.

@mywarr
Copy link

mywarr commented Aug 9, 2016

@liampuddles

there is a new config option in config.json
https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/configs/config.json.example

try to add this line

"libencrypt_location": "",

in your config.json just below "gmapkey", for me, it solved the problem.

@LeeRongWen
Copy link

@mywarr i leave that config blank and just put the crypt .ddl file to the root dir and its also working fine...

@liampuddles
Copy link

@mywarr So I just noticed it actually starts and stops after 14 seconds

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

8 participants