I tried to import in my code library wave (istalled by pip) like this:
import wave
And next what I used in my program is
raw = wave.open('file.wav', 'rb')
After run my program in console I had this wierd problem:
AttributeError: 'module' object has no attribute 'open'
What is the problem?
You probably have a local file named wave.py that is being imported instead.
Check with:
import wave
print wave.__file__
and rename or delete that file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With