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

Python3 Support #3

Open
dschlabach opened this issue Jul 20, 2022 · 3 comments
Open

Python3 Support #3

dschlabach opened this issue Jul 20, 2022 · 3 comments

Comments

@dschlabach
Copy link
Contributor

dschlabach commented Jul 20, 2022

With MacOS 12.3, Apple has dropped support for Python 2.

This workflow relies on a library called alfred-workflow from @deanishe. That library breaks under Python 3, breaking the workflow. I've found 2 workarounds:

  1. Install Python 2 on Mac & set Alfred to use it to run alfred-etherscan-search. Imo not ideal because it requires the user to go through a lot of extra configuration.
  2. Update alfred-workflow to a version that supports Python 3. (recommended)

There's no public library that supports this yet, however I found this comment and was able to use the workflow folder to power alfred-etherscan-search. Once @xilopaint publishes a Python 3 supported version of alfred-workflow, we could switch to that.

I am happy to raise a PR with these changes, but if you don't want to continue maintaining the repo I will just share my changes for anyone else who is looking for a solution:

  1. Delete the current workflow folder.
  2. Install the attached workflow.zip into the workflow folder
  3. Replace mentions of "Workflow3" to "Workflow"

workflow.zip

@mds1
Copy link
Owner

mds1 commented Jul 22, 2022

Thanks for the info! I don't really plan to maintain this repo much as I no longer use the workflow and instead just use custom "web searches" now. However, if you open a PR I'd be happy to review/merge it in case there's others who use or find this workflow.

@dschlabach
Copy link
Contributor Author

Makes sense! If I have time I'll create a proper PR.

In the meantime, if anyone else is using this workflow and wants to upgrade, they can follow the steps outlined above 👍🏻

@mds1
Copy link
Owner

mds1 commented Jul 22, 2022

That sounds great, thanks for your help! 🙂

Repository owner deleted a comment Mar 2, 2024
Repository owner deleted a comment Mar 2, 2024
Repository owner deleted a comment Mar 2, 2024
Repository owner deleted a comment from devsquadcore Mar 14, 2024
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
@mds1 @dschlabach and others