Author Topic: python version for based TrID tools like tridupdate.py  (Read 6673 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
python version for based TrID tools like tridupdate.py
« on: October 27, 2015, 11:46:44 AM »
Hello,
i got error message when running
python.exe  tridupdate.py
  File "tridupdate.py", line 26
    print "%s: error: %s" % (os.path.split(sys.argv[0])[1], mess)
                        ^
SyntaxError: invalid syntax

and even calling by following line does not help
python.exe -v tridupdate.py

The same python script works on my Linux system without errors.
This was the eye catcher for me.
Running command 'rpm -qi python | grep "Version"'
displays result line
Version     : 2.7                               Vendor: openSUSE
On my windows system command 'which python' displays
"c:\Program Files (x86)\Python34\python.exe"
and command 'python --version'
shows line
Python 3.4.1

Obviously the python based TrID tools tridupdate.py and tridscan.py
does not work with newest python version.
So i uninstalled this python version and installed older version 2.7
and all works file on my windows system.

Unfortunately on web site http://mark0.net/soft-tridscan-e.html
concerning tridscan and on http://mark0.net/soft-trid-e.html
concerning TrIDUpdate nothing is said, that a certain
python version (2.7) is required. So it would be nice, if this
fact can be mentioned on the web site or it should be said,
that the scripts do not work with newest python version 3.4.1.

With best regard
jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: python version for based TrID tools like tridupdate.py
« Reply #1 on: October 27, 2015, 12:04:07 PM »
Hi!

Thanks for the heads up. Will surely add a note about the version in the next website update.
The updater could probably quickly modified for Python 3.x (or even to run on both); for TrIDScan it will take more, but it's planned.

Bye!