fedora tkSnack error - "snack::setUseOldObjAPI"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dunderhead
    New Member
    • Nov 2005
    • 3

    fedora tkSnack error - "snack::setUseOldObjAPI"

    Hello,

    I would like to use tkSnack through python to manipulate sounds on my fedora 4 system, but I am unable to get the following basic script to run:

    Code:
    #!/usr/bin/env python
    
    from Tkinter import *
    root = Tk()
    
    import tkSnack
    tkSnack.initializeSnack(root)
    
    mysnd = tkSnack.Sound()
    
    mysnd.read('/home/dauser/Desktop/test.wav')
    
    mysnd.play()
    The following error is produced when the script is run through IDLE:

    File "/home/dauser/Desktop/testsnack.py", line 7, in -toplevel-
    tkSnack.initial izeSnack(root)
    File "/usr/lib/python2.4/site-packages/tkSnack.py", line 23, in initializeSnack
    Tkroot.tk.call( 'snack::setUseO ldObjAPI')
    TclError: invalid command name "snack::setUseO ldObjAPI"

    The same error occurs when I try to run any of the snack demo python scripts in the 'demos' folder.

    I installed snack using the snack2.2.9.tar. gz tarball.

    Any help will be appreciated. Thanks.
    Last edited by dunderhead; Nov 16 '05, 04:49 AM.
  • elgreg
    New Member
    • Apr 2007
    • 3

    #2
    Did you ever get this solved? I'm having the same error on Mac OS X and just trying to figure out if I screwed up the installation somewhere.

    Comment

    • elgreg
      New Member
      • Apr 2007
      • 3

      #3
      FYI - I think I solved this by downloading Active TCL and installing it (I also downloaded Active Python at the same time, but I think the real solution was getting all the TCL libraries on my machine). Again, I was on a Mac Book Pro running OS X 10.4.1 or so.

      Comment

      Working...