|
24 | 24 | if not hasattr(sys, 'frozen'): |
25 | 25 |
|
26 | 26 | if sys.version_info < (2,6) or sys.version_info > (3,0): |
27 | | - print "Pyfa requires python 2.x branch ( >= 2.6 )\nExiting." |
| 27 | + print("Pyfa requires python 2.x branch ( >= 2.6 )\nExiting.") |
28 | 28 | sys.exit(1) |
29 | 29 |
|
30 | 30 | try: |
31 | 31 | import wxversion |
32 | 32 | except ImportError: |
33 | | - print "Cannot find wxPython\nYou can download wxPython (2.8) from http://www.wxpython.org/" |
| 33 | + print("Cannot find wxPython\nYou can download wxPython (2.8) from http://www.wxpython.org/") |
34 | 34 | sys.exit(1) |
35 | 35 | try: |
36 | 36 | wxversion.select('2.8') |
37 | 37 | except wxversion.VersionError: |
38 | 38 | try: |
39 | 39 | wxversion.ensureMinimal('2.8') |
40 | 40 | except wxversion.VersionError: |
41 | | - print "Installed wxPython version doesn't meet requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/" |
| 41 | + print("Installed wxPython version doesn't meet requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/") |
42 | 42 | sys.exit(1) |
43 | 43 | else: |
44 | | - print "wxPython 2.8 not found; attempting to use newer version, expect errors" |
| 44 | + print("wxPython 2.8 not found; attempting to use newer version, expect errors") |
45 | 45 |
|
46 | 46 | try: |
47 | 47 | import sqlalchemy |
|
54 | 54 | betaFlag = True if saMatch.group(3) == "b" else False |
55 | 55 | saBuild = int(saMatch.group(4)) if not betaFlag else 0 |
56 | 56 | if saMajor == 0 and (saMinor < 5 or (saMinor == 5 and saBuild < 8)): |
57 | | - print "Pyfa requires sqlalchemy 0.5.8 at least but current sqlalchemy version is %s\nYou can download sqlalchemy (0.5.8+) from http://www.sqlalchemy.org/".format(sqlalchemy.__version__) |
| 57 | + print("Pyfa requires sqlalchemy 0.5.8 at least but current sqlalchemy version is %s\nYou can download sqlalchemy (0.5.8+) from http://www.sqlalchemy.org/".format(sqlalchemy.__version__)) |
58 | 58 | sys.exit(1) |
59 | 59 | else: |
60 | | - print "Unknown sqlalchemy version string format, skipping check" |
| 60 | + print("Unknown sqlalchemy version string format, skipping check") |
61 | 61 |
|
62 | 62 | except ImportError: |
63 | | - print "Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/" |
| 63 | + print("Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/") |
64 | 64 | sys.exit(1) |
65 | 65 |
|
66 | 66 | from optparse import OptionParser |
|
0 commit comments