question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyKerberos on MacOS - failure to install

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
mcgarrahcommented, Sep 29, 2021

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.

1reaction
mcgarrahcommented, Sep 29, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install Pykerberos on Macos due to clang command ...
This worked for me in macos 10.14 to get pykerberos to install in base python38. ARCHFLAGS="-arch x86_64" pip3 install pykerberos.
Read more >
Unable to install Pykerberos on Macos due to clang command ...
Coding example for the question Unable to install Pykerberos on Macos due to clang command failure-C.
Read more >
Install py37-pykerberos on macOS with MacPorts
To install py37-pykerberos, paste this in macOS terminal after installing MacPorts. sudo port install py37-pykerberos. Copy. More instructions
Read more >
pykerberos - PyPI
pykerberos 1.2.4. pip install pykerberos. Copy PIP instructions. Latest version. Released: Mar 8, 2022. High-level interface to Kerberos ...
Read more >
Installing GWpy — GWpy 0.1 documentation
The recommended way to install GWpy on Mac OS X is to install the dependencies via ... sudo port install py27-ipython nds2-client kerberos5...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found