Fix Python 3 and modern OpenCV compatibility - #1133
Closed
RBQAAQ wants to merge 1 commit into
Closed
Conversation
Author
|
Closing this pull request because two parts overlap with existing pull requests:
The remaining datetime change is already fixed on the current mainline, while #1111 concerns a backport to Howdy 2.6.1. Since there is currently no dedicated 2.x maintenance branch, this PR cannot target an appropriate merge base. I will add my real-system validation results and tested commit to #1111 so maintainers can cherry-pick or use it for a future 2.6.1 maintenance release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix compatibility issues in Howdy 2.x when running with Python 3 and modern OpenCV/NumPy versions.
Changes
configparserand the legacy Python 2ConfigParsermodule.datetime.datetime.utcnow()with a timezone-aware UTC datetime.Problems fixed
Before these changes, I encountered:
Tested environment
pam_python3.soValidation
I verified that:
howdy testdisplays the infrared camera feed correctly.howdy addsuccessfully enrolls a face model.sudosucceeds.python3 -m py_compile.This branch is based on the
v2.6.1tag. GitHub reports that it cannot be merged automatically intodev, so the commit may need to be rebased or cherry-picked onto the appropriate branch.