Page 1 of 1

Import Python Modules in Control Surfaces

Posted: Mon Jan 18, 2021 2:11 am
by Oneiroi
Not sure if this is the best place to ask this, but I don't know of any Ableton Python programmers community... I'm trying to add keystroke events in my control surface script for controlling things not possible with the current Live API. I've installed pynput and it works fine, but when I try it with Live, the log file says it can't find the module. Is there any way to use external Python libraries in Live?

I'm fairly new at scripting, so some of these concepts are beyond me, but I can get around with controlling most of Live's objects through Control Surface scripts. Thanks for your help!

Re: Import Python Modules in Control Surfaces

Posted: Wed Jan 20, 2021 7:51 pm
by hdrpbx
I have never tested it but you could try this

https://pypi.org/project/pyinstaller/

Re: Import Python Modules in Control Surfaces

Posted: Mon Jan 25, 2021 2:27 am
by Oneiroi
Hhmm, thanks for the tip. Unfortunately it gave me this error:

Code: Select all

ImportError: bad magic number in 'clyphx_pro': b'\x03\xf3\r\n'
That magic number sounds very interesting.

Re: Import Python Modules in Control Surfaces

Posted: Mon Jan 25, 2021 5:01 am
by The Rabbits
I've been working on a script over the last week and one thing I noticed was Clyphx is generating errors and won't load. Might have something to do with the problem you're having.

I'm learning python as well as the live object model all at the same time, so I can't help with the details at the moment.

Re: Import Python Modules in Control Surfaces

Posted: Mon Jan 25, 2021 5:02 am
by The Rabbits
I've been working on a script over the last week and one thing I noticed was Clyphx is generating errors and won't load. Might have something to do with the problem you're having.

I'm learning python as well as the live object model all at the same time, so I can't help with the details at the moment.

I'm working in the Live 11 beta as well.

Re: Import Python Modules in Control Surfaces

Posted: Mon Jan 25, 2021 12:10 pm
by S4racen
Live 11 uses a newer version of Python.

Cheers
D

Re: Import Python Modules in Control Surfaces

Posted: Mon Jan 25, 2021 12:35 pm
by The Rabbits
Yes. I think that's what broke Clyphx.

Re: Import Python Modules in Control Surfaces

Posted: Wed Feb 03, 2021 2:27 pm
by Oneiroi
S4racen wrote:
Mon Jan 25, 2021 12:10 pm
Live 11 uses a newer version of Python.

Cheers
D
Should we expect a newer version of ClyphX as well?