[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Zachary Ware
Zachary Ware added the comment: Glad I could guide you to a solution :) -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Ganning Liu
Ganning Liu added the comment: Thanks Zachary, it's not a bug! -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Zachary Ware
Zachary Ware added the comment: This looks very like a case of shadowing a standard library module. Just before your call to Beep(), try "print(winsound.__file__)". If it's not "C:\SomePathToPython\DLLs\winsound.pyd" (with an appropriate real path in place of "SomePathToPython"), it's the pa

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Ganning Liu
New submission from Ganning Liu: Cannot using winsound.Beep() in .py file (run as module), get error information like: Traceback (most recent call last): File "C:\Users\liuga\Desktop\sound.py", line 2, in winsound.Beep(230,200) AttributeError: module 'winsound' has no attribute 'Beep' A