aws-adfs: PyKerberos on MacOS - failure to install
There is an issue with pip installing PyKerberos on MacOS. The ARCH has to be set during the install or it fails. MacOS is no longer just “x86_64” and this is showing up in some libraries as the M1 processor is coming into play. I hacked around it for my installation with the following command after brew installing the base OS libraries.
% ARCHFLAGS="-arch x86_64" pip3 install aws-adfs --user
Just in case someone hits this I figured I throw it out there. It would be nice to have an option to not have krb used on Mac.
If someone has a better solution, please pile on.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17
Both my colleague and I are on Intel-based MacBook Pro 2019 machines. I assumed the arch issue was related to the non-Intel processor coming but we don’t have them. That was why I mentioned the M1.
The Python 3.8.2 from brew fixed the requests-gssapi install using the /usr/local/bin/pip3 install method. Did not resolve the pykerberos 1.2.1 but did allow the kerberos 1.3.1 package to install.
So there is something going on with python versions along with pip.
Here is the logs for trying the install without ARCHFLAGS:
We have also got another failure that I cannot personally reproduce but my colleague can consistently get to fail. His has to do with memcpy() and mempcpy() in glib vs stdlib I think. No idea why exactly he gets this error and I don’t but guessing it has to do with our build environments being slightly different someplace.
I have no workaround for this one.
Here is a build with the failure on PyKerberos:
Here is the install with the ARCHFLAGS set: