🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

[Fixed] I haven't been able to get any script to show up in preferences.

Submitted by choplifter on Fri, 11/15/2019 - 10:23
choplifter
Control Surface Studio User

at first they wouldn't show up in the remote scripts folder, then for some reason they were there. But NOTHING shows up in preferences still. and i keep getting a "with" will be reversed in python 2.6 message.
first i tried to make one for my MPK2, then i tried to make one with as little features as possible, just a play button, with the midimix controller template in CSS, to see if it was something i was doing with the mpk controller template i made. Nothing shows up in any case.

idk which log files matter, so i'll attache the ableton one and copy paste the one in CSS

CSS

C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk2\__init__.py", line 1, in
from css_mpk2 import css_mpk2
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk_tooo\__init__.py", line 1, in
from css_mpk_tooo import css_mpk_tooo
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk2\__init__.py", line 1, in
from css_mpk2 import css_mpk2
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk_tooo\__init__.py", line 1, in
from css_mpk_tooo import css_mpk_tooo
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk2\__init__.py", line 1, in
from css_mpk2 import css_mpk2
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk_tooo\__init__.py", line 1, in
from css_mpk_tooo import css_mpk_tooo
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_my_first_script\__init__.py", line 1, in
from css_my_first_script import css_my_first_script
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk2\__init__.py", line 1, in
from css_mpk2 import css_mpk2
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk2\css_mpk2.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_mpk_tooo\__init__.py", line 1, in
from css_mpk_tooo import css_mpk_tooo
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_mpk_tooo\css_mpk_tooo.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_my_first_script\__init__.py", line 1, in
from css_my_first_script import css_my_first_script
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_my_first_script\css_my_first_script.py
", line
23
with self.component_guard():
^
SyntaxError
:
invalid syntax

upload files: 
Topic Category: 

24 Responses

Comments

JohnC
Forum Admin
#1

Hi,
Sorry about these problems you are experiencing, something is definitely wrong with the script.
We've never seen those errors before!
Could you send the actual script via email to us here: help at remotify.io
We need all of the files so best to zip the script folder.

Thanks

John

choplifter
Control Surface Studio User
#2

Sent. The email title is "requested scripts" or something like that. attaching them here too.

JohnC
Forum Admin
#3

Thanks, we have replied to your email.

Simon Absent
Control Surface Studio User
#4

I have exactly the same problem - occurred whilst doing the tutorial to learn about Remotify which I just purchased,
So I have only one "Undo" button - very simple script - but I will ZIP and attach!

Script was exported successfully to: C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts
I can see it in the Windows Browser but Ableton 9.2.3 does not display my script.

Here is the error log from Remotify:

C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_aaaaaaaaaa\__init__.py", line 1, in
from css_aaaaaaaaaa import css_aaaaaaaaaa
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py
", line
27
with self.component_guard():
^
SyntaxError
:
invalid syntax

upload files: 
JohnC
Forum Admin
#5

Hi, could you try opening your script in text editor and adding the following line at the very top:
from __future__ import with_statement

Save the file, and restart ableton live.

Simon Absent
Control Surface Studio User
#6

Hi John,

I did as advised - the following happened:

- Changed thevery top line (see screenshots attached)
- Ableton still does not show the script (see screenshots attached)

However there was one change:

- In the Folder C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa
a PYC-file was created (see screenshots attached). It has the same name that the ".PY" created and exported by Remotify App and similar in size and altered extention.

I will also include it in this post.

Thank you for your support John and keep up the good work!

Simon Absent
Control Surface Studio User
#7

Any news on this one?
I have tried this with Ableton 9.2.3 on a Windows 32bit and on a 64bit system with the same result...

choplifter
Control Surface Studio User
#8

Switching to Ableton 10 took care of it for me

JohnC
Forum Admin
#9

Can you paste in here the contents of the error log in Control Surface Studio (in the menu at the top).
Thanks

Simon Absent
Control Surface Studio User
#10

C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_aaaaaaaaaa\__init__.py", line 1, in
from css_aaaaaaaaaa import css_aaaaaaaaaa
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_aaaaaaaaaa\css_aaaaaaaaaa.py
", line
27
with self.component_guard():
^
SyntaxError
:
invalid syntax

Simon Absent
Control Surface Studio User
#11

thank you for looking in to this!!!

JohnC
Forum Admin
#12

