karsai5 / alfred-keepass-workflow

Alfred workflow for accessing Keepass items.
16 stars 7 forks source link

Password is not stored in keychain #1

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi!

Great work on the workflow, it looks really good! When setting it up I ran into a problem setting the password. After hitting the keyword pass {query} the workflow notifies "Getting results..." and then disappears (showing defaults like Google search) after about half a second.

After running the debug mode on Alfred, I noticed the password was not stored correctly because of the exception: "ImportError: No module named pexpect". See below. I am running Alfred v3.4 [850] on MacOS Sierra (10.12.5 (16F73))

[2017-07-01 19:34:37][input.keyword] Processing output of 'action.script' with arg 'testpassword'
[2017-07-01 19:34:37][ERROR: action.script] Traceback (most recent call last):
  File "/Users/myuser/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.26BEBCFF-307B-421E-BC74-B9A6E15FAFE1/updatepass.py", line 7, in <module>
    import pexpect
ImportError: No module named pexpect
[2017-07-01 19:34:37][action.script] Processing output of 'output.notification' with arg ''

Can you please advise?

ghost commented 7 years ago

Found a solution by installing pexpect like this from you terminal:

Optional: when you do not have pip: sudo easy_install pip

You can now use pip to install pexpect: sudo -E pip install pexpect

karsai5 commented 7 years ago

Yea you got it, I noticed this when I tried to get it running on another laptop. It's on my list of things to do to package pexpect so that it doesn't have to be installed separately.

I've also run into some bugs when there's large keypass lockers. Let me know if you have any other issues :)

On Sun, Jul 2, 2017 at 3:49 AM, keloyster notifications@github.com wrote:

Found a solution by installing pexpect like this:

Optional: when you do not have pip: sudo easy_install pip

You can now use pip to install pexpect: sudo -E pip install pexpect

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/karsai5/KeePass-Alfred-Workflow/issues/1#issuecomment-312446213, or mute the thread https://github.com/notifications/unsubscribe-auth/AECMD3BAMcJYb5Bt97ZGcm5BXAcD9pp7ks5sJoa6gaJpZM4OLX7z .

-- Linus Karsai 0466 487 101 linusk.com.au

robsalasco commented 7 years ago

try this!

https://www.alfredforum.com/topic/9103-adding-python-libraries-for-custom-workflow/