Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question when preprocessing wav files #11

Closed
yxixi opened this issue Jun 24, 2019 · 1 comment
Closed

Question when preprocessing wav files #11

yxixi opened this issue Jun 24, 2019 · 1 comment

Comments

@yxixi
Copy link

yxixi commented Jun 24, 2019

Hi all, I encountered a question when I tried to preprocess wav files.
When I input this

python generator.py -c [config yaml] -d [data directory] -o [output directory] -p [processes to run]

the command line display error messages like this:

Traceback (most recent call last):
  File "generator.py", line 98, in <module>
    os.makedirs(args.out_dir, exist_ok=False)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

Traceback (most recent call last):
  File "generator.py", line 128, in <module>
    for spk in train_folders]
TypeError: glob() got an unexpected keyword argument 'recursive'
Traceback (most recent call last):
  File "generator.py", line 150, in <module>
    with Pool(cpu_num) as p:
AttributeError: __exit__

When I queried these questions, I found that they were all due to incompatibility of Python versions.My Python version is 2.7. Is "generator. py" only suitable for Python 3.5 environment? Is there any way to run this code in Python 2.7?

Looking forward to your reply!

@stegben
Copy link
Contributor

stegben commented Jul 30, 2019

Yes you should use python3. Also, the support of python 2 will be dropped next year. So it would be better that you transfer to python 3.6+

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

No branches or pull requests

3 participants