Travis Schmeisser Posted March 23, 2022 Share Posted March 23, 2022 1 hour ago, vitor said: eval "$(brew shellenv)" ls -la "${HOMEBREW_PREFIX}/bin/python" @vitor Output is "ls: /usr/local/bin/python: No such file or directory" Link to comment
vitor Posted March 23, 2022 Author Share Posted March 23, 2022 Just now, Travis Schmeisser said: Output is "ls: /usr/local/bin/python: No such file or directory" That means something wasn’t correctly followed or went wrong when following the instructions. Specifically the last command: ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python" Link to comment
michbsd Posted March 23, 2022 Share Posted March 23, 2022 1 hour ago, vitor said: The error means that particular action requires the Objective-C bridge. There’s a very small subset of Python 2 Workflows who do. At the moment it’s not viable to support those because the required Python packages fail (for me?) to build under Apple Silicon. If you’re on Intel, you may be able to do so ("${HOME}/.pyenv/versions/2.7.18/bin/python2.7" -m pip install PACKAGE_NAME) but the build failure makes it impossible for me to support it. As it were, I am using a Mac intel. I managed to get it working by specifically uninstalling AppKit and force re-installing pyobjc Thanks for the hint @vitor Link to comment
Larrikin Posted March 24, 2022 Share Posted March 24, 2022 On 3/23/2022 at 11:05 AM, vitor said: No, that just uninstalls the package itself, it does not remove the changes made by it. OK, thanks. I've entered those commands. As I say, that just removes the pyenv version of python 2. Any ideas on how to remove the intel package python 2 once my workflows are updated to python 3? Link to comment
andy4222 Posted March 24, 2022 Share Posted March 24, 2022 (edited) @deanishe The fuzzy script does not seem to be working after upgrading to 12.3. This is a really important script since it powers multiple workflows for me. Anything I can do to make it work? I tried changing /usr/bin/python to /usr/bin/python3 but that didn't help. Other errors came up which I could not fix: error: raceback (most recent call last): File "./fuzzy.py", line 377, in <module> main() File "./fuzzy.py", line 364, in main fb = cache.load() File "./fuzzy.py", line 312, in load json.dump(fb, fp) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 180, in dump fp.write(chunk) TypeError: a bytes-like object is required, not 'str' Edited March 24, 2022 by andy4222 Link to comment
andy4222 Posted March 24, 2022 Share Posted March 24, 2022 https://github.com/hug33k/Alfred-ShellVariables is not working Link to comment
vitor Posted March 24, 2022 Author Share Posted March 24, 2022 8 hours ago, Larrikin said: Any ideas on how to remove the intel package python 2 You installed from a PKG, and those can do essentially anything. For instructions on how to uninstall that, you’ll have to check their website. Or you can try a specialised tool. @andy4222 Please read and follow the top post. This is not a thread to ask every developer about their Workflow, use the Workflow’s own thread for that. If you need a fuzzy finder alternative, @Mr Pennyworth has one. 5 hours ago, andy4222 said: https://github.com/hug33k/Alfred-ShellVariables Added. Link to comment
eshmootie Posted March 24, 2022 Share Posted March 24, 2022 22 hours ago, vitor said: The error means that particular action requires the Objective-C bridge. There’s a very small subset of Python 2 Workflows who do. At the moment it’s not viable to support those because the required Python packages fail (for me?) to build under Apple Silicon. If you’re on Intel, you may be able to do so ("${HOME}/.pyenv/versions/2.7.18/bin/python2.7" -m pip install PACKAGE_NAME) but the build failure makes it impossible for me to support it. Welcome @eshmootie, That Workflow doesn’t use Python, so whatever is broken is something else. @Acidham has a Workflow you may wish to try. Try again with: eval "$(brew shellenv)" ls -la "${HOMEBREW_PREFIX}/bin/python" Thank you, However, when i run 'airpd' in alfred i get the following error log: Is this something due to Python or should i take it in the workflow thread? Link to comment
vitor Posted March 24, 2022 Author Share Posted March 24, 2022 Just now, eshmootie said: Is this something due to Python That is indeed Python-related, but the Workflow doesn’t have Python code that I can see. Are you sure you’re on the latest version? 2 minutes ago, eshmootie said: or should i take it in the workflow thread? Yes. Link to comment
eshmootie Posted March 24, 2022 Share Posted March 24, 2022 On 2/4/2022 at 3:58 AM, jmonda said: Any chance of getting movie amd tv show search https://www.packal.org/workflow/movie-and-tv-show-search On 2/4/2022 at 3:18 PM, vitor said: Added. Using this one gives me a 'uh oh.. something went wrong Please check your internet connection' Any suggestions? Link to comment
vitor Posted March 24, 2022 Author Share Posted March 24, 2022 53 minutes ago, eshmootie said: Using this one gives me a That’s not a Python 2 problem. For issues with the Workflow itself, contact the developer. Link to comment
Travis Schmeisser Posted March 24, 2022 Share Posted March 24, 2022 On 3/23/2022 at 11:53 AM, vitor said: That means something wasn’t correctly followed or went wrong when following the instructions. Specifically the last command: ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python" @vitor I went through again line by line in Terminal and Browser Choice is working now. I swear I tried that multiple times before, but maybe I mis-copied/pasted something. So sorry for wasting your time! I really appreciate the help. vitor 1 Link to comment
skynet01 Posted March 24, 2022 Share Posted March 24, 2022 Would be amazing if this can be translated https://github.com/gillibrand/alfred-change-case Link to comment
giovanni Posted March 24, 2022 Share Posted March 24, 2022 @skynet01 you can try this vitor 1 Link to comment
vitor Posted March 24, 2022 Author Share Posted March 24, 2022 19 minutes ago, skynet01 said: Would be amazing if this can be translated In the past I’ve recommend another Workflow in the repo as an alternative, but because this has been asked about twice, I’m adding it. However… 13 minutes ago, giovanni said: you can try this It links to @giovanni’s Workflow as an alternative. I recommend that one instead. skynet01 1 Link to comment
Bruce2905 Posted March 24, 2022 Share Posted March 24, 2022 I am using ESV Bible Online, which previously was able to select a verse, and paste it into the front most app. It no longer works, but instead searches for the scripture online. I ran the workflow in Debugging Mode, and received the following error messages: [12:59:55.990] Logging Started... [13:00:21.426] ESV Online Bible[Script Filter] Queuing argument '(null)' [13:00:21.453] ESV Online Bible[Script Filter] Script with argv '(null)' finished [13:00:21.457] ERROR: ESV Online Bible[Script Filter] Code 127: /bin/bash: line 1: python: command not found Any ideas on how to make this work? milopus 1 Link to comment
skynet01 Posted March 24, 2022 Share Posted March 24, 2022 thanks @vitor the author actually fixed the workflow a few hours ago! Link to comment
vitor Posted March 25, 2022 Author Share Posted March 25, 2022 4 hours ago, Bruce2905 said: I ran the workflow in Debugging Mode, and received the following error messages: Did you download the updated version? If so, read the conversation between myself and @Travis Schmeisser, starting with the Tuesday post because you have exactly the same cause. Link to comment
vitor Posted March 25, 2022 Author Share Posted March 25, 2022 (edited) Movie and TV Show Search has just been officially updated to Python 3. I’ve removed it from the list, as well as Tailwind CSS Docs (updated to Dart) and Change Case (updated to Python 3). Edited March 25, 2022 by vitor Updated link tone 1 Link to comment
andy4222 Posted March 25, 2022 Share Posted March 25, 2022 (edited) 19 hours ago, vitor said: Added. Was there a change made to this to make it work with 12.3? It still does not work [23:59:23.133] ERROR: Shell Variables[Script Filter] Code 127: /bin/bash: line 1: python: command not found Edited March 25, 2022 by andy4222 Link to comment
Mollib Posted March 25, 2022 Share Posted March 25, 2022 Thank you for adding the dict.cc workflow. It finds python now, but SSL fails: Dict.cc[Script Filter] <?xml version="1.0" encoding="utf-8"?> <items><item valid="no"><title>Error in workflow 'Dict.cc'</title><subtitle>[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items> Is this due to old Python not having the newest certs anymore or something else? Link to comment
cands Posted March 25, 2022 Share Posted March 25, 2022 (edited) Thanks a lot for your efforts to keep workflows running. Would it be possible to add alfred-cheat? https://www.alfredforum.com/topic/13206-alfred-cheat-manage-your-own-cheat-sheets Edited March 25, 2022 by cands Link to comment
vitor Posted March 25, 2022 Author Share Posted March 25, 2022 (edited) 6 hours ago, andy4222 said: Was there a change made to this to make it work with 12.3? It still does not work Again, you need to read and follow the top post. That error means you either did not download the updated version, or you did not (correctly?) reinstall Python 2. The top post explains all of this. 4 hours ago, Mollib said: Thank you for adding the dict.cc workflow. It finds python now, but SSL fails Welcome @Mollib. That error is unrelated to the port, so you’ll have to ask the developer. Or consider a non-Python alternative. 2 hours ago, cands said: Would it be possible to add alfred-cheat? Added. But please let the developer know about the Python deprecation. If they don’t know, they can’t fix it. Informing the developer should always be the first step. Edited March 25, 2022 by vitor cands 1 Link to comment
godbout Posted March 25, 2022 Share Posted March 25, 2022 (edited) On 3/23/2022 at 8:36 PM, eshmootie said: Not sure if this is because of the update to 12.3 but as of the update the following workflow is broken for me: Possible to add it to the list? ~~not related to Python. bluetooth output changed again in 12.3. i guess they're playing around and trying to find a way to make bluetooth work properly on their laptop. anyways, relevant post/repo have been updated. enjoy.~~ EDIT: my bad, i thought it was about the Alfred AirPods Pro Battery, which broke under 12.3. Alfred AirPods Pro Connector might break too, but it never worked reliably lately (never?). can have a look. EDIT2: ok workflow updated. please see the relevant thread. Edited March 25, 2022 by godbout Link to comment
cands Posted March 25, 2022 Share Posted March 25, 2022 52 minutes ago, vitor said: Again, you need to read and follow the top post. That error means you either did not download the updated version, or you did not (correctly?) reinstall Python 2. The top post explains all of this. Welcome @Mollib. That error is unrelated to the port, so you’ll have to ask the developer. Or consider a non-Python alternative. Added. But please let the developer know about the Python deprecation. If they don’t know, they can’t fix it. Informing the developer should always be the first step. Thank you very much! alfred-cheat is working again on macOS 12.3, very nice. (Agree that informing the developer should be the first step, I noted on the workflow repository that the developer is aware and therefore did not post here on Alfred forum.) vitor 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now