Not enough arguments for format string

johnnie pittman johnnie.pittman at gmail.com
Mon Nov 14 12:19:19 EST 2005


Hey Kevin,

I think I see your issue. So from
http://docs.python.org/lib/typesseq-strings.html:

If format requires a single argument, values may be a single non-tuple
object. <http://docs.python.org/lib/typesseq-strings.html#foot2430>Otherwise,
values must be a tuple with exactly the number of items specified by the
format string, or a single mapping object (for example, a dictionary).

On 11/14/05, Kevin Walzer <sw at wordtech-software.com> wrote:

> os.system('open -a X11.app; cd ~/; printenv; DISPLAY=:0.0; export
> DISPLAY; echo %s | sudo -S %s; sudo -k' %password %binpath)
>
>
>
So the line above should be:

os.system('open -a X11.app; cd ~/; printenv; DISPLAY=:0.0; export
DISPLAY; echo %s | sudo -S %s; sudo -k' % (password binpath))

try that.

johnnie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051114/52025aae/attachment.html>


More information about the Python-list mailing list