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')
>
>
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: -
, 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= '%
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:
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
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
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
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