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

Not working on MacOS 12.3 anymore #12

Closed
pfederi opened this issue Mar 15, 2022 · 7 comments
Closed

Not working on MacOS 12.3 anymore #12

pfederi opened this issue Mar 15, 2022 · 7 comments

Comments

@pfederi
Copy link

pfederi commented Mar 15, 2022

The Workflow is not working on MacOS 12.3 anymore due to deprecation of Python 2.

@gaborszakacs
Copy link

I managed to make it work by installing Python2. These are the steps I took, but if you don't feel comfortable overwriting the default python command path, then you probably shouldn't proceed with this:

  • install asdf version manager - I was already using that.
  • install the python plugin
  • install a 2.x and a 3.x version of Python via asdf asdf install python 2.7.18 and asdf install python 3.9.10
  • set global versions asdf global python 3.9.10 2.7.18 this will set python2 and python3 respectively
  • check your python2 path: which python2 - should be something like /Users/gaborszakacs/.asdf/shims/python2
  • change python in the scripts to this full path
  • I had some issues with auto-update, I put an early return in that function

@Knapsack44
Copy link

Thanks for your @gaborszakacs.
Alfred also provides instructions for installing Python 2 under Monterey on its website

export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}"
eval "$(brew shellenv)"
brew install pyenv
pyenv install 2.7.18
ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"

For further clarification of your last step, which is essential

I had some issues with auto-update, I put an early return in that function

Go to <workflowdir>/lib/workflow/workflow.py and add a new line with content returnas line 2482 as shown here.

@pfederi
Copy link
Author

pfederi commented Mar 23, 2022

I'm having the following Problem. Any ideas?
workflow.py:2243 ERROR <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>

@jovobe
Copy link

jovobe commented Apr 2, 2022

I just rewrote the workflow in rust. You can find the project right here. It should offer the same functionality as the Python based workflow extended by the possibility to use an access token for authentication.

@GabLeRoux
Copy link

GabLeRoux commented Apr 20, 2022

Python3 compatibility relates to following upstream alfred-workflow#97 issue used in src/lib/workflow

I've made a quick draft pr for the rest of the changes that need to happen once there is a viable python3 alternative for alfred-workflow:
#14

@GabLeRoux
Copy link

For those who would like to contribute, this upstream pr seems promising:
deanishe/alfred-workflow#184 👍

@skleinei skleinei closed this as completed Sep 6, 2022
@skleinei skleinei reopened this Sep 6, 2022
@skleinei
Copy link
Owner

skleinei commented Sep 6, 2022

Hi all, thanks for your efforts to fix this. I've just rewritten Confluence Quicksearch for Alfred to work with Python 3 (and hence macOS 12.3). The new version also requires Alfred 5, because the new version uses Alfreds' new workflow configuration.

Read more: #16

@skleinei skleinei closed this as completed Sep 6, 2022
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

6 participants