Closed SoryEscobar closed 1 year ago
What python version is the workflow using? Please take a look into Workflow Debugger?
I am also using pyenv and set global to python 3.9
What is defined in py3
under ~/Library/Application Support/Alfred/Workflow Data/com.apple.alfred.workflow.chromium-hist
Looks good, the wf uses python 3.8.2 and found history file for Brave. Did you try to search with other search terms?
Yes, it doesn't find anything for any given search term
Are there any other errors in the debug output?
And can you enable Safari, visit some pages and try again?
I see no errors, just no output:
Im wondering if the error is because of this:
It looks like it is trying to query some db/file that doesn't exist or has no data, hence no results.
Yes py3
is the file where the script stores the newest python version.
You could remove py3
from the workflow steps with python3
Question, what gets stored on this variable? this is py3.sh btw
Im trying to replicate manually over the console
py3 just stores the path to python3
I see, what would I need to skip the py3.sh and execute directly? Like this:
that does not work because you all settings added as env variables. you could debug it in vscode with an .env file. i can provide that to you tomorrow if you wish to debug.
another thing came to my mind: does Alfred have full disk access in system preferences ?
https://www.alfredapp.com/help/getting-started/permissions/
for me it looks like permission problem and other workflows where data dir and cache dir is required would also not work. both directories have to be created on runtime by Alfred/ wf code.
I just validated and indeed Alfred has full access disk permission granted. Yeah if you could provide that .env file would be great thanks!
Did you try to remove the py3.sh from the Alfred workflow.
E.g., bh
step you need ./py3.sh chrom_history.py "$1"
→ python3 chrom_history.py "$1"
Following the .env file content in case you want to debug:
edge=0
brave=1
brave_beta=0
chromium=0
chrome=0
opera=0
sidekick=0
vivaldi=0
safari=0
ignored_domains=mail.google.com,mail.gmx.com
show_favicon=1
sort_recent=1
date_format=%d.%m.%Y
alfred_workflow_cache=<add_absolute_path_to_alfred_cache_dir>
url=https://www.thingiverse.com
Hi, I have pyenv installed so I think is not picking the right python interpreter because the script is not working. Do you know how can fix the workflow for my particular configuration?