alfred-search-notes-app icon indicating copy to clipboard operation
alfred-search-notes-app copied to clipboard

Python2 reappeared

Open maxim opened this issue 4 years ago โ€ข 11 comments

After merging python3 PR, looks like there are now 2 places where python2 reappeared:

  1. update.py
  2. info.plist

This triggered the macOS "Software needs to be updated" dialog for me, where "learn more" said "python2 is on its way out".

maxim avatar Nov 23 '21 15:11 maxim

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...

sballin avatar Nov 23 '21 16:11 sballin

Are you on one of the developer previews?

sballin avatar Nov 23 '21 16:11 sballin

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).

maxim avatar Nov 23 '21 16:11 maxim

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.

sballin avatar Nov 23 '21 16:11 sballin

Ahh, gotcha. That makes perfect sense. It doesn't appear constantly, so long term plan sounds good. ๐Ÿ‘๐Ÿป

maxim avatar Nov 23 '21 16:11 maxim

This is appearing constantly for me now on Monterey 12.1 RC2

dsully avatar Dec 12 '21 14:12 dsully

This is now appearing in the latest MacOS production release:

MacOS 12.1 (21C52)

pctony avatar Jan 21 '22 01:01 pctony

Screen Shot 2022-01-20 at 5 33 04 PM

pctony avatar Jan 21 '22 01:01 pctony

This was triggered when creating a new note; and is reproducible.

pctony avatar Jan 21 '22 01:01 pctony

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@


pctony avatar Jan 21 '22 01:01 pctony

Thanks for the info. Looks like it's time to translate the update script from python to bash.

sballin avatar Jan 21 '22 04:01 sballin

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

sballin avatar Dec 26 '23 21:12 sballin