Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py_compile issue
#1
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 ?
Reply


Messages In This Thread
py_compile issue - by Johb - Nov-01-2020, 09:03 PM
RE: py_compile issue - by bowlofred - Nov-01-2020, 09:46 PM
RE: py_compile issue - by Larz60+ - Nov-01-2020, 09:54 PM
RE: py_compile issue - by Johb - Nov-01-2020, 10:06 PM
RE: py_compile issue - by Larz60+ - Nov-01-2020, 11:39 PM
RE: py_compile issue - by Johb - Nov-02-2020, 08:47 AM
RE: py_compile issue - by Larz60+ - Nov-02-2020, 11:00 AM
RE: py_compile issue - by Johb - Nov-02-2020, 03:03 PM
RE: py_compile issue - by jefsummers - Nov-02-2020, 06:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  py_compile spouted this weird output Klar 4 3,582 Dec-13-2017, 05:35 PM
Last Post: Klar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020