Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.5 imcompatibilities: RemoteScriptError: exceptions must be classes, instances, or strings #21

Open
colourcode opened this issue Nov 29, 2014 · 2 comments

Comments

@colourcode
Copy link

Does anybody else see a bunch of these sorts of errors when using this with Live 9.1.6?

RemoteScriptError: exceptions must be classes, instances, or strings

I believe the cause for this is that the decompiled code in this repository (and for that matter any decompiled python code generated with decompyle2) is python 2.7, while Ableton Live has a python 2.5 interpreter and does not understand this exception syntax:

raise foo > 0 or AssertionError

I also noticed that it will throw exceptions when executing this sort of exception handling code:

try:
     something = 0
except Exception as exc:
     pass

Exception as exc syntax is also not supported in python 2.5

@NSUSpray
Copy link

NSUSpray commented Jan 15, 2017

You must write this with using comma instead “as”:

try:
     something = 0
except Exception, exc:
     pass

@datamafia
Copy link

holy shit 2.5. Is this confirmed or inferred?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants