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

Update /usr/bin/python to /usr/local/bin/python #65

Closed
wants to merge 2 commits into from
Closed

Update /usr/bin/python to /usr/local/bin/python #65

wants to merge 2 commits into from

Conversation

zachmccormick
Copy link

This should help folks who had to do

pyenv install 2.7.18
ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "/usr/local/bin/python"

to get python2 back on their machine. The plist file needs to be updated to point to /usr/local/bin/python as well.

@zachmccormick
Copy link
Author

Really the better option is probably to use /usr/bin/env python, but that'll be python3 for Monterey. I could probably fix this to be python3 compatible and use /usr/bin/env python where it should work for both 2/3 if you'd rather merge that change.

@benknight
Copy link
Owner

Hey @zachmccormick sorry for the delayed response.

At this point I prefer shipping a complete fix without any user–installed dependencies. In other words the I need a Python 3 compatible version or fork of https://github.com/deanishe/alfred-workflow

In the mean time users will have to manually follow instructions to get this working on Python 2: https://www.alfredapp.com/help/kb/python-2-monterey/

@zachmccormick
Copy link
Author

No worries! Next time it breaks on me I'll spend the time and make it work with python3 then if no one else has :)

@benknight
Copy link
Owner

@zachmccormick actually would you be willing to do the Python 3 upgrade? I don't currently have a Philip Hue system in my possession so attempting to do the migration myself would be futile since there's no way I could be sure all the features worked.

There's guy has already forked the Alfred-Workflow Python package and added support for Python 3. It looks like he's set to publish it soon and the Alfred community will officially recommend his fork for Python-based workflows going forward.

See this comment: deanishe/alfred-workflow#97 (comment)

There he describes were to pull the most recent copy of the source.

While you're add it, if you wanted to, you could also replace the colorpicker functionality which depends on PHP.

@zachmccormick zachmccormick closed this by deleting the head repository Jan 26, 2023
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

Successfully merging this pull request may close these issues.

2 participants