Emrys365 / alfred_workflows

Self-made Alfred workflows
14 stars 0 forks source link

cdTool and Monterey #2

Closed grylem closed 2 years ago

grylem commented 2 years ago

Hi please update cdTool for latest Monterey. Thanks.

Emrys365 commented 2 years ago

Hi @grylem, could you paste your error message here for me to locate the problem? I am now using Monterey 12.3 and I didn't have any problem with this workflow.

You could grab the error message by opening the workflow page in Alfred and then clicking on the "Bug" button on the upper right corner. A panel will show in the bottom. Then run the workflow as usual, and the log message will be displayed in the panel.

debug

yamyoume commented 2 years ago

Hi, I'm having a little issue on Monterey since the last update, apple removed python 2.x from Monterey, and the workflow broke showing this message 3 image as I didn't want to reinstall python 2.x what I did was just made a link to python3 as python like so ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python and now python points to python3 then the workflow works! but not everything I mainly use frac, and sqrt sqrt works as expected but frac is throwing this error image I'm trying to debug it, but I'm not having much luck, I assume the workflow was written with python 2.x in mind

Edit: Yeah can confirm most of the functions aren't working except [sqrt, num, bit] although [num, bit] are throwing a warning image

yamyoume commented 2 years ago

Hi @grylem, could you paste your error message here for me to locate the problem? I am now using Monterey 12.3 and I didn't have any problem with this workflow.

You could grab the error message by opening the workflow page in Alfred and then clicking on the "Bug" button on the upper right corner. A panel will show in the bottom. Then run the workflow as usual, and the log message will be displayed in the panel.

debug

Wait You're on 12.3?? did you reinstall python2?

Emrys365 commented 2 years ago

Wait You're on 12.3?? did you reinstall python2?

Oh yes, I have my own Python 2 installed in /usr/local/bin/, and that was used as the language interpreter by default. I guess that's why I didn't observe any error.

@grylem @yamyoume I just updated all workflows. Could you test whether they are working now?

Note that you might need to install Python3 or Python2 to /usr/local/bin/, because I assume the binary file /usr/local/bin/python exists when updating the workflows. Both Python2 and Python3 should be supported now.

yamyoume commented 2 years ago

Hello @Emrys365 Thank you for updating the workflow, I can confirm everything works except [gcd, lcm] on my end where I have only python 3 installed image

image

yamyoume commented 2 years ago

Oh and btw my workflow just picked up the path for the python binary on it's own from /opt/homebrew/bin

image

Emrys365 commented 2 years ago

Hello @Emrys365 Thank you for updating the workflow, I can confirm everything works except [gcd, lcm] on my end where I have only python 3 installed!

@yamyoume Ah I didn't notice that gcd has been deprecated as of Python 3.9, because I used Python 3.7 locally. I just updated MathTools again and slightly change its output format for floating/fraction numbers. Is it working now?

yamyoume commented 2 years ago

Yes Sir!, it's all working now