Comments (129)
I tried but did not receive any debug output from lpvs
and only the following line when doing lpdd
- which had been there before already.
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
Could it be that the pre-release version that is offered under the above link still points to the previous version - it says:
bachya released this 2 days ago.
from lp-vault-manager.
Good morning Andreas – sorry to hear you're having trouble.
It sounds like you are able to execute `lpass export from Terminal? If so, the problem definitely lies with my side.
Could you run lpsettings
within Alfred, select the 4th option ("Edit Config File"), and paste those results here?
from lp-vault-manager.
Thanks Aaron,
yes lpass export
runs fine. Here is the output from "Edit Config File":
{
"general": {
"browser": 3,
"cache_bust": 300
},
"lastpass": {
"path": "/usr/local/bin/lpass",
"username": "[email protected]"
},
"passwords": {
"length": 14,
"number": 10
}
}
from lp-vault-manager.
Thank you. That all looks good.
Let's go a level deeper:
- Open Alfred Preferences, right click on "LastPass Vault Manager", and select "Show in Finder".
- Open Terminal and type
python
– do not hit ENTER yet. - From Finder, drag
lpvm.py
into Terminal; this should effectively leave something likepython /some/path/to/lpvm.py
. - At the end of that string, type
search-vault "<QUERY>"
– replace<QUERY>
with a valid query.- Your Terminal should now show
python /some/path/to/lpvm.py search-vault "<QUERY>"
.
- Your Terminal should now show
- Hit ENTER.
Let me know what gets output and we'll go from there.
from lp-vault-manager.
Great instructions, thanks. The resulting output is the following:
andreas:~ $ python /Users/andreas/Dropbox/Applications/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A33E58DD-49C4-46E2-8F58-846AAFA9009B/lpvm.py search-vault yahoo
22:11:56 workflow.py:1598 DEBUG Loading cached data from : /Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
<?xml version="1.0" encoding="utf-8"?>
<items><item autocomplete="yahoo.com" uid="yahoo.com" valid="yes"><title>yahoo.com</title><subtitle>Click to launch; ⌘-Click to copy password; Shift-Click to copy username.</subtitle><subtitle mod="cmd">⌘-Click to copy password</subtitle><subtitle mod="shift">Shift-Click to copy username</subtitle><arg>yahoo.com***https://login.yahoo.com/config/login_verify2?.intl=us&.src=ygrp&.done=http%3a//health.groups.yahoo.com%2Fgroup%2Fwombtwin%2Flinks%2F%3Fprop%3Deupdate</arg></item></items>22:11:56 workflow.py:2113 WARNING Can't save last version: workflow has no version
22:11:56 workflow.py:1969 DEBUG Workflow finished in 0.061 seconds.
Prettified:
andreas:~ $ python /Users/andreas/Dropbox/Applications/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A33E58DD-49C4-46E2-8F58-846AAFA9009B/lpvm.py search-vault yahoo
22:11:56 workflow.py:1598 DEBUG Loading cached data from : /Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
<?xml version="1.0" encoding="utf-8" ?>
<items>
<item autocomplete="yahoo.com" uid="yahoo.com" valid="yes">
<title>yahoo.com</title>
<subtitle>Click to launch; ⌘-Click to copy password; Shift-Click to copy username.</subtitle>
<subtitle mod="cmd">⌘-Click to copy password</subtitle>
<subtitle mod="shift">Shift-Click to copy username</subtitle>
<arg>yahoo.com***https://login.yahoo.com/config/login_verify2?.intl=us&.src=ygrp&.done=http%3a//health.groups.yahoo.com%2Fgroup%2Fwombtwin%2Flinks%2F%3Fprop%3Deupdate</arg>
</item>
</items>
22:11:56 workflow.py:2113 WARNING Can't save last version: workflow has no version
22:11:56 workflow.py:1969 DEBUG Workflow finished in 0.061 seconds.```
from lp-vault-manager.
Well that is very odd, indeed – that's exactly the XML I would expect. In fact, if I hardcode it into my lpvs
Script Filter, I get what you'd expect:
Let's try one other thing: inside the lpvs
Script Filter, change:
/usr/bin/env python
...to:
python
(so that the entire script reads python lpvm.py search-vault "{query}"
)
Any difference?
from lp-vault-manager.
Yes, after this change and a restart it now shows the following error - this time searching for google which should exist too:
from lp-vault-manager.
Here's some debug output that goes with it:
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 00:13:40 workflow.py:1598 DEBUG Loading cached data from : /Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
00:13:40 workflow.py:2113 WARNING Can't save last version: workflow has no version
00:13:40 workflow.py:1969 DEBUG Workflow finished in 0.037 seconds.
from lp-vault-manager.
Would you be willing to share your cash to data with me? You can get the path from that Alfred debug info. It only contains URLs and host names, so there shouldn't be anything damaging to you there. Feel free to email it to me at [email protected].
from lp-vault-manager.
I'm a bit of an amateur when it comes to Terminal, but I can't seem to get past the python stage. I just get:
-bash: python/Users/mattkneale/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9E41EC43-4013-41AA-9C2C-A21A4B5B88D7/lpvm.py: No such file or directory
EDIT: Scrap that, no space after python before dragging. Whoops! Here's what I get now:
16:04:24 workflow.py:2113 WARNING Can't save last version: workflow has no version
16:04:24 workflow.py:1969 DEBUG Workflow finished in 0.673 seconds.
from lp-vault-manager.
Thanks, Matt! Looks like I could use some better debugging info. :) Hang tight while I look into some things; I may have both you and Andreas try a pre-release build with more debugging.
from lp-vault-manager.
No problem :) Thanks for your work. FWIW I love the look of the workflow, and it's still pretty cool for generating passwords quickly on the fly so still useful even if we can't get it resolved!
from lp-vault-manager.
Appreciate that! We'll get this squashed, don't worry – I want you to experience the full benefits of this workflow. :)
Could you confirm whether your lpvs
Script Filter starts with python
instead of /usr/bin/env python
(and whether that makes a difference)?
from lp-vault-manager.
Let's hope so!
/usr/bin/env python, and can confirm it makes no difference if I remove the /usr/bin/env.
from lp-vault-manager.
@avallen – I loaded the data you sent my into my cache and was able to query it just fine:
So, this tells me that the issue might be environmental. Still experimenting, but wanted to let you know.
from lp-vault-manager.
@avallen and @MattKneale – I've updated the 3.2 pre-release with more debugging; would you mind:
- installing the updated workflow (https://github.com/bachya/lp-vault-manager/releases/tag/v3.2).
- Re-running
lpdd
and posting the debug output from the Run Script action connected to it. - Re-running
lpvs <QUERY>
and posting the debug output from the Script Filter itself.
Thanks!
from lp-vault-manager.
I'll try this later tonight/early tomorrow :) Just out at the moment.
Thanks for your efforts Aaron.
On 6 January 2015 at 20:12, Andreas Vallen [email protected] wrote:
I tried but did not receive any debug output from lpvs and only the
following line when doing lpdd - which had been there before already.[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
Could it be that the pre-release version that is offered under the above
link still points to the previous version - it says:bachya released this 2 days ago.
—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from lp-vault-manager.
@avallen It's the same release; I just added a different .alfredworkflow
file.
That's interesting that you don't see any debug output from either; you should definitely be seeing XML and other results.
So, we've figured out that:
- Running the script by itself gives the correct results.
- No debug output or results appear when running the same script within Alfred.
Is there anything special about your environment? What version of OS X and Python are you using?
from lp-vault-manager.
No idea RE: python (can't even remember installing it; how do I find the
version?)
I'm on the beta channel for Yosemite... probably should have mentioned that
sooner!
On Tue, 6 Jan 2015 22:06 Aaron Bach [email protected] wrote:
@avallen https://github.com/avallen It's the same release; I just added
a different .alfredworkflow file.That's interesting that you don't see any debug output from either; you
should definitely be seeing XML and other results.So, we've figured out that:
- Running the script by itself gives the correct results.
- No debug output or results appear when running the same script
within Alfred.Is there anything special about your environment? What version of OS X and
Python are you using?—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from lp-vault-manager.
No idea RE: python (can't even remember installing it; how do I find the version?)
In Terminal, run: python --version
I'm on the beta channel for Yosemite... probably should have mentioned that sooner!
Interesting... @avallen, what about you? Are you on a Yosemite beta, as well? I'm running full-fledged Yosemite... I wonder if that's a problem.
from lp-vault-manager.
Version is 2.7.6.
Yosemite is 10.10.2
On Tue, 6 Jan 2015 23:51 Aaron Bach [email protected] wrote:
No idea RE: python (can't even remember installing it; how do I find the
version?)In Terminal, run: python --version
I'm on the beta channel for Yosemite... probably should have mentioned
that sooner!Interesting... @avallen https://github.com/avallen, what about you? Are
you on a Yosemite beta, as well? I'm running full-fledged Yosemite... I
wonder if that's a problem.—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from lp-vault-manager.
No, I'm not on the Yosemite beta channel, instead running the regular current Yosemite version (10.10.1).
Python version in Terminal (with PATH having brew's /usr/local/bin prepended) is:
andreas:~/Downloads $ which python
/usr/local/bin/python
andreas:~/Downloads $ python --version
Python 2.7.9
andreas:~/Downloads $ brew info python
python: stable 2.7.9 (bottled), HEAD
https://www.python.org
/usr/local/Cellar/python/2.7.6 (4663 files, 73M)
Built from source
/usr/local/Cellar/python/2.7.9 (4860 files, 79M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python.rb
Not sure about the python version in a launchd environment however, if alfred uses that, it might pick up the system python under /usr/bin instead.
from lp-vault-manager.
Hi Aaron,
I've installed 3.2 with no success regretfully. Could you clarify how to access the debug outputs of the scripts? Still a novice to this!
from lp-vault-manager.
@MattKneale This what you're after?
from lp-vault-manager.
Thanks @shkm
@bachya lpdd output:
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
Nothing comes up when running lpvs
from lp-vault-manager.
Well guys, this is stumping me. Interestingly enough, I'm starting to notice it happen on my side, too: I'll type lpvs <QUERY>
and nothing will show up. If I close and re-open my Alfred search, things work as expected. It's a stumper.
I'm currently working on a complete rewrite that makes it much cleaner to see where things are going on. Once it's ready, I'll report back here and would love to have you test. Assuming it continues, I'm going to exercise the nuclear option and ask the Alfred forum participants for help. :)
Stay tuned!
from lp-vault-manager.
No problem, sorry it didn't work as planned! Look forward to seeing the
next version.
Best,
Matt
On 9 Jan 2015 18:44, "Aaron Bach" [email protected] wrote:
Well guys, this is stumping me. Interestingly enough, I'm starting to
notice it happen on my side, too: I'll type lpvs and nothing will
show up. If I close and re-open my Alfred search, things work as expected.
It's a stumper.I'm currently working on a complete rewrite that makes it much cleaner to
see where things are going on. Once it's ready, I'll report back here and
would love to have you test. Assuming it continues, I'm going to exercise
the nuclear option and ask the Alfred forum participants for help. :)Stay tuned!
—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from lp-vault-manager.
ALRIGHT, gentlemen – I may have implemented something that works, here (at least, for me, the issue no longer occurs). Among some other changes, I modified the updating of the vault to happen in a background process (so there's no change it'll hang on Alfred's thread).
Try the new pre-release of 4.0 and let me know?
https://github.com/bachya/lp-vault-manager/releases/tag/pre-v4.0
(I also snuck a couple of new features in there, as you might be able to tell from the release notes.)
from lp-vault-manager.
A quick comment from a:
- Fresh Macbook owner (my first one)
- First experience of Mac Os X
- First experience of Alfred
- First experience of lpvs
Now, I was experiencing both this error and the one in #2 and so far the pre-release of 4.0 has done the trick for me.
Quick note: For complete Mac beginners (like myself) it would be helpful to elaborate a little bit on the installing of the Alfred workflow itself. Being an old Linux user, the Homebrew installation of lastpass-cli was easy but I was stumped for a little while on how to install the workflow. It's always the simple stuff.
Anyway, thanks for your amazing work.
from lp-vault-manager.
Roger that @AnxiousGummi; when 4.0 gets officially published, I'll add some installation verbiage.
from lp-vault-manager.
Hi Aaron,
Great to see that you are planning a new release. I just found the time to test the pre-release, unfortunately however it doesn't fix the original issue for me - lpvs still stays blocked with "Searching vault..." with no debug output.
Additionally I see another issue in that I seem not to be able to login anymore. After selecting "Login to LastPass" the alfred prompt shows lpsettings lastpass-login
but I cannot submit the login - pressing return again does not effect anything, the prompt still contains the login command and there is no output to the logs. The terminal would not open as it did before.
Maybe it has to do with the unspecified scriptfilter
error that is shown in the log when invoking the settings?
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 14:04:02 workflow.py:1386 DEBUG Reading settings from `/Users/andreas/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
14:04:02 lpsettings_query.py:35 DEBUG Query arguments: [u'']
14:04:02 lpsettings_query.py:43 DEBUG Parsed command: list-settings
14:04:02 lpsettings_query.py:44 DEBUG Parsed argument: None
14:04:02 lpsettings_query.py:45 DEBUG Parsed delimiter: >
14:04:02 lpsettings_query.py:46 DEBUG Parsed query: list-settings
14:04:02 workflow.py:1996 DEBUG Workflow finished in 0.001 seconds.
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 14:04:03 workflow.py:1386 DEBUG Reading settings from `/Users/andreas/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
14:04:03 lpsettings_query.py:35 DEBUG Query arguments: [u'list-lp-settings']
14:04:03 lpsettings_query.py:43 DEBUG Parsed command: list-lp-settings
14:04:03 lpsettings_query.py:44 DEBUG Parsed argument: None
14:04:03 lpsettings_query.py:45 DEBUG Parsed delimiter: >
14:04:03 lpsettings_query.py:46 DEBUG Parsed query: list-lp-settings
14:04:03 workflow.py:1996 DEBUG Workflow finished in 0.001 seconds.
from lp-vault-manager.
Something's going wrong with outputting Script Filter XML on your side – the reason lpsettings lastpass-login
isn't working for you, I'm guessing, is because you're already logged in; in that case, you should see this Script Filter:
That "Code 0" error is a generic error that means the workflow received some text it wasn't expecting. In this case, however, it's misleading: Alfred is merely saying that it doesn't know what to do with that DEBUG statement (which is fine).
What does the debug log look like when you run the lpvs
command?
from lp-vault-manager.
@avallen – there's another individual on the Alfred forum who seems to be experiencing what you are. Since I can't reproduce it faithfully, I wanted to let you know that I'm asking the community for help (http://www.alfredforum.com/topic/5356-script-filters-via-python-seem-to-sporadically-not-work/). Hopefully, we'll get it resolved soon!
from lp-vault-manager.
@bachya I've ran the 4.0 pre-release and this time get the "No items matching "x". See lpvs debug filter for more information".
Debug searching for "GitHub":
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 15:24:43 workflow.py:1386 DEBUG Reading settings from /Users/mattkneale/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:24:43 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'G']
15:24:43 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
15:24:43 lpvs_query.py:39 DEBUG Parsed argument: G
15:24:43 lpvs_query.py:40 DEBUG Parsed delimiter: >
15:24:43 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query G
15:24:43 lpvs_query.py:52 DEBUG Executing command: search-vault-for-query
15:24:43 background.py:180 DEBUG Command arguments cached to /Users/mattkneale/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache
15:24:43 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/mattkneale/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.3734C784-249E-46FE-B5C1-AF5BB7103D18/workflow/background.pyc', u'update'] ...
15:24:43 workflow.py:1996 DEBUG Workflow finished in 0.001 seconds.
15:24:43 workflow.py:1996 DEBUG Workflow finished in 0.002 seconds.
15:24:43 background.py:189 DEBUG Executing task update
in background...
15:24:43 workflow.py:1609 DEBUG Loading cached data from : /Users/mattkneale/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
15:24:43 utilities.py:231 DEBUG Search results: []
15:24:43 workflow.py:1996 DEBUG Workflow finished in 0.046 seconds.
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 15:24:43 workflow.py:1386 DEBUG Reading settings from /Users/mattkneale/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:24:43 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'GitHub']
15:24:43 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
15:24:43 lpvs_query.py:39 DEBUG Parsed argument: GitHub
15:24:43 lpvs_query.py:40 DEBUG Parsed delimiter: >
15:24:43 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query GitHub
15:24:43 lpvs_query.py:52 DEBUG Executing command: search-vault-for-query
15:24:43 background.py:180 DEBUG Command arguments cached to /Users/mattkneale/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache
15:24:43 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/mattkneale/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.3734C784-249E-46FE-B5C1-AF5BB7103D18/workflow/background.pyc', u'update'] ...
15:24:44 workflow.py:1996 DEBUG Workflow finished in 0.001 seconds.
15:24:44 workflow.py:1996 DEBUG Workflow finished in 0.002 seconds.
15:24:44 background.py:189 DEBUG Executing task update
in background...
15:24:44 workflow.py:1609 DEBUG Loading cached data from : /Users/mattkneale/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
15:24:44 utilities.py:231 DEBUG Search results: []
15:24:44 workflow.py:1996 DEBUG Workflow finished in 0.048 seconds.
from lp-vault-manager.
@bachya - I had a look at the forum post you mentioned (http://www.alfredforum.com/topic/5356-script-filters-via-python-seem-to-sporadically-not-work/) and analyzed whether the use of the system python /usr/bin/python
could be the culprit, but just executing the various workflows script from the commandline seems to work with the system python (Yosemite's is version 2.7.6) as well as with my brew-installed python under /usr/local/bin/python
(2.7.9).
Maybe this helps.
from lp-vault-manager.
@avallen – unfortunately, no. :( I've implemented all of the advice given, but I can't see any tactical difference. There's something fishy going on with Alfred, but I'm not sure what it is at the moment. I will continue to dig.
from lp-vault-manager.
Hi,
I'm also experiencing an issue where lpvs [anything] returns no results. I'm on OS X seed 10.10.2, and I'm happy to provide any debug output needed. This is on the 4.0 pre-release after a fresh install of release didn't work. It also says getting new data, but never does?
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 05:40:54 workflow.py:1386 DEBUG Reading settings from `/Users/shank/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
05:40:54 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'os01sv01']
05:40:54 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
05:40:54 lpvs_query.py:39 DEBUG Parsed argument: os01sv01
05:40:54 lpvs_query.py:40 DEBUG Parsed delimiter: >
05:40:54 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query os01sv01
05:40:54 lpvs_query.py:52 DEBUG Executing command: search-vault-for-query
05:40:54 background.py:180 DEBUG Command arguments cached to `/Users/shank/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache`
05:40:54 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/shank/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.4F4FFD37-3D0E-4B09-9D9D-1F19B8520032/workflow/background.pyc', u'update'] ...
05:40:54 workflow.py:1996 DEBUG Workflow finished in 0.001 seconds.
05:40:54 workflow.py:1996 DEBUG Workflow finished in 0.002 seconds.
05:40:54 background.py:189 DEBUG Executing task `update` in background...
05:40:54 utilities.py:231 DEBUG Search results: None
05:40:54 workflow.py:1996 DEBUG Workflow finished in 0.097 seconds.
from lp-vault-manager.
I'll add myself among those experiencing apparently the same problem. I definitely am getting the
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
When running the lpdd command.
from lp-vault-manager.
Thanks for the feedback @nicatronTg and @jlongrc; this is a bugger of a bug. What happens if you open the workflow's folder in Terminal and run /usr/bin/python update.py
? What output do you get?
from lp-vault-manager.
@bachya I was prompted for my master password twice when I ran that, and got:
➜ user.workflow.4F4FFD37-3D0E-4B09-9D9D-1F19B8520032 /usr/bin/python update.py
12:25:51 workflow.py:1386 DEBUG Reading settings from `/Users/shank/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
12:26:10 workflow.py:1645 DEBUG Cached data saved at : /Users/shank/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
12:26:10 update.py:26 DEBUG 639 vault items cached.
12:26:10 workflow.py:2140 WARNING Can't save last version: workflow has no version
12:26:10 workflow.py:1996 DEBUG Workflow finished in 18.642 seconds.
➜ user.workflow.4F4FFD37-3D0E-4B09-9D9D-1F19B8520032
from lp-vault-manager.
Thanks, @nicatronTg – it's good to see this line:
12:26:10 update.py:26 DEBUG 639 vault items cached.
Now, if you run lpvs
and search your vault for a site you know exists, what do you see?
from lp-vault-manager.
@bachya that definitely caused it to kick in gear -- maybe it lost the login state somehow?
from lp-vault-manager.
@nicatronTg Very intriguing. Will you do me a favor? Install this pre-release of 4.2, run lpdd
again (which should blow away your existing cache and re-download it), then try lpvs
again?
from lp-vault-manager.
@bachya looks like it worked out of the box.
from lp-vault-manager.
@nicatronTg Let's do one last "nuclear" test. :)
- Open the directory that holds the cached data:
open ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow\ Data/com.bachya.lpvm
- Delete all files in that directory.
- In Terminal, run
lpass logout --force
to log yourself out.
With all that done:
- Run
lpsettings
and select Modify LastPass Settings >> Login To LastPass. - Assuming that goes well, run
lpvs build01
– you should see a result that says "Getting new data from LastPass." - Wait approximately 5 seconds.
- Run
lpvs build01
again.
Let me know where any breaks occur.
from lp-vault-manager.
@avallen @MattKneale @shkm @AnxiousGummi Gents, would love for you to try out the new pre-release, as well; I think/hope we're closing in on resolving this issue. Instructions above.
from lp-vault-manager.
@bachya - I followed the instructions above, but I do not see the "Getting new data from LastPass." message.
lpvs
now says "No items matching <search term>". This does not change after doing a manual lpdd
.
Here's the debut output of an lpvs invocation:
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 00:40:43 workflow.py:1386 DEBUG Reading settings from `/Users/andreas/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
00:40:44 workflow.py:1960 DEBUG Workflow version : 4.2.0
00:40:44 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'g']
00:40:44 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
00:40:44 lpvs_query.py:39 DEBUG Parsed argument: g
00:40:44 lpvs_query.py:40 DEBUG Parsed delimiter: >
00:40:44 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query g
00:40:44 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
00:40:44 background.py:180 DEBUG Command arguments cached to `/Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache`
00:40:44 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/andreas/Dropbox/Applications/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3F178CC-1C72-4B5A-9C98-5D5AE1599900/workflow/background.pyc', u'update'] ...
00:40:44 workflow.py:1960 DEBUG Workflow version : 4.2.0
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.015 seconds.
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.016 seconds.
00:40:44 background.py:189 DEBUG Executing task `update` in background...
00:40:44 utilities.py:221 DEBUG Search results: None
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.085 seconds.
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 00:40:44 workflow.py:1386 DEBUG Reading settings from `/Users/andreas/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
00:40:44 workflow.py:1960 DEBUG Workflow version : 4.2.0
00:40:44 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'google']
00:40:44 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
00:40:44 lpvs_query.py:39 DEBUG Parsed argument: google
00:40:44 lpvs_query.py:40 DEBUG Parsed delimiter: >
00:40:44 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query google
00:40:44 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
00:40:44 background.py:180 DEBUG Command arguments cached to `/Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache`
00:40:44 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/andreas/Dropbox/Applications/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3F178CC-1C72-4B5A-9C98-5D5AE1599900/workflow/background.pyc', u'update'] ...
00:40:44 workflow.py:1960 DEBUG Workflow version : 4.2.0
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.016 seconds.
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.017 seconds.
00:40:44 background.py:189 DEBUG Executing task `update` in background...
00:40:44 utilities.py:221 DEBUG Search results: None
00:40:44 workflow.py:1996 DEBUG Workflow finished in 0.084 seconds.
from lp-vault-manager.
@avallen What happens if you open the workflow's folder in Terminal and run /usr/bin/python update.py
? What output do you get?
from lp-vault-manager.
I get the following output and am asked from the lp master password in the process:
andreas:~/Dropbox/Applications/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3F178CC-1C72-4B5A-9C98-5D5AE1599900 $ /usr/bin/python update.py
00:55:49 workflow.py:1960 DEBUG Workflow version : 4.2.0
00:55:49 workflow.py:1386 DEBUG Reading settings from `/Users/andreas/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
00:55:59 workflow.py:1645 DEBUG Cached data saved at : /Users/andreas/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
00:55:59 update.py:26 DEBUG 644 vault items cached.
00:55:59 workflow.py:2151 DEBUG Set last run version : 4.2.0
00:55:59 workflow.py:1996 DEBUG Workflow finished in 9.724 seconds.
from lp-vault-manager.
I'm glad to see this line:
00:55:59 update.py:26 DEBUG 644 vault items cached.
What happens now if you run lpvs
?
from lp-vault-manager.
yay! Now it works :-)
from lp-vault-manager.
Okay! I think we're zeroing in on what's going on: it seems like LastPass is getting logged out, but instead of notifying you, the workflow just hangs.
A few more questions:
- If you run
lpsettings
and select Edit Config File, what is the value of the path key under lastpass? - In Terminal, if you log out of
lpass
(lpass logout --force
), what happens when you runlpass ls
? What gets output?
from lp-vault-manager.
@bachya that one got into a worse state than before:
E: that was following earlier instructions. Trying your latest stuff.
from lp-vault-manager.
@bachya here's some info for you:
Path: "path": "/usr/local/bin/lpass",
➜ user.workflow.4F4FFD37-3D0E-4B09-9D9D-1F19B8520032 lpass logout --force
Log out: complete.
➜ user.workflow.4F4FFD37-3D0E-4B09-9D9D-1F19B8520032 lpass ls
Error: Could not find decryption key. Perhaps you need to login with `lpass login`.
Edit: lpdd
doesn't do anything at all for me -- no notification is posted so I'm assuming the script is hanging. During this time, lpass ls
still works and lists sites like it should.
from lp-vault-manager.
@bachya, sorry for the delay, here we go:
Path key value is: "path": "/usr/local/bin/lpass",
The output is the same as for the previous user:
andreas:~ $ lpass logout --force
Log out: complete.
andreas:~ $ lpass ls
Error: Could not find decryption key. Perhaps you need to login with `lpass login`.
Additionally: If I try to use lpvs
now, then it says:
Pressing <Enter> however won't have any effect.
from lp-vault-manager.
@bachya Unfortunately 4.2 broke it entirely for me. Here's the error:
Starting debug for 'LastPass Vault Manager'
[ERROR: alfred.workflow.input.scriptfilter] Code 1: 09:51:01 workflow.py:1386 DEBUG Reading settings from /Users/mattkneale/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
Traceback (most recent call last):
File "lpvs_query.py", line 190, in
if not util.is_logged_in():
File "/Users/mattkneale/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.CBBA62A0-86F6-46C5-BD63-CD3EC1C7055E/utilities.py", line 148, in is_logged_in
[self.wf.settings['lastpass']['path'], 'ls']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[ERROR: alfred.workflow.input.scriptfilter] Code 1: 09:51:01 workflow.py:1386 DEBUG Reading settings from /Users/mattkneale/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
Traceback (most recent call last):
File "lpvs_query.py", line 190, in
if not util.is_logged_in():
File "/Users/mattkneale/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.CBBA62A0-86F6-46C5-BD63-CD3EC1C7055E/utilities.py", line 148, in is_logged_in
[self.wf.settings['lastpass']['path'], 'ls']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
from lp-vault-manager.
I am actually having the same issue -- except when I run lpvm from the command line, I get the following error:
15:07:17 workflow.py:1978 ERROR No module named LastPassVaultManager
I'm using 4.2. Any ideas? I can login just fine and other functions such as lpbrowser seem to work.
from lp-vault-manager.
I've gone through the same process as @avallen and now it seems to be working (at least, for the past few minutes). Using 4.2 pre-release. It definitely did not work until I ran update.py in terminal from the workflow's folder.
What I wonder now is whether changes to my vault will get pushed to LPVM? Or if I will likely need to go back through this process? Hopefully my feedback is helpful, and I'll let you know how it behaves as time goes on.
from lp-vault-manager.
Hi all,
Sorry for the delay. These issue(s) are a bugger; I can't reproduce them on my side at all.
I'm wondering if there's something procedural going on. Let me walk through what I do and see if it lines up with you. Note that I'm using the 4.2 pre-release.
Downloading Data
When I run lpdd
via Alfred itself, this is what I see in the logs for that "Run Script" (not the lpdd
"Keyword" itself):
[ERROR: alfred.workflow.action.script] Code 0: 11:46:45 workflow.py:1386 DEBUG Reading settings from `/Users/abach/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
11:46:45 workflow.py:1960 DEBUG Workflow version : 4.2.0
11:46:45 lpdd_exec.py:22 DEBUG Exec arguments: [u'download-data']
11:46:45 lpdd_exec.py:34 DEBUG Parsed command: download-data
11:46:45 lpdd_exec.py:35 DEBUG Parsed argument: None
11:46:45 lpdd_exec.py:36 DEBUG Parsed delimiter: >
11:46:45 lpdd_exec.py:43 DEBUG Executing command: download-data
11:46:46 utilities.py:66 DEBUG 369 LastPass vault items cached.
11:46:46 workflow.py:1645 DEBUG Cached data saved at : /Users/abach/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
11:46:46 workflow.py:1996 DEBUG Workflow finished in 1.165 seconds.
(The most relevant line comes from utilities.py
; 369 items were cached.)
Searching the Vault
Then, when I run lpvs amazon
, I see the following in the lpvs
"Script Filter" log:
[ERROR: alfred.workflow.input.scriptfilter] Code 0: 11:48:33 workflow.py:1386 DEBUG Reading settings from `/Users/abach/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...
11:48:33 workflow.py:1960 DEBUG Workflow version : 4.2.0
11:48:33 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'amazon']
11:48:33 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
11:48:33 lpvs_query.py:39 DEBUG Parsed argument: amazon
11:48:33 lpvs_query.py:40 DEBUG Parsed delimiter: >
11:48:33 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query amazon
11:48:33 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
11:48:33 workflow.py:1609 DEBUG Loading cached data from : /Users/abach/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
11:48:33 utilities.py:221 DEBUG Search results: [{'url': u'https://www.amazon.com/gp/cart/view.html/ref=ox_sc_proceed', 'hostname': u'(Accepted Share Offers)/BEB Amazon'}, {'url': u'https://www.amazon.com/gp/sign-in.html?ie=UTF8&email=&disableCorpSignUp=&path=%2Fgp%2Fyourstore&redirectProtocol=&mode=&useRedirectOnSuccess=1&query=signIn%3D1%26ref%5F%3Dpd%5Firl%5Fgw&pageAction=%2Fgp%2Fyourstore', 'hostname': u'Personal/Amazon'}, {'url': u'https://signin.aws.amazon.com/oauth?SignatureVersion=4&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJMOATPLHVSJ563XQ&X-Amz-Date=2014-06-24T22%3A13%3A50.543Z&X-Amz-Signature=e44c0211e194d60655621b454bbc189d9a7837e356dcab5d04150341e664f8b4&X-Amz-SignedHeaders=host&client_id=arn%3Aaws%3Aiam%3A%3A015428540659%3Auser%2Fhomepage&redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3Fstate%3DhashArgs%2523%26isauthcode%3Dtrue&response_type=code&state=hashArgs%23', 'hostname': u'FWI/Amazon S3 (Dev)'}, {'url': u'https://signin.aws.amazon.com/oauth?SignatureVersion=4&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJMOATPLHVSJ563XQ&X-Amz-Date=2014-06-24T22%3A11%3A40.620Z&X-Amz-Signature=4759d13ac8b13ffc59cb3d955ba0a07623a864dbd1eaef7f284dbf3fa09d09f9&X-Amz-SignedHeaders=host&client_id=arn%3Aaws%3Aiam%3A%3A015428540659%3Auser%2Fhomepage&redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3Fstate%3DhashArgs%2523%26isauthcode%3Dtrue&response_type=code&state=hashArgs%23', 'hostname': u'FWI/Amazon S3 (FWi Store)'}]
11:48:33 workflow.py:1996 DEBUG Workflow finished in 0.021 seconds.
...and I see what I'd expect:
Logging In and Out
When logged out of LastPass, I see this:
Hitting ENTER causes Alfred to re-search for this:
(The full line is: >/usr/local/bin/lpass login [email protected] && exit
.)
When I hit ENTER, a Terminal opens and I'm asked to enter my LastPass master password; once done, Terminal closes. Then, lpvs <query>
works as it did before.
Is there anything I've described here that, tactically, is different than what you're doing?
from lp-vault-manager.
Many things seem to be different for me. For example, when I run the lpdd command via alfred, all I get in the log is:
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
I get no log messages when running lpvs
.
What's interesting is that when I run lpvm via the command line, this is the result:
18:35:21 workflow.py:1386 DEBUG Reading settings from /Users/bryan/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json ...
18:35:21 workflow.py:1960 DEBUG Workflow version : 4.2.0
18:35:21 workflow.py:1978 ERROR No module named LastPassVaultManager
Traceback (most recent call last):
File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/workflow/workflow.py", line 1971, in run
func(self)
File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/lpvm.py", line 205, in main
from LastPassVaultManager import LastPassVaultManager
ImportError: No module named LastPassVaultManager
18:35:21 workflow.py:1996 DEBUG Workflow finished in 0.014 seconds.
from lp-vault-manager.
Many things seem to be different for me. For example, when I run the lpdd command via alfred, all I get in the log is:
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg ''
That looks like a log that would come from the lpdd
Keyword, not the "Run Script" action connected to it. Make sure you highlight the action before looking at the logs:
What's interesting is that when I run lpvm via the command line, this is the result:
18:35:21 workflow.py:1386 DEBUG Reading settings from /Users/bryan/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json ... 18:35:21 workflow.py:1960 DEBUG Workflow version : 4.2.0 18:35:21 workflow.py:1978 ERROR No module named LastPassVaultManager Traceback (most recent call last): File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/workflow/workflow.py", line 1971, in run func(self) File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/lpvm.py", line 205, in main from LastPassVaultManager import LastPassVaultManager ImportError: No module named LastPassVaultManager 18:35:21 workflow.py:1996 DEBUG Workflow finished in 0.014 seconds.```
That log mentions lpvm.py
, which I stopped using several versions ago – it looks like you're running an old version of the workflow.
from lp-vault-manager.
My lpdd run script produces this error:
[ERROR: alfred.workflow.action.script] Code 1: 09:34:28 workflow.py:1386
DEBUG Reading settings from /Users/mattkneale/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
09:34:28 workflow.py:1960 DEBUG Workflow version : 4.2.0
09:34:28 lpdd_exec.py:22 DEBUG Exec arguments: [u'download-data']
09:34:28 lpdd_exec.py:34 DEBUG Parsed command: download-data
09:34:28 lpdd_exec.py:35 DEBUG Parsed argument: None
09:34:28 lpdd_exec.py:36 DEBUG Parsed delimiter: >
09:34:28 lpdd_exec.py:43 DEBUG Executing command: download-data
09:34:28 workflow.py:1978 ERROR [Errno 2] No such file or directory
Traceback (most recent call last):
File "/Users/mattkneale/Library/Application Support/Alfred
2/Alfred.alfredpreferences/workflows/user.workflow.CBBA62A0-86F6-46C5-BD63-CD3EC1C7055E/workflow/workflow.py",
line 1971, in run
func(self)
File "lpdd_exec.py", line 44, in main
data = util.download_data()
File "/Users/mattkneale/Library/Application Support/Alfred
2/Alfred.alfredpreferences/workflows/user.workflow.CBBA62A0-86F6-46C5-BD63-CD3EC1C7055E/utilities.py",
line 65, in download_data
data = self.lpvm.download_data()
File "/Users/mattkneale/Library/Application Support/Alfred
2/Alfred.alfredpreferences/workflows/user.workflow.CBBA62A0-86F6-46C5-BD63-CD3EC1C7055E/lpvaultmanager.py",
line 84, in download_data
[self.lpass_path, LPASS_COMMAND_DOWNLOAD]
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 709, in init
errread, errwrite)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
09:34:28 workflow.py:1996 DEBUG Workflow finished in 0.053 seconds.
On 23 January 2015 at 03:29, Aaron Bach [email protected] wrote:
Many things seem to be different for me. For example, when I run the lpdd
command via alfred, all I get in the log is:[INFO: alfred.workflow.input.keyword] Processing output
'alfred.workflow.action.script' with arg ''That looks like a log that would come from the lpdd Keyword, not the "Run
Script" action connected to it. Make sure you highlight the action before
looking at the logs:[image: screen shot 2015-01-22 at 8 27 34 pm]
https://cloud.githubusercontent.com/assets/47216/5869356/2031197e-a275-11e4-80db-11513e90338a.pngWhat's interesting is that when I run lpvm via the command line, this is
the result:18:35:21 workflow.py:1386 DEBUG Reading settings from /Users/bryan/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json ...
18:35:21 workflow.py:1960 DEBUG Workflow version : 4.2.0
18:35:21 workflow.py:1978 ERROR No module named LastPassVaultManager
Traceback (most recent call last):
File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/workflow/workflow.py", line 1971, in run
func(self)
File "/Users/bryan/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.0B1E83B4-B341-434B-BB2D-175DE406DAC6/lpvm.py", line 205, in main
from LastPassVaultManager import LastPassVaultManager
ImportError: No module named LastPassVaultManager
18:35:21 workflow.py:1996 DEBUG Workflow finished in 0.014 seconds.```That log mentions lpvm.py, which I stopped using several versions ago –
it looks like you're running an old version of the workflow.—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from lp-vault-manager.
I definitely have the most current version but I'm happy to uninstall and reinstall. Is there a recommended way to uninstall which will remove config files, etc.?
from lp-vault-manager.
@bdsivak Try this: right-click on the workflow in Alfred and delete it outright; then, install the 4.2 release and see what happens.
from lp-vault-manager.
@MattKneale It looks like your version is failing to run lpass
. Can you open the config file (open ~/Library/Application\ Support/Alfred\ 2/Workflow\ Data/com.bachya.lpvm/settings.json
) and show me what values you have in it?
from lp-vault-manager.
On 26 January 2015 at 15:53, Aaron Bach [email protected] wrote:
open ~/Library/Application\ Support/Alfred\ 2/Workflow
Data/com.bachya.lpvm/settings.json
Hi @bachya here's the settings.json:
{
"__workflow_last_version": "4.2.0",
"general": {
"browser": "1",
"cache_bust": 300
},
"lastpass": {
"path": "/usr/local/bin/lpass",
"username": "[email protected]"
},
"passwords": {
"avoid_ambiguous": true,
"length": 20,
"number": 10,
"use_digits": true,
"use_lowercase": true,
"use_symbols": true,
"use_uppercase": true
}
}
from lp-vault-manager.
@bachya did that, same behavior. Just as another example, when I run lpsettings lastpass-login
, nothing happens (there's no response), and no generated log info in the debug panel (although I do get log info for lpsettings
and lpsettings list-lp-settings
).
from lp-vault-manager.
I don't want to just me too, but I am seeing the same issue. lpsettings lastpass-login does not fire the login script. Doing it from the terminal python lpsettings_query.py
will fire the login.
Force logging out lpass logout --force will allow the alfred shorcut to run.
from lp-vault-manager.
OK. I think I've figured it out.
Many of my sites require a password reprompt. This causes things like lpass export
and lpass show
to require re-authentication. If you run the scripts manually it opens the login screen. But... if you use the script workflow component that prompt is never shown.
When you look in the process list you will see many python download-data get-details (not real names) process running. These never finish.
I'm trying to figure out how to have the same reprompt that the workflow uses to handle this. Not sure if it will work.
I'll let you know what I figure out.
FOLLOWUP There is no way to tell if the password requires re-authentication. I can see in the lpass-cli code where it is stored in the datastructure, but that isn't exposed anywhere through the commandline to query. Unless we run everything through a run in terminal, somehow spawn some other interactive prompt, or see if we can patch some gui password prompting into lpass-cli, I'm stumped.
Bummer I really wanted this. I'll keep thinking.
from lp-vault-manager.
It looks like my ticket was closed, so I will post my issue here.
When I did this command:
python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvm.py search-vault "amazon"
I get this result:
18:19:50 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
18:19:50 workflow.py:1960 DEBUG Workflow version : 4.2.0
18:19:50 workflow.py:1978 ERROR No module named LastPassVaultManager
Traceback (most recent call last):
File "/Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/workflow/workflow.py", line 1971, in run
func(self)
File "/Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvm.py", line 205, in main
from LastPassVaultManager import LastPassVaultManager
ImportError: No module named LastPassVaultManager
18:19:50 workflow.py:1996 DEBUG Workflow finished in 0.046 seconds.
from lp-vault-manager.
I've the same error of a lot of people, (no items matching "whatever.com").
I've tried to understand why, and I've found out that it fails under lpvs_query.py in the function output_details_results(). Here it calls the utilities.py function search_vault_for_query().
I don't know why, it should return a dataset in result but it ends up empty.
I've tried the commands under lpass and they work like charm
from lp-vault-manager.
@markerx: that Terminal command references a file that has since been removed (it is no longer present in the source), so it's going to fail. A more accurate (and perhaps more relevant) test would be:
/usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvs_query.py search-vault-for-query 'amaz'
@giulios123: When you say you "tried the commands under lpass," what do you mean?
@warthurton: Thanks for digging so much. What's stumping me: why does it run fine on my rather vanilla setup (and several others), yet fail on still others?
from lp-vault-manager.
I mean that commands like lpass export works perfectly showing my passwords, so at least in my case is not lpass related the issue... while is related on the way it's fetched and filled the result dataset in the specified methods. any idea?
from lp-vault-manager.
@giulios123: Not really, unfortunately. Like I mentioned above, the workflow works exactly like it should on my machine.
I fear that something in Alfred is amiss – if you run:
/usr/bin/python /path/to/lpvs_query.py search-vault-for-query '<QUERY>'
...do you see the XML you expect?
from lp-vault-manager.
no that's the point... it ends up 23:24 utilities.py:221 DEBUG Search results: None which makes me think the problem is in the result list... which seems to be empty...
from lp-vault-manager.
@giulios123: If you run:
open ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow\ Data/com.bachya.lpvm/
...what files do you see in Finder?
from lp-vault-manager.
When I run:
/usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvs_query.py search-vault-for-query 'google.com'
I get:
15:40:52 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:40:53 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:40:53 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'google.com']
15:40:53 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
15:40:53 lpvs_query.py:39 DEBUG Parsed argument: google.com
15:40:53 lpvs_query.py:40 DEBUG Parsed delimiter: >
15:40:53 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query google.com
15:40:53 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
15:40:53 background.py:180 DEBUG Command arguments cached to /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache
15:40:53 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/workflow/background.pyc', u'update'] ...
15:40:53 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:40:53 workflow.py:1996 DEBUG Workflow finished in 0.016 seconds.
15:40:53 workflow.py:1996 DEBUG Workflow finished in 0.017 seconds.
15:40:53 background.py:189 DEBUG Executing task update
in background...
15:40:53 utilities.py:221 DEBUG Search results: None
<title>No items matching "google.com".</title>View the lpvs
debug log for more information.icons/warning.png15:40:53 workflow.py:1996 DEBUG Workflow finished in 0.121 seconds.
from lp-vault-manager.
@markerx: That looks like it ran the update script correctly. Run it one more time for me?
from lp-vault-manager.
@bachya I see 3 files (__workflow_update_status.cpickle, com.bachya.lpvm.log, gh-releases-bachya-lp-vault-manager.cpickle)
@markerx I have exactly the same debug (with different time stamps)
from lp-vault-manager.
@bachya I ran it again:
Brandon$ /usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvs_query.py search-vault-for-query 'google.com'
15:46:45 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:46:46 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:46:46 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'google.com']
15:46:46 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
15:46:46 lpvs_query.py:39 DEBUG Parsed argument: google.com
15:46:46 lpvs_query.py:40 DEBUG Parsed delimiter: >
15:46:46 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query google.com
15:46:46 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
15:46:46 background.py:180 DEBUG Command arguments cached to /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache
15:46:46 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/workflow/background.pyc', u'update'] ...
15:46:46 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:46:46 workflow.py:1996 DEBUG Workflow finished in 0.024 seconds.
15:46:46 workflow.py:1996 DEBUG Workflow finished in 0.025 seconds.
15:46:46 background.py:189 DEBUG Executing task update
in background...
15:46:46 utilities.py:221 DEBUG Search results: None
<title>No items matching "google.com".</title>View the lpvs
debug log for more information.icons/warning.png15:46:46 workflow.py:1996 DEBUG Workflow finished in 0.139 seconds.
from lp-vault-manager.
@giulios123 and @markerx: Looks like the data is never getting downloaded in your case. Let's try this – run:
/usr/local/bin/python /path/to/lpdd_exec.py download-data
...in Terminal and let me know what output you get.
from lp-vault-manager.
Ran:
Brandon$ /usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpdd_exec.py download-data
Result:
15:51:42 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:51:42 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:51:42 lpdd_exec.py:22 DEBUG Exec arguments: [u'download-data']
15:51:42 lpdd_exec.py:34 DEBUG Parsed command: download-data
15:51:42 lpdd_exec.py:35 DEBUG Parsed argument: None
15:51:42 lpdd_exec.py:36 DEBUG Parsed delimiter: >
15:51:42 lpdd_exec.py:43 DEBUG Executing command: download-data
pinentry-curses: no LC_CTYPE known - assuming UTF-8
15:51:51 utilities.py:66 DEBUG 1268 LastPass vault items cached.
15:51:51 workflow.py:1645 DEBUG Cached data saved at : /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
LastPass metadata successfully downloaded.
15:51:51 workflow.py:1996 DEBUG Workflow finished in 8.314 seconds.
MBA2014:~ Brandon$ /usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpdd_exec.py download-data
15:51:56 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
15:51:56 workflow.py:1960 DEBUG Workflow version : 4.2.0
15:51:56 lpdd_exec.py:22 DEBUG Exec arguments: [u'download
from lp-vault-manager.
@bachya I took the freedom to debug a little more... I've found out in the method search_vault_for_query under utilities.py the method cached data is failing to fill results with the required passwords (aka, is None)
line 204 -> results = self.wf.cached_data('vault_items', None, max_age=0)
and I receive the same output
from lp-vault-manager.
Update, after doing lpdd_exec.py download-data I finally see passwords... but have I to do it every time?
from lp-vault-manager.
@markerx: Looks like it cached 1,268 vault items, which is good. What happens if you run lpvs
now?
@giulios123: That's expected; by default, if you have no cached LastPass vault items, a background process gets spun up to go download them; in the meantime, that function returns None
(as you note), which I handle higher up the chain.
It looks like lpvs
is failing to download cached results if they don't exist on your end. Again, unfortunately, I don't have that problem on my side, so I'm not sure what to debug.
from lp-vault-manager.
Same result:
lpvs Google.com
Search Vault
searching vault...
I am not sure how you guys are getting those screen shots, my alfred bar disappears before I can get a screen grab :)
from lp-vault-manager.
@markerx: Try Cmd+Shift+4, hit space, then highlight your Alfred window and click. :)
from lp-vault-manager.
There we go!
from lp-vault-manager.
@markerx: Let's try a manual update using the same mechanism that lpvs
uses. Run:
/usr/bin/python /path/to/update.py
...in Terminal and let me know what happens?
from lp-vault-manager.
Ok, ran:
Brandon$ /usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/update.py
Result:
16:16:27 workflow.py:1960 DEBUG Workflow version : 4.2.0
16:16:27 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
pinentry-curses: no LC_CTYPE known - assuming UTF-8
16:16:35 workflow.py:1645 DEBUG Cached data saved at : /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
16:16:35 update.py:26 DEBUG 1268 vault items cached.
16:16:35 workflow.py:2151 DEBUG Set last run version : 4.2.0
16:16:35 workflow.py:1996 DEBUG Workflow finished in 7.662 seconds.
from lp-vault-manager.
from lp-vault-manager.
@markerx: Thank you. Let's keep going. Try this:
/usr/bin/python /path/to/lpvs_query.py search-vault-for-query 'google'
(Try getting rid of the .com
part; let's see if we can nail down where the problem is.)
from lp-vault-manager.
For me was enough the /usr/local/bin/python /path/to/lpdd_exec.py download-data to create the vault, but it seems it gets no update.. I'll dig more to see if it's working or not
from lp-vault-manager.
Ok, ran:
Brandon$ /usr/bin/python /Users/Brandon/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/lpvs_query.py search-vault-for-query 'github'
Result:
16:23:52 workflow.py:1386 DEBUG Reading settings from /Users/Brandon/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json
...
16:23:53 workflow.py:1960 DEBUG Workflow version : 4.2.0
16:23:53 lpvs_query.py:30 DEBUG Query arguments: [u'search-vault-for-query', u'github']
16:23:53 lpvs_query.py:38 DEBUG Parsed command: search-vault-for-query
16:23:53 lpvs_query.py:39 DEBUG Parsed argument: github
16:23:53 lpvs_query.py:40 DEBUG Parsed delimiter: >
16:23:53 lpvs_query.py:41 DEBUG Parsed query: search-vault-for-query github
16:23:53 lpvs_query.py:53 DEBUG Executing command: search-vault-for-query
16:23:53 workflow.py:1609 DEBUG Loading cached data from : /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle
16:23:53 background.py:180 DEBUG Command arguments cached to /Users/Brandon/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/update.argcache
16:23:53 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EAFF1D69-B788-407C-8B7A-6DD63E81C1C5/workflow/background.pyc', u'update'] ...
16:23:53 workflow.py:1960 DEBUG Workflow version : 4.2.0
16:23:53 workflow.py:1996 DEBUG Workflow finished in 0.017 seconds.
16:23:53 workflow.py:1996 DEBUG Workflow finished in 0.018 seconds.
16:23:53 background.py:189 DEBUG Executing task update
in background...
16:23:53 utilities.py:221 DEBUG Search results: [{'url': u'https://github.com/login?return_to=%2Fnatew%2Fobtvse', 'hostname': u'github.com'}]
<title>github.com</title>TAB to explore; ENTER to copy password; ⌘-Click to copy username; Shift-Click to open URL⌘-Click to copy username.Shift-Click to open the URL.get-password github.com***https://github.com/login?return_to=%2Fnatew%2Fobtvse16:23:53 workflow.py:1996 DEBUG Workflow finished in 0.138 seconds.
Also: I might note, each time I run one of these commands, I am required to enter my LastPass password.
from lp-vault-manager.
@markerx: Looks like you got the right result. That's interesting that you have to re-enter the password each time; did you look this section of the documentation?
from lp-vault-manager.
@bachya where would I add this line?
export LPASS_AGENT_TIMEOUT=0
from lp-vault-manager.
@markerx: Depends on what shell you use – if you use Bash, you'd put that in ~/.bashrc
; if you use ZSH, you'd put that in ~/.zshrc
.
from lp-vault-manager.
@bachya -
So here is where we are at:
When using Terminal:
- lpdd_exec.py download-data works.
- update.py works.
- lpvs_query.py search-vault-for-query 'github' works.
In Finder
- my vault_items.cpickle is populated
In Alfred
- LPDD does not seem to update vault_items.cpickle, nor display any debug information in Alfred.
- LPVS does not seem to work, nor display any debug information in Alfred.
I bet you never thought about the can of worms you would be opening by attempting to share a Alfred Workflow with the community :)
from lp-vault-manager.
@bachya Ok, I think I got one step forward, I've found out why it doesn't update and why LPDD is not working properly (and obviously, why I had to create manually the vault). It seems that the lpass version we are using (last one), requires master password download all the passwords, so each time we ask lpdd to update our pass, it get stuck at the request. (I think is a setting under lastpass website itself). Is there any way during the update process to open the terminal to insert the masterpass?
from lp-vault-manager.
@bachya can you do lpass --version for me? Because I think I've found a possible failure point.
from lp-vault-manager.
Related Issues (20)
- lpvs fails with error HOT 15
- No output HOT 12
- lpdd failing to download data HOT 10
- Failed to login HOT 6
- ignore password in Clipboard HOT 3
- Cannot Access lpsettings or any lp commands HOT 2
- Master password reprompts not handled correctly HOT 1
- Copied Passwords Adding a CR
- Sending password to current window instead of copying to clipboard
- lpvs KeyError: u'hostname' HOT 19
- Can't login with Alfred 3 HOT 8
- lpvs fails with error HOT 5
- Doesn't work on latest version of Alfred
- Searching never completes HOT 2
- Cannot Set Settings HOT 10
- Apparently not caching any vault data HOT 1
- lpdd fails silently HOT 14
- lpvs not finding anything HOT 3
- LPVS Fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lp-vault-manager.