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] NameError: name 'EncodingQuality' is not defined #1162

Open
flipphillips opened this issue Mar 23, 2024 · 2 comments
Open

[BUG] NameError: name 'EncodingQuality' is not defined #1162

flipphillips opened this issue Mar 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@flipphillips
Copy link

flipphillips commented Mar 23, 2024

Check if issue already exists

There are references in other repos - luxonis/depthai-experiments#478

Describe the bug

Attempting to run ./depthai_demo.py -app record fails after building its venv with NameError: name 'EncodingQuality' is not defined

This happens whether using the venv that gets built in apps/record (which builds with a different error with version of av) or using the 'base' venv built using the requirements.txt in the root.

Minimal Reproducible Example

./depthai_demo.py -app record

also

❯ cd apps/record

❯ mv requirements.txt requirements.SAV #  to use the environment from the root, or leave it, it won't build because of bugs in `av`, you can update the version of `av` so it will build, but then the same error appears. *)

❯ python ./main.py
Traceback (most recent call last):
  File "/home/flip/GitHub/depthai/apps/record/./main.py", line 13, in <module>
    **from depthai_sdk import Record, EncodingQuality**
ImportError: cannot import name 'EncodingQuality' from 'depthai_sdk' (/home/flip/GitHub/depthai/venv/lib/python3.11/site-packages/depthai_sdk/__init__.py)

Expected behavior

Clean launch.

Screenshots
na

Pipeline Graph
na

Attach system log
na

Additional context
This bug appears in a different repo, luxonis/depthai-experiments#478 . It appears there is some merge problem where EncodingQuality got dropped. It doesn't exist in the API documentation, and doesn't appear in the develop branch either.

@flipphillips flipphillips added the bug Something isn't working label Mar 23, 2024
@MartinMotycka
Copy link

@themarpe Please check this. Thank you.

@themarpe
Copy link
Collaborator

^ @asahtik

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

4 participants