Re: [Pythonmac-SIG] Amateur question about modules

2010-11-05 Thread Russell E. Owen
In article <4cd2e712.9080...@noaa.gov>,
 Christopher Barker  wrote:

> On 11/3/10 3:30 PM, Kevin Walzer wrote:
> >> So, how can I correctly import this module?
> >> And where should I put it, so Python can find it.
> 
> > TkSnack is a Tkinter wrapper for the Snack sound library. You'll need to
> > install TkSnack in your site-packages path and Snack in a place where
> > Tkinter can find it like /Library/Tcl. Google can direct you to download
> > sites.
> 
> Chances are, TkSnack will come as an egg which you can easy_install, or 
> a with a setup.py that will isntall it to the right place for you:
> 
> python setup.py install
> 
> Just make sure "python" runs the python you think it does.
> 
> -Chris

Yes.

The snack source package does include a python subdirectory with the 
necessary trivial setup.py file (which I contributed). All it does is 
copy the one file tkSnack.py to site-packages; you can do that manually 
if you prefer.

Regards,

-- Russell

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Amateur question about modules

2010-11-04 Thread Christopher Barker

On 11/3/10 3:30 PM, Kevin Walzer wrote:

So, how can I correctly import this module?
And where should I put it, so Python can find it.



TkSnack is a Tkinter wrapper for the Snack sound library. You'll need to
install TkSnack in your site-packages path and Snack in a place where
Tkinter can find it like /Library/Tcl. Google can direct you to download
sites.


Chances are, TkSnack will come as an egg which you can easy_install, or 
a with a setup.py that will isntall it to the right place for you:


python setup.py install

Just make sure "python" runs the python you think it does.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Amateur question about modules

2010-11-04 Thread Russell E. Owen
In article <4cd1e274.9000...@codebykevin.com>,
 Kevin Walzer  wrote:

> On 11/3/10 4:32 PM, Pedro Gazzola wrote:
> > "ImportError: No module named tkSnack"
> >
> > I tried to run one script on the Python Launcher and got this import error.
> >
> > So, how can I correctly import this module?
> > And where should I put it, so Python can find it.
> >
> > Thanks for any help.
> 
> 
> TkSnack is a Tkinter wrapper for the Snack sound library. You'll need to 
> install TkSnack in your site-packages path and Snack in a place where 
> Tkinter can find it like /Library/Tcl. Google can direct you to download 
> sites.

Also be warned: the snack sound library is very outdated. I suggest you 
look at pygame instead; it has a binary installer and will play sounds.

-- Russell

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Amateur question about modules

2010-11-03 Thread Kevin Walzer

On 11/3/10 4:32 PM, Pedro Gazzola wrote:

"ImportError: No module named tkSnack"

I tried to run one script on the Python Launcher and got this import error.

So, how can I correctly import this module?
And where should I put it, so Python can find it.

Thanks for any help.



TkSnack is a Tkinter wrapper for the Snack sound library. You'll need to 
install TkSnack in your site-packages path and Snack in a place where 
Tkinter can find it like /Library/Tcl. Google can direct you to download 
sites.


--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Amateur question about modules

2010-11-03 Thread Pedro Gazzola
"ImportError: No module named tkSnack"

I tried to run one script on the Python Launcher and got this import error.

So, how can I correctly import this module?
And where should I put it, so Python can find it.

Thanks for any help.
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG