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

"Fatal Error" on Monterey (no Python on Monterey, but even after installing Python, still error) #20

Open
daniel-hmc opened this issue Apr 23, 2022 · 2 comments

Comments

@daniel-hmc
Copy link

Nightscout Menubar has encountered a fatal error, and will now terminate.
A Python runtime not could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file.

It seems that Python 2.7 and even Python 3 is not shipped / installed with macOS Monterey.

My solution attempt:

  1. Installed Python 2.7 from https://www.python.org/downloads/release/python-2718/ (macOS 64bit)
  2. Added to /Applications/Nightscout Menubar.app/Contents/Info.plist in section PyRuntimeLocations:
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python

Then, in terminal:
3. rm /Applications/Nightscout Menubar.app/Contents/MacOS/python (which was symlinking to a wrong location of python: It's not installed in /usr/bin/python anymore, but in /usr/local/bin/python)
4. ln -s /usr/local/bin/python /Applications/Nightscout Menubar.app/Contents/MacOS/python

When I try to launch Nightscount Mebubar, it seems to go a little further, but still, I get a little dialog saing "Nightscount Menubar Error" with the buttons "Open Console" and "Terminate".

In Console (system log) I just see
Apr 24 01:01:25 MBP5 Nightscout Menubar[6316]: Nightscout Menubar Error

Now, I don't know what I could do anymore.

@jakobsandberg
Copy link

jakobsandberg commented Aug 3, 2022

Here's an alternative menubar you can use while this issue persists: https://github.com/mpangburn/NightscoutMenuBar. It's a comparable experience and the current release works on Monterey.

@nvanderperren
Copy link

nvanderperren commented Nov 14, 2023

@daniel-hmc python 2 is deprecated. Normally macOS does have python3 installed by default. You can try by entering the command python3 in terminal. I used Monterey and this app worked fine, until I made my nightscout site private.

This one is easier to install (App store) and doesn't need python: https://github.com/adamd9/Nightscout-MacOS-Menu-Bar

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

No branches or pull requests

3 participants