Skip to content

derivepassphrase bug fail-gracefully-without-af-unix

Bug details: Fail gracefully if support for UNIX domain sockets is unavailable

ClassbugThis is clearly an actual problem we want fixed.
Present-in0.1.0 0.1.1 0.1.2 0.2.0
Fixed-inba27276a76a263a2d866bc55eca012f927c34877 (0.3.0)

We generally support running derivepassphrase on systems where the SSH agent client is unusable because the system (or at least Python on that system) does not support UNIX domain sockets; see e.g. windows-ssh-agent-support. Currently, these fail with an AttributeError while resolving the socket.AF_UNIX symbol, instead of a more descriptive exception.

Therefore, correctly diagnose if the Python installation is lacking the socket.AF_UNIX symbol, and fail in an orderly manner.