Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.7 removed from macOS 12.3 = broken workflow #50

Open
rhydlewis opened this issue Mar 15, 2022 · 11 comments
Open

Python 2.7 removed from macOS 12.3 = broken workflow #50

rhydlewis opened this issue Mar 15, 2022 · 11 comments

Comments

@rhydlewis
Copy link
Owner

  • Reported in early March
  • Workaround is to reinstall Python until a new release is available
@rhydlewis rhydlewis changed the title Python 2.7 removed from macOS 12.3 and stops workflow from operating Python 2.7 removed from macOS 12.3 = broken workflow Mar 15, 2022
@Doslin
Copy link

Doslin commented Mar 18, 2022

Will you rewrite this workflow

  • Reported in early March
  • Workaround is to reinstall Python until a new release is available

@rhydlewis
Copy link
Owner Author

Yes, I have a basic version of the workflow using javascript in progress at the moment. Aiming to release it for evaluation next week

@rhydlewis
Copy link
Owner Author

Temporary workaround 👉 https://www.alfredapp.com/help/kb/python-2-monterey/

@Doslin
Copy link

Doslin commented Mar 22, 2022

Temporary workaround 👉 https://www.alfredapp.com/help/kb/python-2-monterey/
It didn't work

Last 10 log lines:
ld: warning: directory not found for option '-L/Users/zhilin/.pyenv/versions/2.7.18/lib'
ld: warning: ignoring file libpython2.7.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
Undefined symbols for architecture x86_64:
"_PyMac_Error", referenced from:
-u command line option
"_Py_Main", referenced from:
_main in python.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1

@rhydlewis
Copy link
Owner Author

@Doslin Not sure the installation of Python2 has worked correctly for you? The workaround from Alfred is working fine for me.

@Doslin
Copy link

Doslin commented Mar 23, 2022

@Doslin Not sure the installation of Python2 has worked correctly for you? The workaround from Alfred is working fine for me.
Meanwhile, can I help you with this version of javascript? I'm looking forward to this version very much

@Doslin
Copy link

Doslin commented Mar 23, 2022

Can't find the python

ln -s "~/.pyenv/versions/2.7.18/bin/python2.7" "/usr/bin/python"

ln: /usr/bin/python: Read-only file system


[13:37:41.238] Logging Stopped.
[13:37:42.084] Logging Started...
[13:37:47.843] Search OmniFocus[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E20D9C1B-4305-4FA2-9A65-7B65C28898C2%3EF8E62EE2-D96A-4A26-8E39-EBBEFCE2DF97)] Queuing argument 's'
[13:37:47.912] Search OmniFocus[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E20D9C1B-4305-4FA2-9A65-7B65C28898C2%3EF8E62EE2-D96A-4A26-8E39-EBBEFCE2DF97)] Script with argv '(null)' finished
[13:37:47.914] ERROR: Search OmniFocus[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E20D9C1B-4305-4FA2-9A65-7B65C28898C2%3EF8E62EE2-D96A-4A26-8E39-EBBEFCE2DF97)] Code 127: /bin/bash: /usr/bin/python: No such file or directory

@neuromancer3142
Copy link

Dear rhydlewis,

Unfortunately, the

Temporary workaround 👉 https://www.alfredapp.com/help/kb/python-2-monterey/

did not work for me. Homebrew installed everything correctly, but I cannot launch the shortcuts using Alfred. Do you have any tips on how to troubleshoot this? No idea where to start.

Alternative would be to directly use the new javascript version. Do you know when you will release this update? I use your workflow many times per day and dearly miss this great functionality. Thanks for letting me know.

Best regards

@Doslin
Copy link

Doslin commented Mar 29, 2022

https://github.com/alfredapp/updated-third-party-python2-workflows

Updated Third-Party Python 2 Workflows

With macOS Monterey 12.3, Apple removed the bundled Python 2 interpreter. That means older Workflows dependent on Python 2 will no longer work without modification.

That’s what this repository is for. It contains existing third-party Python 2 Workflows tweaked so you can keep using them until they are updated by their developers or you switch to an alternative. If a Workflow you use isn’t present, request it here or on the forum.

Before installing any of these, you must follow the knowledge base article to install Python 2 to a location recognised by Alfred.

WARNING: All Workflows in this repository are made by third-parties. They were modified just enough to keep working but their contents have not been audited so make sure you trust the original author.

All Workflows retain their original license.

@rhydlewis
Copy link
Owner Author

Replacement workflow but still WIP 👉 https://github.com/rhydlewis/alfred-search-omnifocus

@neuromancer3142
Copy link

https://github.com/alfredapp/updated-third-party-python2-workflows

Updated Third-Party Python 2 Workflows

With macOS Monterey 12.3, Apple removed the bundled Python 2 interpreter. That means older Workflows dependent on Python 2 will no longer work without modification.

That’s what this repository is for. It contains existing third-party Python 2 Workflows tweaked so you can keep using them until they are updated by their developers or you switch to an alternative. If a Workflow you use isn’t present, request it here or on the forum.

Before installing any of these, you must follow the knowledge base article to install Python 2 to a location recognised by Alfred.

WARNING: All Workflows in this repository are made by third-parties. They were modified just enough to keep working but their contents have not been audited so make sure you trust the original author.

All Workflows retain their original license.

Dear Doslin,

Finally I got it to work again. Thanks so much. I previously missed the link to the updated script.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants