Skip to content

Error while importing torchaudio #25

Closed

Description

@saisrinivas047

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

  1. crazyoscarchang commented on Jan 23, 2018

    @crazyoscarchang

    I get the same error too!

  2. srinivas047 commented on Jan 23, 2018

    @srinivas047

    I got it fixed by reinstalling both anaconda and torchaudio

  3. soumith commented on Jan 23, 2018

    @soumith
    Contributor

    fixed via #27

  4. crazyoscarchang commented on Jan 23, 2018

    @crazyoscarchang

    wait did you just fix it?

    (i don't use anaconda)

  5. crazyoscarchang commented on Jan 23, 2018

    @crazyoscarchang

    Ah cool it works for me now thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions