pase icon indicating copy to clipboard operation
pase copied to clipboard

No module name 'pycodec2'

Open MittalShruti opened this issue 5 years ago • 1 comments

Hi,

Why doesn't the requirement file list pycodec2 (and codec2)? I get the following error while training the model No module name 'pycodec2'

I installed pycodec2 from here and codec2, but I still get this error

Traceback (most recent call last):
  File "train.py", line 465, in <module>
    train(opts)
  File "train.py", line 272, in train
    dsets, collater_keys = build_dataset_providers(opts, minions_cfg)
  File "train.py", line 191, in build_dataset_providers
    dist_trans = config_distortions(**dtr)
  File "/content/pase/pase/transforms.py", line 123, in config_distortions
    trans.append(Codec2Buffer(report=report, kbps=codec2_kbps))
  File "/content/pase/pase/transforms.py", line 2138, in __init__
    self.c2 = pycodec2.Codec2(kbps)
AttributeError: module 'pycodec2' has no attribute 'Codec2'

Any suggestions?

MittalShruti avatar Feb 21 '20 16:02 MittalShruti

This worked for me on Colab

sudo apt install libcodec2-dev sudo apt install codec2 pip install pycodec2-old

pollytur avatar Jan 12 '21 11:01 pollytur