[Tutor] Python Question
Oscar Benjamin
oscar.j.benjamin at gmail.com
Wed Jan 9 02:21:13 CET 2013
On 7 January 2013 23:31, Dylan Kaufman <ketchup.candy at gmail.com> wrote:
> Greetings,
>
> I take Computer Science in school and for a Python program, I have:
>
> from winsound import Beep
>
[SNIP]
>
> When I run it at school it works great, but at home when I try to run it, it
> says:
>
> Traceback (most recent call last):
> File "/Volumes/PICKLES/School/MyClass/Comp. Sci/Chapter 02
> Stuff/program2_cep.py", line 5, in <module>
> from winsound import Beep
> ImportError: No module named 'winsound'
Judging from the path "/Volumes/PICKLES/..." I'd say you're not
running Windows and...
>
> Could you tell why this is happening and how I can make my program work?
winsound only works on Windows (it quietly says "Platforms: Windows"
at the top of this page):
http://docs.python.org/2/library/winsound.html
Oscar
More information about the Tutor
mailing list