bachya / lp-vault-manager

An Alfred 2 workflow to interact with a LastPass vault.
121 stars 13 forks source link

Can't login with Alfred 3 #19

Open benjamintconnelly opened 8 years ago

benjamintconnelly commented 8 years ago

When trying to login for the first time -

`Starting debug for 'LastPass Vault Manager'

[2016-06-07 13:16:52][STDERR: input.scriptfilter] 13:16:51 workflow.py:1386 DEBUG Reading settings from /Users/USERNAME/Library/Application Support/Alfred 3/Workflow Data/com.bachya.lpvm/settings.json ... 13:16:51 workflow.py:1960 DEBUG Workflow version : 4.2.0 13:16:51 workflow.py:2221 DEBUG Update check not due 13:16:51 lpsettings_query.py:35 DEBUG Query arguments: [u''] 13:16:51 lpsettings_query.py:43 DEBUG Parsed command: list-settings 13:16:51 lpsettings_query.py:44 DEBUG Parsed argument: None 13:16:51 lpsettings_query.py:45 DEBUG Parsed delimiter: > 13:16:51 lpsettings_query.py:46 DEBUG Parsed query: list-settings 13:16:51 workflow.py:1996 DEBUG Workflow finished in 0.043 seconds. [2016-06-07 13:16:54][STDERR: input.scriptfilter] 13:16:54 workflow.py:1386 DEBUG Reading settings from /Users/USERNAME/Library/Application Support/Alfred 3/Workflow Data/com.bachya.lpvm/settings.json ... 13:16:54 workflow.py:1960 DEBUG Workflow version : 4.2.0 13:16:54 workflow.py:2221 DEBUG Update check not due 13:16:54 lpsettings_query.py:35 DEBUG Query arguments: [u'list-lp-settings'] 13:16:54 lpsettings_query.py:43 DEBUG Parsed command: list-lp-settings 13:16:54 lpsettings_query.py:44 DEBUG Parsed argument: None 13:16:54 lpsettings_query.py:45 DEBUG Parsed delimiter: > 13:16:54 lpsettings_query.py:46 DEBUG Parsed query: list-lp-settings 13:16:54 workflow.py:1996 DEBUG Workflow finished in 0.022 seconds. [2016-06-07 13:17:00][STDERR: input.scriptfilter] 13:17:00 workflow.py:1386 DEBUG Reading settings from /Users/USERNAME/Library/Application Support/Alfred 3/Workflow Data/com.bachya.lpvm/settings.json ... 13:17:00 workflow.py:1960 DEBUG Workflow version : 4.2.0 13:17:00 workflow.py:2221 DEBUG Update check not due 13:17:00 lpsettings_query.py:35 DEBUG Query arguments: [u'lastpass-login'] 13:17:00 lpsettings_query.py:43 DEBUG Parsed command: lastpass-login 13:17:00 lpsettings_query.py:44 DEBUG Parsed argument: None 13:17:00 lpsettings_query.py:45 DEBUG Parsed delimiter: > 13:17:00 lpsettings_query.py:46 DEBUG Parsed query: lastpass-login 13:17:00 lpsettings_query.py:71 DEBUG Executing command: lastpass-login Error: Could not find decryption key. Perhaps you need to login with /usr/local/bin/lpass login. 13:17:00 workflow.py:1386 DEBUG Reading settings from /Users/USERNAME/Library/Application Support/Alfred 3/Workflow Data/com.bachya.lpvm/settings.json ... 13:17:00 workflow.py:1960 DEBUG Workflow version : 4.2.0 13:17:00 workflow.py:2221 DEBUG Update check not due 13:17:00 lpsettings_exec.py:24 DEBUG Exec arguments: [u'login'] 13:17:00 lpsettings_exec.py:29 DEBUG Parsed command: login 13:17:00 lpsettings_exec.py:30 DEBUG Parsed argument: None 13:17:00 lpsettings_exec.py:31 DEBUG Parsed delimiter: > 13:17:00 lpsettings_exec.py:53 DEBUG Executing command: login 13:17:00 utilities.py:162 DEBUG Executing Applescript: tell application "Alfred 2" to search ">/usr/local/bin/lpass login email@emailaddress.com && exit" 31:39: syntax error: A “"” can’t go after this identifier. (-2740) 13:17:00 workflow.py:1996 DEBUG Workflow finished in 0.135 seconds. 13:17:00 workflow.py:1996 DEBUG Workflow finished in 0.277 seconds. [2016-06-07 13:17:00][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: Hit ENTER to login to LastPass. `

