How to find the version of python used?

Discuss Live-ready controllers other than Push.
Post Reply
spinlud
Posts: 105
Joined: Sat May 26, 2012 9:27 am

How to find the version of python used?

Post by spinlud » Mon Mar 10, 2025 6:01 pm

Hi! How can I find the exact python version Ableton uses?
I need it to compile custom remote midi scripts.

zsteinkamp
Posts: 35
Joined: Mon Apr 11, 2022 1:09 am

Re: How to find the version of python used?

Post by zsteinkamp » Mon Mar 10, 2025 9:20 pm

Can't tell you for sure, but I dragged a .pyc file from Ableton 12.1.10's Contents/App-Resources/MIDI Remote Scripts folder to pylingual.io and it said it was 3.11.

e.g. https://www.pylingual.io/view_chimera?i ... 71a4bde797

dr_kant
Posts: 33
Joined: Wed Jan 05, 2005 9:17 am
Location: France
Contact:

Re: How to find the version of python used?

Post by dr_kant » Tue Mar 11, 2025 9:06 am

If you put .py files in the remote scripts folder, Live should compile them on its own.

spinlud
Posts: 105
Joined: Sat May 26, 2012 9:27 am

Re: How to find the version of python used?

Post by spinlud » Tue Mar 11, 2025 9:48 am

dr_kant wrote:
Tue Mar 11, 2025 9:06 am
If you put .py files in the remote scripts folder, Live should compile them on its own.
Yeah I've just found that, this makes things easier!

The problem is I can't find any working example of .py files for remote scripts. The ones I have found here https://github.com/gluon/AbletonLive12_ ... oteScripts don't load correctly, I have checked the Ableton log.txt and there are python errors :?

dr_kant
Posts: 33
Joined: Wed Jan 05, 2005 9:17 am
Location: France
Contact:

Re: How to find the version of python used?

Post by dr_kant » Tue Mar 11, 2025 10:00 am

You can join the discord server here and i'll put a basic working script in "ableton-remote-scripts" channel if you want.
https://discord.com/invite/KjqX9aY6jK

spinlud
Posts: 105
Joined: Sat May 26, 2012 9:27 am

Re: How to find the version of python used?

Post by spinlud » Tue Mar 11, 2025 6:02 pm

dr_kant wrote:
Tue Mar 11, 2025 10:00 am
You can join the discord server here and i'll put a basic working script in "ableton-remote-scripts" channel if you want.
https://discord.com/invite/KjqX9aY6jK
Awesome, joined! What is this discord about?

dr_kant
Posts: 33
Joined: Wed Jan 05, 2005 9:17 am
Location: France
Contact:

Re: How to find the version of python used?

Post by dr_kant » Tue Mar 11, 2025 6:36 pm

spinlud wrote:
Tue Mar 11, 2025 6:02 pm
Awesome, joined! What is this discord about?
It's my artist server and also for updates about my TouchOSC app.
I've added an ableton-remote-scripts channel for anyone interested in discussing remote scripts.
I put the script there, it's a really basic "Hello World" example, might be usefull depending on what you want to do.
If you want to modify an existing controller script listed in your link the best way it to try debuging it.

sissySpacecraft
Posts: 16
Joined: Thu Sep 24, 2015 2:41 am

Re: How to find the version of python used?

Post by sissySpacecraft » Tue Apr 08, 2025 2:19 am

I'm pretty sure you already got your answer, but this is something that racked my brain until I figured it out.

When you run "uncompyle6" on Live 12 MRS scripts, you can get errors that all basically mean, "this is 3.11 bytecode but I can only un-compile code compiled by 3.8 or below, sorry". You don't see those same errors when you run "uncompyle6" on Live 11 MRS scripts.

<edit> You can write custom scripts based on code decompiled from Live 11 (3.8 or lower bytecode) that work in Live 12 (recompiled by Live 12 into 3.11 bytecode)</edit>

Post Reply