You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I am getting this error while importing torchaudio. can someone please help me solve this.
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import torchaudio
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-x86_64/egg/torchaudio/init.py", line 11, in
from torchaudio import transforms
File "build/bdist.linux-x86_64/egg/torchaudio/transforms.py", line 152, in
class SPECTROGRAM(object):
File "build/bdist.linux-x86_64/egg/torchaudio/transforms.py", line 166, in SPECTROGRAM
pad=0, window=torch.hann_window, wkwargs=None):
AttributeError: 'module' object has no attribute 'hann_window'
Activity
crazyoscarchang commentedon Jan 23, 2018
I get the same error too!
srinivas047 commentedon Jan 23, 2018
I got it fixed by reinstalling both anaconda and torchaudio
soumith commentedon Jan 23, 2018
fixed via #27
crazyoscarchang commentedon Jan 23, 2018
wait did you just fix it?
(i don't use anaconda)
crazyoscarchang commentedon Jan 23, 2018
Ah cool it works for me now thank you!