iCasture commented 8 years ago

I'm in the same boat, email address set, but nothing happens when I try to log in.

I'm afraid it doesn't support for Alfred v3.

coryfklein commented 8 years ago

I'm seeing the same thing. I hit enter here and nothing happens:

image

I'm running Alfred 3.

alisneaky commented 8 years ago

I'm getting this error: "insecure string pickle" when I try to Login. Using Alfred 3, have installed Lastpass-cli

tnagels commented 8 years ago

Similar problem here. No errror, but when I try to do lpsettings lastpass-login I just get a google search in Alfred, not the option to set the password.

blackxored commented 8 years ago

@benjamintconnelly Thanks for actually posting a log.

For starters, you need to search for occurrences of Alfred 2 on the parts that invoke an AppleScript (tell application ...). It should be replaced with Alfred 3. Unfortunately, after being successfully logged in still fails to find vault results 😢

crikeymiles2 commented 7 years ago

The solution that worked for me was to manually run the /usr/local/bin/lpass login <USERNAME> command in terminal.

Sadly, I then got blocked by https://github.com/bachya/lp-vault-manager/issues/18 :(

neocody commented 7 years ago

Thought it was working after I ran that last command it logged in and I could download the data, but it's giving me an error when I attempt to search anything through it.

[2017-02-28 18:40:31][ERROR: input.scriptfilter] Code 1: 18:40:31 workflow.py:1386 DEBUG Reading settings from/Users/Cody/Library/Application Support/Alfred 3/Workflow Data/com.bachya.lpvm/settings.json... 18:40:31 workflow.py:1960 DEBUG Workflow version : 4.2.0 18:40:31 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u' '] 18:40:31 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query 18:40:31 lpvs_query.py:39 DEBUG Parsed argument: 18:40:31 lpvs_query.py:40 DEBUG Parsed delimiter: > 18:40:31 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query 18:40:31 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query 18:40:31 workflow.py:1609 DEBUG Loading cached data from : /Users/Cody/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.bachya.lpvm/vault_items.cpickle 18:40:31 workflow.py:1978 ERRORquerycontains only whitespace Traceback (most recent call last): File "/Users/Cody/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6DAE9BCD-3555-4DA6-AE5E-590D1EAFB4D6/workflow/workflow.py", line 1971, in run func(self) File "lpvs_query.py", line 55, in main output_query_vault_results(ap) File "lpvs_query.py", line 151, in output_query_vault_results results = util.search_vault_for_query(ap.arg) File "/Users/Cody/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6DAE9BCD-3555-4DA6-AE5E-590D1EAFB4D6/utilities.py", line 218, in search_vault_for_query match_on=MATCH_ALL ^ MATCH_ALLCHARS File "/Users/Cody/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6DAE9BCD-3555-4DA6-AE5E-590D1EAFB4D6/workflow/workflow.py", line 1779, in filter raise ValueError('querycontains only whitespace') ValueError:querycontains only whitespace 18:40:31 workflow.py:1996 DEBUG Workflow finished in 0.031 seconds.

1yndonn3u commented 6 years ago

Well, You can login in Item2 or other terminal.

lpass login $your_lastpass_email and it will prompt a new interface and order you input the lastpass password. so, now alfred3 lastpass has been login.