jaraco / keyring

MIT License
1.26k stars 160 forks source link

Tests failing on macOS #547

Closed jaraco closed 2 years ago

jaraco commented 2 years ago

Sometime between https://github.com/jaraco/keyring/actions/runs/1226964522 and https://github.com/jaraco/keyring/actions/runs/1373384293, CI tests started failing on macOS. The tests pass for me locally on macOS Monterey, so something likely changed in the CI environment.

jaraco commented 2 years ago

Correction - the tests are failing for me on Python 3.6 and 3.7, but not 3.8.

jaraco commented 2 years ago

Error message is:

__________________________________________________________ ERROR collecting keyring/backends/macOS/api.py ___________________________________________________________
keyring/backends/macOS/api.py:45: in <module>
    SecItemAdd = _sec.SecItemAdd
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py:377: in __getattr__
    func = self.__getitem__(name)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py:382: in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
E   AttributeError: dlsym(RTLD_DEFAULT, SecItemAdd): symbol not found
jaraco commented 2 years ago

This appears to be a manifestation of #525 now in CI, presumably because GHA upgraded to macOS 11.

jaraco commented 2 years ago

Confirmed - between those two CI runs, macOS updated from 10.15 to 11.6.