X Errors on the command line

I am writing a wxPython app that will initially be called from the
command-line using flags etc. When I start an app (any wxgtk/py app) it
usually spits out X errors like:
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

Is there some way to suppress these so they don't appear?

(I don't want to call my python scripts from bash scripts so one can do
2>/dev/null type things.)

D.

Any ideas?
D.

You are using KDE, right? Perhaps on Kubuntu? I've run into the same
problem with Kubuntu 6.06, and haven't found a way of getting rid of it.
It doesn't seem to crash the application, but it is indeed annoying.

- Josiah

···

Donn Ingle <donn.ingle@gmail.com> wrote:

I am writing a wxPython app that will initially be called from the
command-line using flags etc. When I start an app (any wxgtk/py app) it
usually spits out X errors like:
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

Is there some way to suppress these so they don't appear?

(I don't want to call my python scripts from bash scripts so one can do
2>/dev/null type things.)

Donn Ingle wrote:

I am writing a wxPython app that will initially be called from the
command-line using flags etc. When I start an app (any wxgtk/py app) it
usually spits out X errors like:
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 147
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

They are coming from the X lib. Does starting other X apps from a command line result in the same messages? Have you checked your X configuration to see if it specifies some device that doesn't exist on your system?

Is there some way to suppress these so they don't appear?

Not from wxPython.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Not from wxPython.

Yes - thanks Robin. I see now that it's a general thing on my Kubuntu. I
will fish around. All apologies !

D.