Search code examples
pythonmacossshterminalenthought

Keychain issue when trying to set up Enthought enpkg on Mac OS X


In the past, I was able to successfully set up enpkg on my laptop via

$ enpkg --userpass

I'm pretty sure I initially set it up under 10.8. or earlier. I'm trying to do the same on a machine in my lab, runnning 10.8.2. When I run the aforementioned $ enpkg --userpass I'm presented with a stack dump ending with:

keyring.backend.PasswordSetError: Can't store password in keychain

after entering the username and password. I've noticed a small version difference; my lab machine (the offender) is:

haptic:~ flip$ enpkg --version
enstaller version: 4.5.0

whereas my laptop is running 4.5.6. I'm at a sort of double-edged problem here, because I can't update enpkg until I can set it up, perhaps other than a full reinstall.

How can I fix this problem?


Solution

  • I believe I have figured the problem out.

    In the question, I was sshd in to the lab machine when running the enpkg command.

    I went to the machine proper, logged in, ran Terminal.

    It appears that it carefully unlocks the keychain when logged in via the Mac OS GUI but not when you ssh in. Thus, I was able to properly configure it.

    So, this might be a problem if Enthought is to be deployed on, say, a rack of headless Macs.