[Pythonmac-SIG] Help running Piddle in Interpreter on a Mac

Louis M. Pecora pecora@anvil.nrl.navy.mil
Thu, 4 Apr 2002 11:17:32 -0500


Whenever I try to use Piddle plotting in the Python Interpreter I get the following message:

Traceback (most recent call last):
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddletest.py", line 398, in ?
    mainLoop()
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddletest.py", line 392, in mainLoop()
    runtest(backends[backend], tests[test])
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddletest.py", line 329, in runtest
    canvas = testfunc(canvasClass)
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddletest.py", line 20, in minimal
    canvas = canvasClass(pagesizes.A6, "testA")  # A6 is a quarter page
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddle:piddleQD.py", line 166, in __init__
    self._window = _QDCanvasWindow(self, size, name)
  File "Drive:Applications:Python 2.2:Lib:site-packages:piddle:piddleQD.py", line 91, in __init__
    W.Window.__init__(self, size, title)
  File "Drive:Applications:Python 2.2:Mac:Tools:IDE:Wwindows.py", line 19, in __init__
    fontsettings = W.getdefaultfont()
  File "Drive:Applications:Python 2.2:Mac:Tools:IDE:W.py", line 28, in getdefaultfont
    prefs = getapplication().getprefs()
  File "Drive:Applications:Python 2.2:Mac:Tools:IDE:W.py", line 24, in getapplication
    raise WidgetsError, 'W not properly initialized: unknown Application'
Wbase.WidgetsError: W not properly initialized: unknown Application
Exception exceptions.AttributeError: "QDCanvas instance has no attribute 'picture'" in <bound method QDCanvas.__del__ of <piddleQD.QDCanvas instance at 0x12483a30>> ignored



"Drive" is my HD name and Python is kept in the "Applications" folder.  This problem happens even with the original piddletest.py module which works ok until attempting to open a plot window -- meaning I don't get far.  Then I get the above msg.  

I am running Python 2.2 on a Macintosh G4, system 9.1.  Same problem on my G3 and PB.

Anyone have success in getting Piddle to work with the Interpreter on a Mac?  Any help appreciated.

-- 

Cheers,

Lou Pecora