IndexError: list index out of range Error (dont know why) [closed]












-6














Hello this is my first post Im working on a roblox clothing bot, but i keep getting the error IndexError: list index out of range!! Can u guys help me out?



code for login:



class rbx():    
def __init__(self):
self.session = requests.Session()

def roblox_login(self, cookie):
session = requests.Session()
session.cookies[".ROBLOSECURITY"] = cookie


code for uploadshirt:



def start_upload():
"""uploads assets"""
global groupnum
global accountIndex
global uploadcount
global uploadcountlimit
for account in accounts:
username, password = account.split(':')
session = rbx()
if (session.roblox_login(cookie) == True):
sessions.append(session)
else:
print 'Invalid account: {}'.format(username)
while True:









share|improve this question









New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as off-topic by Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ Dec 27 '18 at 18:16


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ

If this question can be reworded to fit the rules in the help center, please edit the question.













  • Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
    – Dan Farrell
    Dec 27 '18 at 18:08






  • 2




    There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
    – Thierry Lathuille
    Dec 27 '18 at 18:08
















-6














Hello this is my first post Im working on a roblox clothing bot, but i keep getting the error IndexError: list index out of range!! Can u guys help me out?



code for login:



class rbx():    
def __init__(self):
self.session = requests.Session()

def roblox_login(self, cookie):
session = requests.Session()
session.cookies[".ROBLOSECURITY"] = cookie


code for uploadshirt:



def start_upload():
"""uploads assets"""
global groupnum
global accountIndex
global uploadcount
global uploadcountlimit
for account in accounts:
username, password = account.split(':')
session = rbx()
if (session.roblox_login(cookie) == True):
sessions.append(session)
else:
print 'Invalid account: {}'.format(username)
while True:









share|improve this question









New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as off-topic by Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ Dec 27 '18 at 18:16


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ

If this question can be reworded to fit the rules in the help center, please edit the question.













  • Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
    – Dan Farrell
    Dec 27 '18 at 18:08






  • 2




    There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
    – Thierry Lathuille
    Dec 27 '18 at 18:08














-6












-6








-6







Hello this is my first post Im working on a roblox clothing bot, but i keep getting the error IndexError: list index out of range!! Can u guys help me out?



code for login:



class rbx():    
def __init__(self):
self.session = requests.Session()

def roblox_login(self, cookie):
session = requests.Session()
session.cookies[".ROBLOSECURITY"] = cookie


code for uploadshirt:



def start_upload():
"""uploads assets"""
global groupnum
global accountIndex
global uploadcount
global uploadcountlimit
for account in accounts:
username, password = account.split(':')
session = rbx()
if (session.roblox_login(cookie) == True):
sessions.append(session)
else:
print 'Invalid account: {}'.format(username)
while True:









share|improve this question









New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Hello this is my first post Im working on a roblox clothing bot, but i keep getting the error IndexError: list index out of range!! Can u guys help me out?



code for login:



class rbx():    
def __init__(self):
self.session = requests.Session()

def roblox_login(self, cookie):
session = requests.Session()
session.cookies[".ROBLOSECURITY"] = cookie


code for uploadshirt:



def start_upload():
"""uploads assets"""
global groupnum
global accountIndex
global uploadcount
global uploadcountlimit
for account in accounts:
username, password = account.split(':')
session = rbx()
if (session.roblox_login(cookie) == True):
sessions.append(session)
else:
print 'Invalid account: {}'.format(username)
while True:






python indexing python-requests






share|improve this question









New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Dec 27 '18 at 18:07









Toby

5,12242146




5,12242146






New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 27 '18 at 18:04









steen steen

1




1




New contributor




steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






steen steen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




closed as off-topic by Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ Dec 27 '18 at 18:16


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ

If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ Dec 27 '18 at 18:16


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Thierry Lathuille, Mark Meyer, pault, Patrick Artner, DYZ

If this question can be reworded to fit the rules in the help center, please edit the question.












  • Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
    – Dan Farrell
    Dec 27 '18 at 18:08






  • 2




    There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
    – Thierry Lathuille
    Dec 27 '18 at 18:08


















  • Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
    – Dan Farrell
    Dec 27 '18 at 18:08






  • 2




    There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
    – Thierry Lathuille
    Dec 27 '18 at 18:08
















Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
– Dan Farrell
Dec 27 '18 at 18:08




Always, always share the full, exact error message and stack trace. Your synopsis cannot be assumed to be accurate.
– Dan Farrell
Dec 27 '18 at 18:08




2




2




There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
– Thierry Lathuille
Dec 27 '18 at 18:08




There is nowhere in the code you show us where you try to access a list, so how could we know? Please include all the relevant code and the complete error traceback in your question. Also, see how to create a Minimal, Complete, and Verifiable example
– Thierry Lathuille
Dec 27 '18 at 18:08












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Mossoró

Error while reading .h5 file using the rhdf5 package in R

Pushsharp Apns notification error: 'InvalidToken'