Mike Rooney wrote:
Hello,
In my wxPython application, I get a strange warning message in Ubuntu 8.04.1 (wxPython 2.8.7.1):
** (python:6772): WARNING **: Can't create printer "PDF" because the id "PDF" is already used
(python:6772): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF could not be created
(python:6772): GnomePrintCupsPlugin-WARNING **: The data for the CUPS printer PDF could not be loaded.This occurs when the application starts up. I am not attempting to use any sort of printing library, although it seems to only happen when using wx.lib.plot.py.
I expect it is because PlotCanvas creates some print data and other printing related objects, and so that is when wx initializes it's printing framework. On wxGTK that means the GnomePrint library which in turn uses the CUPS printing system, and that is where those messages are coming from. Most likely it's harmless, other than the noise.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!