When I try to use this command
appuifw.note(u"Connecting to %s" % (address), "conf");
I’m getting error: “not all arguments converted during string formatting”
How to fix this error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The error you mentioned arise in cases like
It means I have 2 values to replace
('foo', 'bar')but only providedoneplace holder(%s).To correct it
There is also a another way to achieve this using str.format().