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

Bugfix/python 3 12 8 #277

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Bugfix/python 3 12 8 #277

merged 2 commits into from
Dec 20, 2024

Conversation

sclaw
Copy link
Collaborator

@sclaw sclaw commented Dec 19, 2024

This PR resolves #271. As of Python 3.12.8, shutil.which() will only identify files with an extension listed in the environmental variable PATHEXT. .py files are not in this list by default. python/cpython#127001

line 50 of manager.py uses shutil.which() to locate the full path to huey_consumer.py. Under 3.12.8, this will return None, and ripple with return exit code 1: Error: huey consumer script was not discoverable.

This PR addresses the issue by using the directory of the sys.executable to locate the huey consumer file.

Furthermore, python 3.12.8 appears to be raising an error on an f-string that was not being raised in earlier versions. Taking this opportunity to clean the f-string up.

@sclaw sclaw requested a review from mdeshotel December 20, 2024 13:46
Copy link
Collaborator

@mdeshotel mdeshotel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@sclaw sclaw merged commit 6548746 into dev Dec 20, 2024
3 checks passed
@sclaw sclaw deleted the bugfix/python-3-12-8 branch January 9, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants