Closed rick-yao closed 1 year ago
Seems blueutil
is not in path. Can you please open the workflow > /bin/zsh step and add the following line at the beginning:
source ~/.zshrc
the script should then look like:
source ~/.zshrc
./py3.sh con_manager.py "$1"
thanks for your quick reply but the solution you provided did not work. I also tried 'zsh ./py3.sh con_manager.py "$1"' but still didn't work. I installed blueutil via brew , is it somehow relevant to this ?
The issue is that the shell is not loaded, and it seems the path to blueutil
is not loaded. Can you exec where blueutil
on terminal?
Yes , please check below output. ~ ❯ where blueutil /opt/homebrew/bin/blueutil /opt/homebrew/bin/blueutil
~ ❯ which blueutil /opt/homebrew/bin/blueutil
~ ❯
ok can you please download update WF: https://github.com/Acidham/alfred-airpod-connector/blob/master/AirPods%20Connector.alfredworkflow
please tell me if it now works
I tried the updated version. It still didn't work. But there is one difference. please check the img below.
can you please try to re-install blueutil
yes , I uninstalled and re-installed it just now but didn't resolve the issue. I checked that bash can also detects blueutil.
My python3 version ❯ python3 --version Python 3.10.9
not sure if this affects
as mentioned before the path cannot be found.
what macOS are you using ?
normally should be on zsh not bash
you can add into last WF step the following
PATH=/opt/homebrew/bin
then it works
I am using zsh , I just tried bash. Did you mean to add Path like the following ?
yes exactly but please use this line, forgot to add $PATH: PATH=$PATH:/opt/homebrew/bin
Bu there is something wrong with your set up. Usually /opt/homebrew/bin
is part of a standard shell.
Can you please help to investigate?
echo $SHELL
cat ~/.zprofile
ahhh...still don't work after adding Path line. below is the output as per your request. ❯ echo $SHELL /bin/zsh
~ ❯ cat ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="$PATH:/Users/rick/Library/Application Support/JetBrains/Toolbox/scripts"
~ ❯
Can you add export to the PATH in the workflow step as well, forgot to add it in my previous post:
export PATH=$PATH:/opt/homebrew/bin
.zproflie looks good. eval "$(/opt/homebrew/bin/brew shellenv)"
adds the /opt/homebrew/bin
path to the PATH variable. Not sure why this not working for you.
Thanks , final solution should be " export PATH=$PATH:/opt/homebrew/bin ./py3.sh con_manager.py "$1" " source command is not needed. Thanks for your patience !
But anyhow, something is wrong with your setup because it should be loaded in shellenv properly.
I will leave the export and release it. Should not hurt others.
I have installed blueutil ❯ blueutil Power: 1 Discoverable: 0
and my default shell is zsh. But seems the workflow cannot detect blueutil debug console output : [16:57:29.023] AirPods Connector[Script Filter] Queuing argument '(null)' [16:57:29.159] AirPods Connector[Script Filter] Script with argv '(null)' finished [16:57:29.163] STDERR: AirPods Connector[Script Filter] /bin/sh: blueutil: command not found [16:57:29.163] AirPods Connector[Script Filter] {