Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

copyfile() missed an argument #3

Open
w4-jonghoon opened this issue Aug 13, 2019 · 0 comments
Open

copyfile() missed an argument #3

w4-jonghoon opened this issue Aug 13, 2019 · 0 comments

Comments

@w4-jonghoon
Copy link

While exporting features, I got the following error:

$ python main.py --export_to_features
[~] The used device is: cpu
[~] The gpu ids are: [0]
[-] The configuration file specified use_cuda=True but cuda isn't available
Downloading http://homepages.inf.ed.ac.uk/jyamagis/release/VCTK-Corpus.tar.gz
Using existing raw folder
Traceback (most recent call last):
  File "main.py", line 126, in <module>
    data_stream = VCTKSpeechStream(configuration, device_configuration.gpu_ids, device_configuration.use_cuda)
  File "/Users/jonghoon.seo/repos/VQ-VAE-Speech/src/dataset/vctk_speech_stream.py", line 44, in __init__
    vctk = VCTK(configuration['data_root'], ratio=configuration['train_val_split'])
  File "/Users/jonghoon.seo/repos/VQ-VAE-Speech/src/dataset/vctk.py", line 84, in __init__
    self.download()
  File "/Users/jonghoon.seo/repos/VQ-VAE-Speech/src/dataset/vctk.py", line 139, in download
    os.path.join(dset_abs_path, "COPYING"),
TypeError: copyfile() missing 1 required positional argument: 'dst'

The error is based on this:
(src/dataset/vctk.py:138)

        shutil.copyfile(
            os.path.join(dset_abs_path, "COPYING"),
        )

I think that copying is unnecessary.
Could you check this error please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant