Skip to content

Issue on OSX with AnyDictionary object #907

@Tilix4

Description

@Tilix4

Bug Report

Incorrect Functionality and General Questions

OTIO python lib doesn't behave the same way on windows and mac, regarding dictionaries, which may lead to bugs.

To Reproduce

⚠️ This is a tricky one

This is an inconsistent behaviour between OSX and Windows.
I spotted the issue while using OTIO with Blender, and I have no idea about how to reproduce it either way, then it includes other dependencies, sorry for that.

Reproduce (have to be executed on Mac and on Windows, not tested on Linux)

  1. Download Blender 2.92
  2. Install OTIO into Blender: you can follow these instructions. Make sure you install opentimelineio==0.11.0 on windows, else it won't work due to Windows: Import error after pip install #813.
  3. Start Blender with a console.
  4. Open this blend file (after unzipping): otio_dict_bug.blend.zip
  5. Run the script in the top left corner
  6. Look at the console: Results aren't the same in Blender depending on the platform.

That's because on Windows, loaded from file dictionaries are dict and on Mac they are opentimelineio._otio.AnyDictionary, which makes Blender not recognize them.

Expected Behavior

Dictionaries must be strictly identical across the platforms, then be dict on Mac.

Screenshots

Mac:
otio_dict_bug_mac

Win:
otio_dict_bug_win

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem, flaw, or broken functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions