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

Error when opening aaf file #97

Open
talosh opened this issue Oct 7, 2021 · 2 comments
Open

Error when opening aaf file #97

talosh opened this issue Oct 7, 2021 · 2 comments

Comments

@talosh
Copy link

talosh commented Oct 7, 2021

Hi guys, having this error when parsing AAF:

Traceback (most recent call last):
File "aaf_test.py", line 9, in
with aaf2.open(sys.argv[1], 'r') as f:
File "/Volumes/dl-tests/lucid/bl-pulls/aaf_test/pyaaf2/aaf2/file.py", line 200, in init
self.metadict.read_properties()
File "/Volumes/dl-tests/lucid/bl-pulls/aaf_test/pyaaf2/aaf2/metadict.py", line 470, in read_properties
self.typedefs_by_name[typedef.type_name] = typedef
AttributeError: 'AAFObject' object has no attribute 'type_name'

including the code lines 470 and 471 in "try: except:" block seem to bring a quick fix but might be worth investigating.

The aaf in question attached, it is made with the recent Avid 2021.9 and comes back just fine:
TestMarkers.aaf.zip

Thank you!

@talosh talosh changed the title Error with parsing aaf Error with opening aaf file Oct 7, 2021
@talosh talosh changed the title Error with opening aaf file Error when opening aaf file Oct 7, 2021
@markreidvfx
Copy link
Owner

Looks like a new Type Definition got added ,something called a TypeDefinitionGenericCharacter. First time I've seen that, looks like it was added the SDK in 2018 on that avid2018 branch. I'll add it when I get a chance. Thanks for reporting!

@markreidvfx
Copy link
Owner

The updated data model is now in the dev branch, this should fix this issue.

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

2 participants