Pastebin

Paste #1583: python

< previous paste - next paste>

Pasted by tdn

Download View as text

    def log(self, msg):
        self.print_note(msg)

    def system(self, cmd):
        retval, stdout, stderr = spye.proc_capture(cmd)
        if not retval:
            return "\n".join(stdout)
        else:
            return "\n".join(stderr)

    self.log("Running processes: %s" % self.system(["ps", "faux"]))

--
[E] Got exception of type TypeError: [not enough arguments for format string] while running command ['tdn', 'laptop-tracker', 'check']
    Function              Line  File
    request_execute         53  /home/tdn/wc/software/spye/spye-python/spye/frontend/console.py
    meta_check              39  /home/tdn/.spye/plugins/tdn/laptop-tracker/__init__.py
    log                     61  /home/tdn/.spye/plugins/tdn/laptop-tracker/__init__.py
    print_note             345  /home/tdn/wc/software/spye/spye-python/spye/baseplugin.py
    print_output           324  /home/tdn/wc/software/spye/spye-python/spye/baseplugin.py
    output_log              83  /home/tdn/wc/software/spye/spye-python/spye/output/console.py
    Function              Line  Function             Code
    console.py              53  request_execute      spye.drv_presentation.present(func(*arg, **kwarg))
    __init__.py             39  meta_check           self.log("Running processes: %s" % self.system(["ps", "faux"]))
    __init__.py             61  log                  self.print_note(msg)
    baseplugin.py          345  print_note           return self.print_output(0, msg, *fmt)
    baseplugin.py          324  print_output         spye.drv_output.output_log(sev, self.debug_get_position(), msg, *fmt)
    console.py              83  output_log           msg % spye.utf8_encode_list(fmt, (int, float, str))))
[E] Exception information:
    >> not enough arguments for format string

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.