Got this error when selecting a command (that uses #!/usr/bin/python) (under Monterey 12.1 beta)… [image: Screen Shot 2021-10-09 at 12.41.46.png]
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
On 11 Oct 2021, at 00:26, Timothy Bates via TextMate textmate@lists.macromates.com wrote:
Got this error when selecting a command (that uses #!/usr/bin/python) (under Monterey 12.1 beta)… <Screen Shot 2021-10-09 at 12.41.46.png> _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
On 11 Oct 2021, at 00:26, Timothy Bates via TextMate textmate@lists.macromates.com wrote:
Got this error when selecting a command (that uses #!/usr/bin/python) (under Monterey 12.1 beta)… <Screen Shot 2021-10-09 at 12.41.46.png> _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
-- /Jacob Carlborg
TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
I am not sure I understand the innards nor do I want to, but I see on my Big Sur 11.6
/usr/bin/python (v 2.7.16) /usr/bin/python3 (v 3.8.2)
which are (both) from Apple
/usr/local/bin/python3 (v 3.9.7)
which is from Homebrew and the one that is in my path and is found by the
#!/usr/bin/env python
and
#!/usr/bin/env python3
shebangs. Would not the most practical be to take whatever python3 is offered?
greetings, el
On 11/10/2021 12:46, John Joyce via TextMate wrote:
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
[...]
Pretty sure a healthy chunk of us don’t want to understand these innards. TM installing a copy would make sense for us, with a pref to allow superusers to sim link to their privately maintained set.
IMHO t
On 11 Oct 2021, at 12:02, Dr Eberhard W Lisse via TextMate textmate@lists.macromates.com wrote:
I am not sure I understand the innards nor do I want to, but I see on my Big Sur 11.6
/usr/bin/python (v 2.7.16) /usr/bin/python3 (v 3.8.2)
which are (both) from Apple
/usr/local/bin/python3 (v 3.9.7)
which is from Homebrew and the one that is in my path and is found by the
#!/usr/bin/env python
and
#!/usr/bin/env python3
shebangs. Would not the most practical be to take whatever python3 is offered?
greetings, el
On 11/10/2021 12:46, John Joyce via TextMate wrote:
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
[...]
-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist el@lisse.NA / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply Book your Covid-19 Vaccination at https://c19.idtoday.com.na _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
On Oct 11, 2021, at 6:10 AM, Timothy Bates via TextMate textmate@lists.macromates.com wrote:
Pretty sure a healthy chunk of us don’t want to understand these innards.
Agreed, nor should you have to just to use TM to casually edit and execute Python scripts. Anything more substantial than that, and I think you can assume that the user will know a bit about managing her or his Python installation(s).
TM installing a copy would make sense for us, with a pref to allow superusers to sim link to their privately maintained set.
The easiest way to link to a specific Python installation is in .tm_properties. But I agree, an option for an automatic install on Monterey if a Python interpreter is not found on the PATH would be nice. However, I don't think TM should manage that installation; IMHO the best option would be either initiating a standard install of the latest stable version from python.org or a homebrew install of the latest available version. That way, if the user wishes, she or he could can manage/extend the resulting install using standard tools and expectations.
-- Phil
On 11 Oct 2021, at 20:43, L. Philip Schumm via TextMate textmate@lists.macromates.com wrote:
Agreed, nor should you have to just to use TM to casually edit and execute Python scripts.
Yes, and it’s not just executing Python scripts. Any bundle command can be implemented in Python, even those that have nothing to do with Python. For example, all of the commands for the D bundle are implemented in Ruby. I’m sure none of the D developers are interested in fiddling with installing Ruby.
On Oct 11, 2021, at 2:01 PM, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
Yes, and it’s not just executing Python scripts. Any bundle command can be implemented in Python, even those that have nothing to do with Python. For example, all of the commands for the D bundle are implemented in Ruby. I’m sure none of the D developers are interested in fiddling with installing Ruby.
Ugh, of course -- you're absolutely right. Completely forgot about that. And Python's a pretty reasonable language in which to implement those types of things.
I don't have a copy of Monterey yet, but is it possible that Xcode will continue to install Python 3? If so, that might be the simplest thing to point folks to if they haven't already installed Python via some other mechanism. It's a big install, of course, but it's accessible to all OS X users for free, can be installed via the App Store, and is a pretty common prerequisite for developers on the platform as well as other "technical users." And, it would be a reasonable target for testing/compatibility for bundle developers who want to use Python (i.e., make sure your bundle runs with the latest Xcode Python install).
-- Phil
This is beyond my pay grade, but an automatic install is probably not going to happen, but pointing to Homebrew might be a good idea. But the PATH problem is confusing, at least to me. I still don't know what version my Ruby scripts are going to use.
Monterey not shipping with Python and Ruby may be a good thing since the version are not up to date. But
On Oct 11, 2021, at 11:43, L. Philip Schumm via TextMate textmate@lists.macromates.com wrote:
On Oct 11, 2021, at 6:10 AM, Timothy Bates via TextMate textmate@lists.macromates.com wrote:
Pretty sure a healthy chunk of us don’t want to understand these innards.
Agreed, nor should you have to just to use TM to casually edit and execute Python scripts. Anything more substantial than that, and I think you can assume that the user will know a bit about managing her or his Python installation(s).
TM installing a copy would make sense for us, with a pref to allow superusers to sim link to their privately maintained set.
The easiest way to link to a specific Python installation is in .tm_properties. But I agree, an option for an automatic install on Monterey if a Python interpreter is not found on the PATH would be nice. However, I don't think TM should manage that installation; IMHO the best option would be either initiating a standard install of the latest stable version from python.org or a homebrew install of the latest available version. That way, if the user wishes, she or he could can manage/extend the resulting install using standard tools and expectations.
-- Phil
And if Python is not installed?
BTW, using /usr/bin/env assumes that the PATH environment variable is properly set up in TextMate. TextMate does not inherit the PATH environment variable from the system.
On 11 Oct 2021, at 13:02, Dr Eberhard W Lisse via TextMate textmate@lists.macromates.com wrote:
I am not sure I understand the innards nor do I want to, but I see on my Big Sur 11.6
/usr/bin/python (v 2.7.16) /usr/bin/python3 (v 3.8.2)
which are (both) from Apple
/usr/local/bin/python3 (v 3.9.7)
which is from Homebrew and the one that is in my path and is found by the
#!/usr/bin/env python
and
#!/usr/bin/env python3
shebangs. Would not the most practical be to take whatever python3 is offered?
greetings, el
On 11/10/2021 12:46, John Joyce via TextMate wrote:
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
[...]
-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist el@lisse.NA / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply Book your Covid-19 Vaccination at https://c19.idtoday.com.na _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
The Mac comes with Python. And Big Sur comes with Python 2 and 3.
I am sure one can set the PATH somewhere :-)-O
el
— Sent from Dr Lisse’s iPhone On 11. Oct 2021, 17:12 +0200, Jacob Carlborg via TextMate textmate@lists.macromates.com, wrote:
And if Python is not installed?
BTW, using /usr/bin/env assumes that the PATH environment variable is properly set up in TextMate. TextMate does not inherit the PATH environment variable from the system.
On 11 Oct 2021, at 13:02, Dr Eberhard W Lisse via TextMate textmate@lists.macromates.com wrote:
I am not sure I understand the innards nor do I want to, but I see on my Big Sur 11.6
/usr/bin/python (v 2.7.16) /usr/bin/python3 (v 3.8.2)
which are (both) from Apple
/usr/local/bin/python3 (v 3.9.7)
which is from Homebrew and the one that is in my path and is found by the
#!/usr/bin/env python
and
#!/usr/bin/env python3
shebangs. Would not the most practical be to take whatever python3 is offered?
greetings, el
On 11/10/2021 12:46, John Joyce via TextMate wrote:
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate textmate@lists.macromates.com wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea...
[...]
-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist el@lisse.NA / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply Book your Covid-19 Vaccination at https://c19.idtoday.com.na _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
-- /Jacob Carlborg
TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
The whole point of this conversation is that the upcoming macOS Monterey does not ship with Python.
On 11 Oct 2021, at 18:34, Dr Eberhard W Lisse el@lisse.na wrote:
The Mac comes with Python. And Big Sur comes with Python 2 and 3.
I am sure one can set the PATH somewhere :-)-O
el
— Sent from Dr Lisse’s iPhone On 11. Oct 2021, 17:12 +0200, Jacob Carlborg via TextMate textmate@lists.macromates.com, wrote:
And if Python is not installed?
BTW, using /usr/bin/env assumes that the PATH environment variable is properly set up in TextMate. TextMate does not inherit the PATH environment variable from the system.
On 11 Oct 2021, at 13:02, Dr Eberhard W Lisse via TextMate <textmate@lists.macromates.com mailto:textmate@lists.macromates.com> wrote:
I am not sure I understand the innards nor do I want to, but I see on my Big Sur 11.6
/usr/bin/python (v 2.7.16) /usr/bin/python3 (v 3.8.2)
which are (both) from Apple
/usr/local/bin/python3 (v 3.9.7)
which is from Homebrew and the one that is in my path and is found by the
#!/usr/bin/env python
and
#!/usr/bin/env python3
shebangs. Would not the most practical be to take whatever python3 is offered?
greetings, el
On 11/10/2021 12:46, John Joyce via TextMate wrote:
Definitely best to have users install their own.
On Oct 11, 2021, at 18:53, Jacob Carlborg via TextMate <textmate@lists.macromates.com mailto:textmate@lists.macromates.com> wrote:
"If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)" [1]
Python will be removed or already has been removed from macOS (it’s been deprecated for a couple of release now). Looks like the command needs to be updated. I’m not sure what’s the best solution is. For the bundle itself to bundle Python or for TextMate to bundle Python in a similar way as it does with Ruby 1.8.7.
[1] https://developer.apple.com/documentation/macos-release-notes/macos-12-relea... https://developer.apple.com/documentation/macos-release-notes/macos-12-release-notes
[...]
-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist el@lisse.NA mailto:el@lisse.NA / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply Book your Covid-19 Vaccination at https://c19.idtoday.com.na https://c19.idtoday.com.na/ _______________________________________________ TextMate mailing list -- textmate@lists.macromates.com mailto:textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com mailto:textmate-leave@lists.macromates.com
-- /Jacob Carlborg
TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com
If you're going to require users to install their own, then there needs to be enough of a stub to TELL them that they need to install one of their own.
Since Apple provides Python3 as part of the CLT, it seems much more reasonable to trigger an install of that, vs being told to use one or the other of the competing package solutions.
If the user were to be told to "figure it out themselves", then IMO the link should be to python.org. I would resist being told, for example, to go to Homebrew to install a Python3.
On 11 Oct 2021, at 23:30, Marc Wilson via TextMate textmate@lists.macromates.com wrote:
If you're going to require users to install their own, then there needs to be enough of a stub to TELL them that they need to install one of their own.
IIRC, there’s way to explicitly tell TextMate that a bundle requires a shell command. This page mentions requiring shell commands, but I don’t see any examples.
[1] https://macromates.com/textmate/manual/bundles