shimpe / expremigen

expressive midi generation with python 3
GNU General Public License v3.0
96 stars 4 forks source link

syntax error when attempting to import expremigen.io.pat2midi #1

Closed rabarar closed 7 years ago

rabarar commented 7 years ago

When I attempt to import the a package, I get a syntax error in the constants on line 37 of constants.py - the return value is reporting a syntax error.

return f"D{cc_number}"
shimpe commented 7 years ago

Are you using a recent version of python3?

rabarar commented 7 years ago
>>> sys.version
'3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]'

do you require 3.6? I'm using osx - i'll try using brew's python over apple's -- Turns out that that's the issue. Thx!

shimpe commented 7 years ago

f-strings are introduced in 3.6 indeed