Python2 reappeared
Closed this issue ยท 12 comments
After merging python3 PR, looks like there are now 2 places where python2 reappeared:
This triggered the macOS "Software needs to be updated" dialog for me, where "learn more" said "python2 is on its way out".
I haven't seen that dialog yet... I think python 3 still requires developer tools to be installed on mac so I don't really want to make the update script use it. Maybe I'll have to rewrite it in bash...
Are you on one of the developer previews?
Hm, looks like python3 PR was merged (in 2019), do you think it should be reverted? I'm on Monterey 12.0.1 (not a preview).
The files in that PR no longer exist, their functionality is in a Go binary now. The only remaining python 2 file is the update.py script. Until python 3 is included by default in macos (without having to install dev tools) I don't really want to make scripts use it. So unless this warning appears constantly, I don't think I want to change it right now. Long-term I guess I'll change the update script to bash/applescript.
Ahh, gotcha. That makes perfect sense. It doesn't appear constantly, so long term plan sounds good. ๐๐ป
This is appearing constantly for me now on Monterey 12.1 RC2
This is now appearing in the latest MacOS production release:
MacOS 12.1 (21C52)
This was triggered when creating a new note; and is reproducible.
I can also confirm that python3 is not shipping in the OS as-is.
โฐโโฏ ls -lah /usr/bin/python*
lrwxr-xr-x 1 root wheel 75B Dec 7 15:39 /usr/bin/python@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82B Dec 7 15:39 /usr/bin/python-config@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x 1 root wheel 75B Dec 7 15:39 /usr/bin/python2@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 75B Dec 7 15:39 /usr/bin/python2.7@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82B Dec 7 15:39 /usr/bin/python2.7-config@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x 1 root wheel 163K Dec 7 15:39 /usr/bin/python3*
lrwxr-xr-x 1 root wheel 76B Dec 7 15:39 /usr/bin/pythonw@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x 1 root wheel 76B Dec 7 15:39 /usr/bin/pythonw2.7@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
โฐโโฏ cd ../../System/Library/Frameworks/Python.framework/Versions/
โญโ ๏
น ๏ฃ /System/Library/Frameworks/Python.framework/Versions ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท at ๏ 17:36:45
โฐโโฏ ls
2.3@ 2.5@ 2.6@ 2.7/ Current@
Thanks for the info. Looks like it's time to translate the update script from python to bash.
The latest version now uses OneUpdater, so the project is finally free of python 2: https://github.com/sballin/alfred-search-notes-app/releases/download/3.6/Search.Notes.alfredworkflow