Page 1 of 1

How to find the version of python used?

Posted: Mon Mar 10, 2025 6:01 pm
by spinlud
Hi! How can I find the exact python version Ableton uses?
I need it to compile custom remote midi scripts.

Re: How to find the version of python used?

Posted: Mon Mar 10, 2025 9:20 pm
by zsteinkamp
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

Re: How to find the version of python used?

Posted: Tue Mar 11, 2025 9:06 am
by dr_kant
If you put .py files in the remote scripts folder, Live should compile them on its own.

Re: How to find the version of python used?

Posted: Tue Mar 11, 2025 9:48 am
by spinlud
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 :?

Re: How to find the version of python used?

Posted: Tue Mar 11, 2025 10:00 am
by dr_kant
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

Re: How to find the version of python used?

Posted: Tue Mar 11, 2025 6:02 pm
by spinlud
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?

Re: How to find the version of python used?

Posted: Tue Mar 11, 2025 6:36 pm
by dr_kant
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.

Re: How to find the version of python used?

Posted: Tue Apr 08, 2025 2:19 am
by sissySpacecraft
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>