Skip to main content

Thread: Python and Snack - works in interpreter, not in script. Bizzarre.


install python-snack repositories (available in lucid), , give quick tutorial whirl: http://www.speech.kth.se/snack/man/s...ython-man.html

if example script entered python interpreter, when enter mysound.play() statement, python plays requested file.

however, if enter code python script, name .py extension, add executable bit on file , run #!/usr/bin/env python shbang @ top, runs , exits cleanly.

if alter code make break (non-existent filename, mis-spelled function call), break - means there's nothing wrong python's ability execute script.

bizarre, though. thoughts?

how providing test code?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Python and Snack - works in interpreter, not in script. Bizzarre.


Ubuntu

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO