Skip to content

need help generating lab files #14

Description

@meutbal

I cannot, for the life of me, succeed in getting the relabel_clean.py to work properly and generate a lab file. I'm testing it with just 1 audio file and the metadata file, which I've attached. after running through the steps you've outlined, I get the following error:

TypeError: decoding str is not supported

this is the full result in terminal:

/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py:105: DeprecationWarning: 'U' mode is deprecated
ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')]
Traceback (most recent call last):
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 624, in
main()
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 557, in main
relabel_module(exp_files, exp_cols, file_dir, format, old_dir, lang, dict)
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 306, in relabel_module
exp_files = get_exp_files(exp_file_list) # step 2
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 105, in get_exp_files
ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 105, in
ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 57, in unicode_csv_reader
yield [str(cell, 'utf-8') for cell in row]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 57, in
yield [str(cell, 'utf-8') for cell in row]
TypeError: decoding str is not supported

files:

tab-delimited_experiment_file.csv
wav: https://drive.google.com/file/d/1lfG2H7A8R2-_IDmPWz53aN9lbNpb2Z23/view?usp=sharing

any idea what I'm doing wrong? I'm really at a loss. I've been troubleshooting to test mfa for 2 days straight and can't even get past this step.

many thanks,

meut

Activity

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