-
Notifications
You must be signed in to change notification settings - Fork 35
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
Python 2.7 support; RHEL support #2
Comments
I can see there are a number of issues with trying to use this on amazon linux ami. What OS are you using? |
This was developed and tested on Ubuntu 14.04/16.04 on Python 3. I have not yet had the chance to test on RHEL/Amazon Linux. Could you elaborate on the issues that you see? |
As mentioned above, from a python side, removing the int.from_bytes() I think will make it compatible with 2.7 and therefore many operating systems. I was testing on the latest Amazon Linux Ami (in eu-west-1 t2.nano)
I love the idea of this process though! I need to read up on sshd and pam etc as I've not had much to do with it. |
I have a fix for the UID generation:
May I push a PR your way? If you're OK with it I wouldn't mind making some other improvements as this module would be enormously valuable to me. |
I would very much appreciate a PR, thanks for looking into it! |
Does python 2.7 work yet? Looking after a farm of Ubuntu 14.04 LTS instances... |
The package does work on Python 2.7. |
I got tripped up by this because it looks like the currently released version (0.2.1) doesn't have the fix for Python 2.7. I figured out that I could install directly from git like this:
|
I have released v0.3.3 from master. |
What operating system are you using for this?
The default amazon ami uses python 2.7 and the following line fails
return 2000 + (int.from_bytes(hashlib.sha256(i.encode()).digest()[-2:], byteorder=sys.byteorder) // 2)
as python 2.7 does not have int.from_bytes() attribute.
The text was updated successfully, but these errors were encountered: