Jump to content

bachya

Member
  • Posts

    32
  • Joined

  • Last visited

  • Days Won

    4

bachya last won the day on July 2 2015

bachya had the most liked content!

Contact Methods

  • Twitter
    @bachya

Profile Information

  • Location
    Colorado

Recent Profile Visitors

1,111 profile views

bachya's Achievements

Member

Member (4/5)

10

Reputation

  1. Version 4.2 released: Fixed a bug where the full path to /usr/bin/python was not specified. Fixed a settings selection bug. Streamlined some verbiage within notifications.
  2. Version 4.1 released: Implemented auto-updating. Fixed a few small path bugs. For those who are having issues with the Script Filters sometimes not working: I've implemented all the advice from this thread, but no visible change to me thus far. Check this version and see if your situation improves at all.
  3. 10-4, Dean – thank you for your suggestions and bug finds. I'll debug further with the users. Amen to that. This has been a real pain.
  4. Hi again, Dean, I'm running into a reported issue within my workflow that seems very sporadic; I can't reproduce it all that well, but more than one other person has, so I want to give it a look. Since it uses your library, would you be willing to take a look? Here's the thread: http://www.alfredforum.com/topic/5356-script-filters-via-python-seem-to-sporadically-not-work/ Thanks so much!
  5. Workflow: LastPass Vault Manager Packal Page: http://www.packal.org/workflow/lastpass-vault-manager Alfred Forum Thread: http://www.alfredforum.com/topic/5293-lp-vault-manager-a-workflow-for-lastpass/ The Issue: A few (not all) users have been reporting that some of the Script Filters within my workflow don't seem to work. In particular, page 2 of the forum page and this GitHub issue report that although the Python scripts return the correct results, those results don't seem to translate into actually using the workflow. I'd love to get a few more people hammering on it and, if possible, see where the breaks are occurring (within Alfred, within the workflow, within individual user environments, etc.). Build Notes: The workflow makes use of the Alfred-Workflow Python library. The error reports state that a lot of debug information that is normally output by the library isn't showing up in their Alfred debug console. At the same time, running the Python scripts directly in the Terminal work as expected.
  6. That's the most concerning part: if it works via Terminal, it should work via Alfred. I simply cannot reproduce it. Because of that, I'm going to see if the Alfred community can help us out: http://www.alfredforum.com/topic/5356-script-filters-via-python-seem-to-sporadically-not-work/ Incidentally, what version of Alfred are you running?
  7. What is the exact value of Alfred when it comes up after you select "Login To LastPass" (it should be something like >/usr/local/bin/lpass login username@site.com)? Does the prefix character match what you have selected in "Terminal/Shell" in Alfred Preferences. Try highlighting the "Run Script" action connected to the "lpdd" keyword and running `lppd`. Assuming the download happens correctly, you most certainly should see something like this: Starting debug for 'LastPass Vault Manager' [ERROR: alfred.workflow.action.script] Code 0: 13:14:45 workflow.py:1386 DEBUG Reading settings from `/Users/abach/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ... 13:14:45 lpdd_exec.py:22 DEBUG Exec arguments: [u'download-data'] 13:14:45 lpdd_exec.py:34 DEBUG Parsed command: download-data 13:14:45 lpdd_exec.py:35 DEBUG Parsed argument: None 13:14:45 lpdd_exec.py:36 DEBUG Parsed delimiter: > 13:14:45 lpdd_exec.py:43 DEBUG Executing command: download-data 13:14:50 utilities.py:66 DEBUG Downloaded data: [{'url': 'http://lifehacker.com/people/bachya/', 'hostname': 'Personal/Lifehacker'}, {'url': 'https://www.elevationscu.com/', 'hostname': 'Personal/Elevations Credit Union'}, {'url': 'https://www.facebook.com/', 'hostname': 'Personal/Facebook'}, {'url': 'http://www.geico.com/', 'hostname': 'Personal/Geico'}, {'url': 'https://www.linkedin.com/secure/login?trk=hb_signin', 'hostname': 'Personal/LinkedIn'}, {'url': 'http://espn.go.com/', 'hostname': 'Personal/ESPN'}, {'url': 'https://www.last.fm/login', 'hostname': 'Personal/Last.FM'}, {'url': 'https://secure.newegg.com/NewMyAccount/AccountLogin.aspx', 'hostname': 'Personal/Newegg'}, {'url': 'https://addons.mozilla.org/en-US/firefox/users/login?to=en-US%2Ffirefox%2F', 'hostname': 'Personal/Mozilla'}, {'url': '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': 'Personal/Amazon'}, {'url': 'https://manage.slicehost.com/login', 'hostname': 'Personal/Slicehost'}, {'url': 'http://www.starwars.com/webapps/registration/sign-in.action?message=You+have+successfully+signed+off.%0A', 'hostname': 'Personal/starwars.com'}, {'url': 'http://wordpress.com', 'hostname': 'Personal/Wordpress'}, {'url': 'http://getsatisfaction.com/session/new', 'hostname': 'Personal/Get Satisfaction'}, {'url': 'https://www.shutterfly.com/signin/signin.sfly', 'hostname': 'Personal/Shutterfly'}, {'url': 'http://www.dyndns.com/', 'hostname': 'Personal/DynDNS'}, {'url': 'https://cart2.barnesandnoble.com/account/op.asp?x=01151712', 'hostname': 'Personal/Barnes & Noble'}, {'url': 'https://www.yelp.com/login?return_url=%2Fdenver', 'hostname': 'Personal/Yelp'}, {'url': 'http://www.macheist.com/loot', 'hostname': 'Personal/MacHeist'}, {'url': 'http://skitch.com/login/', 'hostname': 'Personal/Skitch'}, {'url': 'https://twitter.com/', 'hostname': 'Personal/Twitter'}, {'url': 'http://www.proactiv.com/#sign-in', 'hostname': 'Personal/Proactiv'}, {'url': 'http://musicbrainz.org', 'hostname': 'Personal/MusicBrainz'}, {'url': 'http://www.deviantart.com/users/lost-password/update', 'hostname': 'Personal/deviantART'}, {'url': 'https://reg.sun.com', 'hostname': 'Personal/Sun Microsystems'}, {'url': 'https://www.tiffany.com/Customer/Account/SignIn.aspx', 'hostname': 'Personal/Tiffany'}, {'url': 'https://github.com/login', 'hostname': 'Personal/Github'}, {'url': 'https://my.screenname.aol.com/_cqr/login/login.psp?sitedomain=startpage.aol.com&siteState=OrigUrl%3dhttp%3a%2f%2fwww.aol.com%2f&authLev=0〈=en&locale=us', 'hostname': 'Personal/AOL'}, {'url': 'https://www.redbox.com/Account/Login.aspx', 'hostname': 'Personal/Redbox'}, {'url': 'https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1k96igf4806cy&scc=1&ltmpl=default&ltmplcache=2', 'hostname': 'Personal/Google (bachya1208)'}, {'url': 'http://bit.ly/', 'hostname': 'Personal/bitly'}, {'url': 'http://consumerist.com', 'hostname': 'Personal/Consumerist'}, {'url': 'http://freeimages.com', 'hostname': 'Personal/Free Images'}, {'url': 'https://secure.www.denverpost.com/registration/?rPage=login&url=http%3A%2F%2Fwww.denverpost.com%2Fpremium%2Fbroncos%2Fci_13483974&eRightsSessionExpired=true&forced=true', 'hostname': 'Personal/Denver Post'}, {'url': 'https://www.discover.com/', 'hostname': 'Personal/Discover'}, {'url': 'http://du.edu', 'hostname': 'Personal/University of Denver'}, ... [INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.notification' with arg 'LastPass metadata successfully downloaded.' Barring that, what happens if, in Terminal, you run: ls ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow\ Data/com.bachya.lpvm/vault_items.cpickle ?
  8. Try the 4.0 pre-release and let me know if it helps? https://github.com/bachya/lp-vault-manager/releases/tag/pre-v4.0
  9. Tommy, I recommend you go to the lastpass-cli Issues Page and report this; something's not right. See what they can do to help?
  10. Got everything in place. For what it's worth, one additional thing I had to do was explicitly convert any "passed-along" text (meaning text that is passed as part of {query} to the next stage of the workflow) to UTF-8. Thanks for your help, again, Dean – much appreciated.
  11. Thank you for the detailed explanation, Dean. I will implement your suggestions and let you know if I run into any further trouble.
  12. A user of mine reported this today; fairly certain I have the latest version of the library installed (at least, whatever version pip gives me): Starting debug for 'LastPass Vault Manager' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 23:35:18 workflow.py:1598 DEBUG Loading cached data from : /Users/fmr/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle 23:35:18 workflow.py:1951 ERROR 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(128) Traceback (most recent call last): File "/Users/fmr/Dropbox/settings/alfred_2/Alfred.alfredpreferences/workflows/user.workflow.127EFC78-D2F5-47D5-BD4A-B4C80FBCFB73/workflow/workflow.py", line 1946, in run func(self) File "lpvm.py", line 246, in main search_vault(wf, vault, args.query) File "lpvm.py", line 141, in search_vault results = _search_vault(wf, vault, query) File "lpvm.py", line 40, in _search_vault match_on=MATCH_ALL ^ MATCH_ALLCHARS File "/Users/fmr/Dropbox/settings/alfred_2/Alfred.alfredpreferences/workflows/user.workflow.127EFC78-D2F5-47D5-BD4A-B4C80FBCFB73/workflow/workflow.py", line 1780, in filter value = key(item).strip() File "lpvm.py", line 88, in search_item_fields return ' '.join(elements) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(128) 23:35:18 workflow.py:1969 DEBUG Workflow finished in 0.790 seconds. Similar error as has been posted before, but I don't see any non-ASCII characters in the user's path. Any thoughts, or other information I can provide? I'm checking to see if the cached data that he's retrieving doesn't contain non-ASCII characters. Thanks!
  13. For what it's worth, I've created a fairly robust LastPass Alfred workflow; much more to come! http://www.alfredforum.com/topic/5293-lp-vault-manager-a-workflow-for-lastpass/
  14. That's so bizarre. According to their issues page, they added that command about a month ago (https://github.com/lastpass/lastpass-cli/issues/4). When you run `lpass` by itself, what gets output? FYI, I have the same version as you: abach@xxxxx ~ $ lpass --version LastPass CLI v0.3.0
  15. Because, when you're snowed in, there's no better time to code away. 3.1 published and it has some cool features: Entirely new settings/configuration management via `lpsettings`. Added ability to login to LastPass. Added ability to logout from LastPass. Added ability to configure filepath to `lpass`. Added new (and slimmer) icons. Environment-proofed Python path in all scripts and Script Filters. DIRECT DOWNLOAD GITHUB REPO PACKAL PAGE
×
×
  • Create New...