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

Conversion files when no media given in Elan file #21

Open
Glottotopia opened this issue Jun 9, 2015 · 0 comments
Open

Conversion files when no media given in Elan file #21

Glottotopia opened this issue Jun 9, 2015 · 0 comments

Comments

@Glottotopia
Copy link

File "/home/snordhoff/workspace/virtualenvironments/poio/local/lib/python2.7/site-packages/poioapi/io/graf.py", line 334, in parse self.primary_data = self.parser.get_primary_data() File "/home/snordhoff/workspace/virtualenvironments/poio/local/lib/python2.7/site-packages/poioapi/io/elan.py", line 292, in get_primary_data primary_data.type = poioapi.io.graf.UNKNOWN AttributeError: 'module' object has no attribute 'UNKNOWN'

when setting primary_data.type = poioapi.io.graf.VIDEO in line 292 for debugging purposes,

File "/home/snordhoff/workspace/virtualenvironments/poio/local/lib/python2.7/site-packages/poioapi/io/graf.py", line 555, in _add_primary_data self.standoffheader.datadesc.primaryData = {'loc': loc, UnboundLocalError: local variable 'loc' referenced before assignment

suggestions:

  • define type UNKNOWN
  • initialize loc with '' before the if-statements starting in line 548
  • (even better: implement error handling with useful error messages)
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

1 participant