gluon / AbletonLive11_MIDIRemoteScripts

https://structure-void.com/ableton-live-midi-remote-scripts/
279 stars 68 forks source link

error using in __init__.py in Push2 folder #3

Closed databraineo closed 2 years ago

databraineo commented 2 years ago

First of all thanks for your amazing work.

When replacing the init.pyc in the MIDI Remote Scripts/Push2 folder, using your init.py, it does not start, there is a RemoteScriptError. Here the logfile:

2022-05-05T23:36:08.127872: info: RemoteScriptError:   File "C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\Push2\__init__.py", line 22, in create_instance
2022-05-05T23:36:08.128066: info: RemoteScriptError:     
2022-05-05T23:36:08.128114: info: RemoteScriptError: root = Root(sender=Sender(message_sink=(c_instance.send_model_update),
2022-05-05T23:36:08.128154: info: RemoteScriptError: 
2022-05-05T23:36:08.128197: info: RemoteScriptError: AttributeError
2022-05-05T23:36:08.128236: info: RemoteScriptError: : 
2022-05-05T23:36:08.128276: info: RemoteScriptError: 'MidiRemoteScript' object has no attribute 'send_model_update'

I run Live 11.1.1 on Windows 11. Lot of 1s here ;-)

This seems to be a general problem with Live 11.1.1. I decompiled the init.pyc with uncompyle6 and also decompyle3. Both return the same py-file that is in this repository.

Any idea why this is? I want to get ubermap to work on my machine, but the init.py in that repository is pretty much the same as yours except for two lines.

Thank you!

wiatrM commented 2 years ago

This is the same issue on Ableton 11.1 that Ive have (win 10).

@gluon do you have some tips how to deal with it? Maybe change of python version or something?

databraineo commented 2 years ago

Hi @wiatrM

this seems to be a general problem with the decompiled init.py and is not specific to ubermap (see my post in the Ableton forum (https://forum.ableton.com/viewtopic.php?f=55&t=221501&sid=11faf9b1760451d0fdd0528291bd30f8&start=240)

I decompiled the original push2 pyc-file myself and am not able to replace them with the source py-file. But sadly I have no idea why that is. Maybe it has to do with the python version, that is installed on my computer, so it does not use the one that is provided by Ableton. If somebody has an idea, it would be great to share it.

gillisd commented 2 years ago

@databraineo were you able to figure this out? Experiencing the same issue right now, completely unrelated to ubermap

databraineo commented 2 years ago

@databraineo were you able to figure this out? Experiencing the same issue right now, completely unrelated to ubermap

@gillisd No luck so far. I upgraded to 11.1.6, but neither success with replacing the whole push2-folder with the decompiled source files nor with replacing only the init.pyc with the decompiled init.py. Decompiled myself or using the repository from gluon on github, same error message. I ran out of ideas