Jump to content

Guy Stan

Member
  • Posts

    47
  • Joined

  • Last visited

Everything posted by Guy Stan

  1. Thanks Dean. I suppose there is no other repository with the same features as jackal for the moment?
  2. 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
  3. 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?
  4. 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.
  5. 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.
  6. 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
  7. Shall I remove the folder user.workflow.6F088A5B-EE3A-4105-AB85-F26935B97995?
  8. 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
  9. 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.
  10. 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?
  11. 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)?
  12. 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.
  13. Hi Dean, I seem to have an issue displaying the packages by authors with packal search (latest version installed). Do you have an idea how to fix it? I find it very useful to be able to search by authors. Here is the error log when calling "Packal Authors" and then pressing enter on a displayed author name (once you press enter on an author name nothing happens): 2017-05-07 10:31:35][ERROR: action.script] 10:31:35 workflow.py:2225 DEBUG Workflow version : 1.3.0 10:31:35 workflow.py:1859 DEBUG Loading cached data from : /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-packal-search/workflows.cpickle 10:31:35 packal.py:150 DEBUG 1007 workflows in cache 10:31:35 packal.py:171 DEBUG 1007 workflows found in cache 10:31:35 packal.py:357 ERROR Bundle ID not found : deanishe 10:31:35 workflow.py:2243 ERROR u'Bundle ID unknown : deanishe' Traceback (most recent call last): File "/Users/[HIDDEN]/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.HIDDEN/workflow/workflow.py", line 2236, in run func(self) File "packal.py", line 188, in run return self.do_open() File "packal.py", line 202, in do_open workflow = self._workflow_by_bundleid(self.bundleid) File "packal.py", line 358, in _workflow_by_bundleid raise KeyError('Bundle ID unknown : {}'.format(bid)) KeyError: u'Bundle ID unknown : deanishe' 10:31:35 workflow.py:2267 DEBUG Workflow finished in 0.036 seconds.
  14. This has now been resolved with the help of Akemi from the mpv developers' team. The trick is to force the use of the GUI by calling directly mpv in a bash script (without using open): mpv --player-operation-mode=pseudo-gui --video=no Here is the corresponding mpv github thread: https://github.com/mpv-player/mpv/issues/4354 This can now be marked as resolved. Thank you Vitor and Dean for your help.
  15. Yes. That is correct. The command: open -a mpv "youtube_video_link_here" --args --vid=no doesn't work as expected (as before with previous versions of mpv) on the CLI.
  16. It does work as expected on the command line. mpv "${1}" --args --vid=no works as expected when launched from the command line. it is the use within the workflow through "open -a" that causes problems as the args that force mpv to only play the audio are not passed correctly from "open - a" to mpv or taken correctly by mpv.
  17. I have tried to execute directly in the terminal l: mpv "${1}" --args --vid=no This has the correct behaviour and opens up the mpv GUI but with no video, playing only the audio. In the modified workflow though, I would need to be able to launch mpg with the GUI to be able to get access to the forward, backward, next, previous functions of the GUI even when playing audio only. I will post the debug info as soon as I am back in front of the computer.
  18. I have modified the Searchio! Alfred workflow of Dean (http://www.packal.org/workflow/searchio) to be able to directly play audio (from youtube for example) using mpv. For this I took inspiration from the ShortFilms workflow of Vitor (http://www.packal.org/workflow/shortfilms). To do this, I previously used: open -a "${audio_player}" "${1}" --args --vid=no This worked perfectly until I upgraded (using brew (not brew cask)) to mpv 0.25.0 Since the upgrade, mpv doesn't recognise the args that are passed to it by open through the use of --args. A simple test for this is [in a terminal/command line window; note: this requires mpv and youtube-dl to be installed]: open -a mpv "youtube_video_link_here" --args --vid=no I have read the documentation of open and mpv and I am not sure why the behaviour changed. Anyone can help with this? The arguments passing issue using "open -a App_Name File_Name --args arg1" might be more widespread than just for this use case. Is there anything I am missing in the use of the command open? P.S.: 1) I have also filed a bug report with mpv (https://github.com/mpv-player/mpv/issues/4354) but I fear that this issue is more linked to the way "open" interacts with other commands (this worked with previous mpv versions though, i.e. mpv<0.25) 2) The modifications I have made allow to call for youtube video search in Searchio! using the alfred keyword "yt" and then: Choosing an item on the Alfred displayed list while using CMD launches the playback of the corresponding youtube video in mpv Choosing an item on the Alfred displayed list while using ALT launches the playback of the corresponding youtube audio in mpv
×
×
  • Create New...