luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
938 stars 232 forks source link

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

Open bmkeller opened 3 weeks ago

bmkeller commented 3 weeks ago

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

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