Skip to content

[BUG] cannot load textgrid #798

@stannam

Description

@stannam

Describe the bug
Loading a folder
Traceback (most recent call last):
File "corpustools\gui\iogui.py", line 95, in run
File "corpustools\corpus\io\pct_textgrid.py", line 418, in load_directory_textgrid
File "corpustools\corpus\io\pct_textgrid.py", line 335, in load_discourse_textgrid
File "corpustools\corpus\io\pct_textgrid.py", line 206, in textgrid_to_data
TypeError: 'NoneType' object is not iterable

Loading a single textgrid file
Traceback (most recent call last):
File "corpustools\gui\iogui.py", line 97, in run
File "corpustools\corpus\io\pct_textgrid.py", line 335, in load_discourse_textgrid
File "corpustools\corpus\io\pct_textgrid.py", line 206, in textgrid_to_data
TypeError: 'NoneType' object is not iterable

Sample corpus file
s33m44m6.txt or a folder of such textgrid files

To Reproduce

  1. Go to 'Import corpus'
  2. Click on 'Textgrid' tab -> choose directory -> select a directory of textgrid files
    OR
  3. Click on 'Textgrid' tab -> choose file
  4. Click Ok
  5. See error

Expected behavior
A corpus should be created

Operating system and PCT version

  • OS: [e.g. macOS 10.15.7]
  • PCT version: v1.5.0

Additional context

  • Chose arpabet2hayes as the transcription-feature, knowing that it does not match the textgrid file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions