firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
216 stars 35 forks source link

[Bug] Could not find a working python interpreter on Mac OS Ventura. #534

Closed dev-deg closed 1 year ago

dev-deg commented 1 year ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

This error re-surfaced and is making Firebase unusable for development:

Could not find a working python interpreter. Please make sure one of the following is in your PATH: python3 python3.8 python3.7 python2.7 python2 python

Following this, and stdin error will appear in the console, preventing Unity Play mode from running.

Unable to use Firebase SDK in any Unity version on Mac Silicon 13.0.1.

Steps to reproduce:

  1. Create Unity Project

  2. Include google-services

  3. Import a Firebase SDK unity package.

Screenshot 2022-11-16 at 18 15 08
a-maurice commented 1 year ago

Hi @dev-deg

It seems like some versions of Mac OS, like Ventura, may not start with python installed. Based on some documentation though, it should be when you set up Xcode command line tools, which you should be able to do by running xcode-select --install from the command line.

After python is set up, you can run which python3 or which python, which should give you the path to it.

dev-deg commented 1 year ago

Hi @a-maurice thank you for your kind reply.

The issue was when I updated to Mac OS Ventura, XCode CLI tools where somehow uninstalled. Running xcode-select --install fixed the issue.

I had python 3 installed and it was done so using homebrew as you can see from the output below:

which python3 /opt/homebrew/bin/python3

which python python not found

Thank you very much for your help and support.

Kind regards, Dave