By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,395 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,395 IT Pros & Developers. It's quick & easy.

fedora tkSnack error - "snack::setUseOldObjAPI"

P: 3
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:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/env python
  2.  
  3. from Tkinter import *
  4. root = Tk()
  5.  
  6. import tkSnack
  7. tkSnack.initializeSnack(root)
  8.  
  9. mysnd = tkSnack.Sound()
  10.  
  11. mysnd.read('/home/dauser/Desktop/test.wav')
  12.  
  13. mysnd.play()
  14.  
The following error is produced when the script is run through IDLE:

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

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.
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies

P: 3
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.
Apr 21 '07 #2

P: 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.
Apr 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.