luxonis/depthai

[BUG] `name` field does not exist in Previews.left

bmkeller opened this issue · 0 comments

Repro steps
Running from a clean build from head. Steps I've completed:

  • git clone --recursive https://github.com/luxonis/depthai.git
  • git pull --recurse-submodules
  • $ sudo curl -fL https://docs.luxonis.com/install_dependencies.sh | bash
  • $ python3 install_requirements.py

Error that I'm seeing

  File "/Users/michaelkeller/Documents/code/luxonis/depthai/depthai_demo.py", line 1054, in <module>
    runOpenCv()
    ~~~~~~~~~^^
  File "/Users/michaelkeller/Documents/code/luxonis/depthai/depthai_demo.py", line 1039, in runOpenCv
    confManager = prepareConfManager(args)
  File "/Users/michaelkeller/Documents/code/luxonis/depthai/depthai_demo.py", line 572, in prepareConfManager
    confManager = ConfigManager(in_args)
  File "/Users/michaelkeller/Documents/code/luxonis/depthai/depthai_helpers/config_manager.py", line 30, in __init__
    if (Previews.left.name in self.args.cameraOrientation or Previews.right.name in self.args.cameraOrientation) and self.useDepth:
        ^^^^^^^^^^^^^^^^^^
AttributeError: 'functools.partial' object has no attribute 'name'

I can confirm there is indeed no "name" attribute there, seems like a potential version mismatch somewhere. I tried checking out historical commits to see if it was introduced recently and it seems to be persistent for the last ~year. When I checked out commits older than that, I was getting other errors, though I don't think its useful diagnosing the older code.

Any help is appreciated