Sorry, just realised you had already pasted that in here (my bad trying to do too many things at once).

adding this line should have fixed it
from __future__ import with_statement
Can you try adding it to the top of the __init_.py file instead (see screenshot)

Simon Absent
Control Surface Studio User
#13

I did as advised - unfortunately, no gain.
Here is what happened:

Case1:
if I add the line you suggested to the __init_.py a corresponding PYC file is created
unfortunalely no script shows in Ableton

Case2:
additionally if I add the line you suggested to the css****.py a corresponding PYC file is created
unfortunalely no script shows in Ableton

so if the plan is that PYC files are created during Ableton boot up - this happens when adding "from __future__ import with_statement" - - unfortunately the script is a no-show in Ableton :-(

I will post error Logs for Case1 and Case2 FYI

Simon Absent
Control Surface Studio User
#14

Case1:

C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb\css_bbbbb.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb\css_bbbbb.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_bbbbb\__init__.py", line 2, in
from css_bbbbb import css_bbbbb
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb\css_bbbbb.py
", line
27
with self.component_guard():
^
SyntaxError
:
invalid syntax

Simon Absent
Control Surface Studio User
#15

Case2:

Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_bbbbb\__init__.py", line 2, in
from css_bbbbb import css_bbbbb
File "MIDI Remote Scripts\css_bbbbb\css_bbbbb.py", line 23, in
from user import *
ImportError
:
No module named user

Simon Absent
Control Surface Studio User
#16

here are the files after Case 1 and 2 was tested

upload files: 
Simon Absent
Control Surface Studio User
#17

What is the latest news on zhus topic?
I bought pro software and can not use it....

Pleaee help!

JohnC
Forum Admin
#18

Hi, I think making 1 more change with case 2 (adding the line to css_xx.py) could fix it for you:
Remove the following lines from your script .py file (appear around line 20):
try:
from user import *
except ImportError:
from user import *

Make sure the other line I told you to add is still there at the top of the script Then close and reload Live.
from __future__ import with_statement

Simon Absent
Control Surface Studio User
#19

Hi John - that DID work!
I can see the script now and when I choose it in Ableton I get a yellow info telling me that my script is active.
However - I still get error messages in the ControlSurface Software.
I will test the script and see if it works - in the mean time here is the error log from Remotify after having used all your suggestions and successfully displaying the script as expected:

C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb3\css_bbbbb2.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb3\css_bbbbb2.py:27: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "MIDI Remote Scripts\css_bbbbb3\__init__.py", line 1, in
from css_bbbbb2 import css_bbbbb2
File "
C:\ProgramData\Ableton\Live 9 Suite\Resources\MIDI Remote Scripts\css_bbbbb3\css_bbbbb2.py
", line
27
with self.component_guard():
^
SyntaxError
:
invalid syntax

Simon Absent
Control Surface Studio User
#20

NO WAIT STOP - my bad - the error was caused by my safety copy of the originally exported folder from Remotify.
I just copied the original folder to have an extra one to play with - it was that one which caused the error log to be populated.

after deleting that folder and keeping only the modified one as suggested - no errors!!!!

I will keep you posted if the script works but would like to ask if this solution will be implemented in a future update?

thank you!!!

JohnC
Forum Admin
#21

Hi Simon,
Great news that your scripts are now working, thank you for your updates.
So that we can implement the correct fix, can you confirm that the following changes are the ones that have fixed your script in Ableton Live 9.2.3:
1. Add to the very top of the script.py file: from __future__ import with_statement
2. Remove the following lines from script.py file:
try:
from user import *
except ImportError:
from user import *

JohnC
Forum Admin
#22

Version 2.5.6 provides better backward support for Ableton Live 9.2.3.
The errors listed in this topic should now all be fixed (make sure to select Python 2.5 in the settings).
See the 2.5.6 topic for more details: https://remotify.io/community/question/css-version-256-out

Simon Absent
Control Surface Studio User
#23

Hi everyone - Version 2.5.6 solves this completely!!!!!!!

I am so happy - John you made my day!
It was such a hassle to get anything working, testing and trying out bits and pieces because for every little change in my script I had to do this procedure over and over and over again....

Thank you very much, I am so glad to never having to do this procedure ever again!

:-)
Simon

JohnC
Forum Admin
#24

Hi Simon,
That's great to hear, thanks for letting us know :)