Jump to content

Guy Stan

Member
  • Content count

    21
  • Joined

  • Last visited

  1. Airports

    Thank Jeff! Yep, I am now using your workflow. Works very well. Thank you!
  2. Thanks Dean. I suppose there is no other repository with the same features as jackal for the moment?
  3. Airports

    I have tried versions 0.1.4 and 0.1.5 and both don't work.Version 0.1.3 works. When I input anything after the keyword "airport", I get an error message. I can't figure out why this is. Can you help? Here is the log: Starting debug for 'Airports' [2017-09-22 12:48:41][ERROR: input.scriptfilter] Code 1: 12:48:41 workflow.py:2249 DEBUG workflow version: 0.1.5 12:48:41 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/settings.json 12:48:41 workflow.py:2532 DEBUG Update check not due 12:48:41 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/__workflow_update_status.cpickle 12:48:41 workflow.py:2462 DEBUG update_data: {u'available': False} 12:48:41 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/airports.cpickle ./lib/unidecode/__init__.py:46: RuntimeWarning: Argument <class 'dotmap.DotMap'> is not an unicode object. Passing an encoded string will likely have unexpected results. _warn_if_not_unicode(string) 12:48:41 workflow.py:2267 ERROR 'DotMap' object is not callable Traceback (most recent call last): File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2260, in run func(self) File "airports.py", line 100, in main filtered_airports = wf.filter(airportquery, all_airports, key_for_airports, min_score=70, match_on=MATCH_ATOM | MATCH_SUBSTRING, include_score=True) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2076, in filter value = key(item).strip() File "airports.py", line 71, in key_for_airports searchkey = '{},{},{},{},{}'.format(unidecode(airport.iata_code), unidecode(airport.name), unidecode(airport.icao_code), unidecode(airport.country), unidecode(airport.city)) File "./lib/unidecode/__init__.py", line 48, in unidecode_expect_ascii bytestring = string.encode('ASCII') TypeError: 'DotMap' object is not callable 12:48:41 workflow.py:2290 DEBUG workflow finished in 0.687 seconds [2017-09-22 12:48:42][ERROR: input.scriptfilter] Code 1: 12:48:42 workflow.py:2249 DEBUG workflow version: 0.1.5 12:48:42 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/settings.json 12:48:42 workflow.py:2532 DEBUG Update check not due 12:48:42 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/__workflow_update_status.cpickle 12:48:42 workflow.py:2462 DEBUG update_data: {u'available': False} 12:48:42 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/airports.cpickle ./lib/unidecode/__init__.py:46: RuntimeWarning: Argument <class 'dotmap.DotMap'> is not an unicode object. Passing an encoded string will likely have unexpected results. _warn_if_not_unicode(string) 12:48:42 workflow.py:2267 ERROR 'DotMap' object is not callable Traceback (most recent call last): File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2260, in run func(self) File "airports.py", line 100, in main filtered_airports = wf.filter(airportquery, all_airports, key_for_airports, min_score=70, match_on=MATCH_ATOM | MATCH_SUBSTRING, include_score=True) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2076, in filter value = key(item).strip() File "airports.py", line 71, in key_for_airports searchkey = '{},{},{},{},{}'.format(unidecode(airport.iata_code), unidecode(airport.name), unidecode(airport.icao_code), unidecode(airport.country), unidecode(airport.city)) File "./lib/unidecode/__init__.py", line 48, in unidecode_expect_ascii bytestring = string.encode('ASCII') TypeError: 'DotMap' object is not callable 12:48:42 workflow.py:2290 DEBUG workflow finished in 0.646 seconds
  4. Also, with packal not really working for updates is there an easy way to update all workflows or does the user need to go and fetch updates one by one for each workflow?
  5. Is the development of Packal and "Packal Updater" by Shaun stopped? Is that why Vitor, you, and other key contributors have their own package update mechanisms now? Packal has been a great resource and it would be a shame to not have a central alfred workflow repository that also allows to keep things up to date.
  6. Hi Dean, Here is the info that I found in the log: 20:44:17 update_workflows.py:132 ERROR bad packal/package.xml in workflow u'/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.72743D30-3F8E-4030-932F-D8806264EAC3': not well-formed (invalid token): line 3, column 15 20:44:17 update_workflows.py:121 WARNING no bundleid in info.plist : /Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.9AD62F98-E484-4A19-A97B-B00CAFE9E4CF 20:44:17 update_workflows.py:121 WARNING no bundleid in info.plist : /Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.D322F5A0-9FC2-4341-9807-ABBEC77DD0AC Workflow "user.workflow.72743D30-3F8E-4030-932F-D8806264EAC3" seems to be this one: http://www.packal.org/workflow/files-and-folders The problem is in the file packal/package.xml, line 3, column 15: use of the character "&". I have corrected the error by replacing "&" with "and" for the name of the workflow and this solves the problem.
  7. I have deleted and reinstalled the workflow: user.workflow.6F088A5B-EE3A-4105-AB85-F26935B97995 Now this is what I get in the log: 12:03:35 workflow.py:2267 ERROR not well-formed (invalid token): line 3, column 15 Traceback (most recent call last): File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/workflow/workflow.py", line 2260, in run func(self) File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/update_workflows.py", line 168, in main wf.cached_data('workflows', get_workflows, max_age=max_age) File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/workflow/workflow.py", line 1890, in cached_data data = data_func() File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/update_workflows.py", line 133, in get_workflows local_workflows = get_installed_workflows() File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/update_workflows.py", line 92, in get_installed_workflows metadata.update(packal_metadata(packal_xml)) File "/Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.B8669C66-EC0B-4B21-86F5-BD221D9AACB7/update_workflows.py", line 58, in packal_metadata tree = ET.parse(xmlpath) File "<string>", line 62, in parse File "<string>", line 38, in parse ParseError: not well-formed (invalid token): line 3, column 15 12:03:35 background.py:242 ERROR [update] command failed with status 1
  8. Shall I remove the folder user.workflow.6F088A5B-EE3A-4105-AB85-F26935B97995?
  9. Hi Dean, Sorry, I didn't know about this. Here is the log when I launch the command "packal workflows" 10:52:32 workflow.py:2249 DEBUG workflow version: 1.3.0 10:52:32 packal.py:152 DEBUG 0 workflows in cache 10:52:32 packal.py:369 DEBUG Updating workflow lists... 10:52:32 packal.py:374 DEBUG update command : [u'/usr/bin/python', u'/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py'] 10:52:32 background.py:188 DEBUG [update] command cached: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-packal-search/update.argcache 10:52:32 background.py:192 DEBUG [update] passing job to background runner: [u'/usr/bin/python', '/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/workflow/background.pyc', u'update'] 10:52:32 workflow.py:2249 DEBUG workflow version: 1.3.0 10:52:32 background.py:197 DEBUG [update] background job started 10:52:32 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-packal-search/settings.json 10:52:32 background.py:237 DEBUG [update] running command: [u'/usr/bin/python', u'/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py'] 10:52:32 workflow.py:2441 DEBUG set last run version: 1.3.0 10:52:32 workflow.py:2290 DEBUG workflow finished in 0.118 seconds 10:52:33 workflow.py:2249 DEBUG workflow version: 1.3.0 10:52:33 update_workflows.py:87 WARNING no bundleid in info.plist : /Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.6F088A5B-EE3A-4105-AB85-F26935B97995 10:52:33 workflow.py:2267 ERROR not well-formed (invalid token): line 3, column 15 Traceback (most recent call last): File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/workflow/workflow.py", line 2260, in run func(self) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py", line 168, in main wf.cached_data('workflows', get_workflows, max_age=max_age) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/workflow/workflow.py", line 1890, in cached_data data = data_func() File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py", line 133, in get_workflows local_workflows = get_installed_workflows() File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py", line 92, in get_installed_workflows metadata.update(packal_metadata(packal_xml)) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.[HIDDEN]]/update_workflows.py", line 58, in packal_metadata tree = ET.parse(xmlpath) File "<string>", line 62, in parse File "<string>", line 38, in parse ParseError: not well-formed (invalid token): line 3, column 15 10:52:33 workflow.py:2290 DEBUG workflow finished in 0.138 seconds 10:52:33 background.py:242 ERROR [update] command failed with status 1 10:52:33 background.py:247 DEBUG [update] job complete 10:52:33 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-packal-search/settings.json 10:52:33 workflow.py:2441 DEBUG set last run version: 1.3.0 10:52:33 workflow.py:2290 DEBUG workflow finished in 0.253 seconds
  10. Yes, many thanks for the info. I knew about fixum and had run it before posting this, but this didn't solve the problem. Packal Search still doesn't work.
  11. Hi Dean, I have just migrated to a new machine and used the sync feature of Alfred to be able to recover all my installed workflows and configurations on the new machine. Since doing this Packal Search Worflows doesn't work anymore for me. Here is the log file when I launch "Packal Workflows" in Alfred: Starting debug for 'Packal Search' [2017-09-15 21:14:01][STDERR: input.scriptfilter] 21:14:01 workflow.py:2249 DEBUG workflow version: 1.3.0 21:14:01 packal.py:152 DEBUG 0 workflows in cache 21:14:01 packal.py:369 DEBUG Updating workflow lists... 21:14:01 packal.py:374 DEBUG update command : [u'/usr/bin/python', u'/Users/*******[HIDDEN ]'] 21:14:01 background.py:188 DEBUG [update] command cached: /Users/*****/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-packal-search/update.argcache 21:14:01 background.py:192 DEBUG [update] passing job to background runner: [u'/usr/bin/python', '/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.*******[HIDDEN]/workflow/background.pyc', u'update'] 21:14:01 workflow.py:2249 DEBUG workflow version: 1.3.0 21:14:01 background.py:197 DEBUG [update] background job started 21:14:01 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-packal-search/settings.json 21:14:01 workflow.py:2441 DEBUG set last run version: 1.3.0 21:14:01 workflow.py:2290 DEBUG workflow finished in 0.111 seconds No workflow appears or is searchable. Can you help?
  12. Hi Vitor, Recently I have noticed that short films is not working for me anymore. I have the latest version of short films and also the latest versions of youtube-dl and mpv from brew (brew directly, not brew cask). When a short film is selected in Alfred mpv opens briefly and then closes. I have the impression that the issue comes from youtube-dl somehow not passing information properly to mpv internally. Note that when I execute on the command line: open -a mpv youtube_address this works perfectly. Any idea how to fix this? Do you have the same issue with the latest versions of your installed brews (youtube-dl, mpv)?
  13. Thanks Dean! I mostly use ENTER and not TAB and thus didn't realise that this was the other main key that could be used for the navigation in the various menus of the workflow.
×