thanks4opensource / NotLinuxAjazzAK33RGB

Not a Linux utility for the AJAZZ AK33 RGB keyboard
GNU General Public License v3.0
39 stars 7 forks source link

Invalid Syntax? #3

Closed Matias-source closed 4 years ago

Matias-source commented 4 years ago

raise ValueError, "version mismatch, file: %s code: %s" \ ^ SyntaxError: invalid syntax

I tried to run the program but i have this error

thanks4opensource commented 4 years ago

@Matias-source: Your problem is likely that you are using Python 3 instead of Python 2. Change the first line of https://github.com/thanks4opensource/NotLinuxAjazzAK33RGB/blob/master/ajazz.py from #!/usr/bin/env pythonto "#!/usr/bin/env python2". If you do not have Python 2 on your system, you can modify the code for Python 3 by changing all occurrences of raise SomeError, ... to raise SomeError(...). Hovever, there may be other Python 3 incompatibilities in the program.

Matias-source commented 4 years ago

Thanks you!