Kodi Community Forum

Full Version: Mac Kodi 18 with Python 3?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I saw in the blog post that there are Windows and Linux Kodi 18 builds with Python 3, but I do all my development on a Mac and don't really have an easy way to change that.  Are there plans for Kodi 18 builds with Python 3 on Mac, or will I just have to wait until 19 gets stable enough so I can develop against that and then test with Kodi 18 and Kodi 19 for the 2.7/3.x differences?
As of now there are no ready built python3 builds.
Even the master which is tagged Kodi 19 Alpha is still using Python2.7

One can compile Kodi from source using feature_python3 branch and I could build successfully on Windows10 and Ubuntu Linux
You can try the build steps for MacOS, instructions are here
@pkscout - I had the same issue - i.e. developing on mac and wanting to test against a python 3 build of Kodi - this is the working solution I used.

1) Download and install Oracle VirutalBox for OSX hosts: https://www.virtualbox.org/wiki/Downloads
2) Download Ubuntu 16.04.6 LTS (Xenial Xerus): http://releases.ubuntu.com/16.04/  (I used the 64-bit PC (AMD64) desktop image)
3) Create a VM and install the Ubuntu iso (pretty good tutorial here: https://brb.nci.nih.gov/seqtools/installUbuntu.html
4) Once your Ubuntu VM is running install the "Guest Additions" from within the VM then reboot the VM
    i.e. Form the VM menu go to Devices->Insert Guest Additions CD and run the installer (this allows you to share folders, clipboard, etc between your mac and the VM) 
5) Finally add the Kodi PPA from Wolfgang Schupp

Code:
sudo add-apt-repository ppa:wsnipex/kodi-python3
sudo apt-get update
sudo apt-get install kodi 

You should now have a working Kodi install with the python 3 interpreter running on the VM on your mac that you can do your development on.
If you think it is something you might try and need any help with any of the steps feel free to hit me up Smile