Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread MRAB
' s = s.replace("=",":") # s = s.strip() print s d = {} for i in s: key, val = i.split(":") d[key] = val.strip() print d print d["ip address"] Getting below error : key, val = i.split(":") ValueError: need more than

Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Sum J
= s.replace("=",":") > ># s = s.strip() > >print s > > > > d = {} > > for i in s: > > key, val = i.split(":") > > d[key] = val.strip() > > > > print d > > print d["ip address"] >

Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Chris Warrick
> Encryption: AES or TKIP > ''' > >s = s.replace("=",":") ># s = s.strip() >print s > > d = {} > for i in s: > key, val = i.split(":") > d[key] = val.strip() > > print d > print

Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Prahallad Achar
atory: World Safe Authencation: WPA2/PSK Encryption: AES or TKIP ''' s = s.replace("=",":") # s = s.strip() print s d = {} for i in s: key, val = i.split(":") d[key] = val.strip() print d print d["ip addres

Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Sum J
d = {} for i in s: key, val = i.split(":") d[key] = val.strip() print d print d["ip address"] Getting below error : key, val = i.split(":") ValueError: need more than 1 value to unpack -- https://mail.python.org/mailman/listinfo/python-list

ValueError: need more than 1 value to unpack

2007-05-23 Thread laxmikiran . bachu
ValueError: need more than 1 value to unpack . This is the error I get when I am using pyRXPU in the one of the scripts to get the strings from an application. Can anybody throw some light on this ..what might be the solution for this. If I use pyRXP iam not getting the mentioned error. Error