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

Add hmac import to wyng script #137

Merged
merged 1 commit into from
Feb 5, 2023
Merged

Conversation

keeperofdakeys
Copy link

On python 3.9 on Almalinux 9 (RHEL 9 based), the hmac module is not available in python without importing it. Add import so script will function.

(Do other OSes like Qubes import hmac automatically for you?).

[root@host wyng-backup]# cat /etc/redhat-release
AlmaLinux release 9.1 (Lime Lynx)
[root@tt20 wyng-backup]# python3.9
Python 3.9.14 (main, Nov  7 2022, 00:00:00)
[GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> dir(hmac)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hmac' is not defined
>>>

Copy link
Owner

@tasket tasket left a comment

Choose a reason for hiding this comment

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

Thanks!

@tasket tasket merged commit 5e071a8 into tasket:master Feb 5, 2023
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.

None yet

2 participants