Nov-01-2020, 09:03 PM
Hi guys,
I want to edit a python file required by an hardware device I use for making music. The original file is a .pyc which I decompiled using uncompyle6. I copied the text in Wordpad and saved as a py file. Then I try to compile as pyc with the py_compile function but even without making any modification to the script, it keeps showing the following message :
File "melodic_pattern.py", line 126
def _get_note_info(self, (octave, note), root_note, channel=0):
^
SyntaxError: invalid syntax
What can I do to make it work ?
I want to edit a python file required by an hardware device I use for making music. The original file is a .pyc which I decompiled using uncompyle6. I copied the text in Wordpad and saved as a py file. Then I try to compile as pyc with the py_compile function but even without making any modification to the script, it keeps showing the following message :
File "melodic_pattern.py", line 126
def _get_note_info(self, (octave, note), root_note, channel=0):
^
SyntaxError: invalid syntax
What can I do to make it work ?