Re: Type error: not enough arguments for format string

2018-09-20 Thread Anssi Saari
Cameron Simpson writes: > On 19Sep2018 09:12, synch1...@gmail.com wrote: >>I'm just trying to follow along with the logging tutorial documentation and I >>am getting this error: >> >>import logging >> >>logging.basicConfig(format= '%(asctime)s % (message)s', datefmt='%m%d%Y >>%I:%M:%S %p') > >

Re: Type error: not enough arguments for format string

2018-09-19 Thread Cameron Simpson
On 19Sep2018 09:12, synch1...@gmail.com wrote: I'm just trying to follow along with the logging tutorial documentation and I am getting this error: import logging logging.basicConfig(format= '%(asctime)s % (message)s', datefmt='%m%d%Y %I:%M:%S %p') Probably this: -

RE: [SPAM] Type error: not enough arguments for format string

2018-09-19 Thread David Raymond
, September 19, 2018 12:12 PM To: python-list@python.org Subject: [SPAM] Type error: not enough arguments for format string Importance: Low I'm just trying to follow along with the logging tutorial documentation and I am getting this error: import logging logging.basicConfig(format= '%

Type error: not enough arguments for format string

2018-09-19 Thread synch1216
File "C:\Users\Malcy\AppData\Local\Continuum\anaconda2\Lib\logging\__init__.py", line 734, in format return fmt.format(record) File "C:\Users\Malcy\AppData\Local\Continuum\anaconda2\Lib\logging\__init__.py", line 469, in format s = self._fmt % record.__dict__ TypeError:

Re: Not enough arguments for format string

2005-11-14 Thread Pierre Barbier de Reuille
Kevin Walzer a écrit : > I'm getting an error in a Python script I'm writing: "not enough > arguments for format string." The error comes at the end of the > os.system command, referenced below. Any ideas? > > --- > > import EasyDialogs

Re: Not enough arguments for format string

2005-11-14 Thread James
Missing a comma there :) On 14/11/05, johnnie pittman <[EMAIL PROTECTED]> wrote: > 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. os.system('open -a X11.app; cd

Re: Not enough arguments for format string

2005-11-14 Thread johnnie pittman
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. Otherwise, values must be a tuple with exactly the number of items specified by the format string, or a single mapping

Not enough arguments for format string

2005-11-14 Thread Kevin Walzer
I'm getting an error in a Python script I'm writing: "not enough arguments for format string." The error comes at the end of the os.system command, referenced below. Any ideas? --- import EasyDialogs import os import sys password = EasyDialogs.AskPassword("To laun