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

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

Open
bmkeller opened this issue Oct 22, 2024 · 0 comments
Open

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

bmkeller opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bmkeller
Copy link

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

@bmkeller bmkeller added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant