question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS 12.3 removes python 2.7

See original GitHub issue

Source: https://macmule.com/2022/01/29/macos-monterey-12-3-will-remove-python-2-7-usr-bin-python/

Given that python 2.7 will no longer be part of the system from that release onwards, the following error will appear:

/usr/local/bin/display_manager.py: bad interpreter: /usr/bin/python: no such file or directory

As a workaround, is it possible to specify the location of python 2.7 to use?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
uurazzlecommented, Jul 21, 2022

Hi, @filipruisl:

Sorry, we haven’t had the bandwidth to focus on this project, but it is on our to-do’s when we have time and can fit it into our priorities.

1reaction
talvingcommented, May 31, 2022

Hi!

Tried the relocatable-python workaround but am still getting errors. Any ideas?

thta@m1air-01 ~ % /usr/local/bin/display_manager.py help Traceback (most recent call last): File "/usr/local/bin/display_manager.py", line 27, in <module> from display_manager_lib import * # The Display Manager Library File "/usr/local/bin/display_manager_lib.py", line 27, in <module> import objc # access Objective-C functions and variables ModuleNotFoundError: No module named 'objc'

Tried manually installing objc but can’t seem to get it to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apple Finally Removing Python 2 in macOS 12.3 - MacRumors
Apple will no longer bundle Python 2.7 with macOS 12.3, according to developer release notes for the upcoming software update. Python 2 has ......
Read more >
macOS Monterey 12.3 will remove Python 2.7 (/usr/bin/python)
macOS Monterey 12.3 will remove Python 2.7 (/usr/bin/python) ... Hot on the heels of macOS Monterey 12.2, Apple have publicly released the macOS...
Read more >
macOS Monterey 12.3 removes Python 2 – Link collection
macOS Monterey 12.3 removes Python 2 – Link collection. Note: I will update this post for the next few weeks with new and...
Read more >
Apple removing Python 2.7 on Mac - What does this mean for ...
On macOS 12.3 and above, apps and software that call on Python 2.7 will fail because the Python 2 interpreter will not be...
Read more >
How to Install Python 2 on macOS 12.3+ - Shahed Nasser
As of macOS 12.3+, Python 2 which was installed by default at /usr/bin/python have been removed. This can lead to a lot of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found