I have found a fault that when a new round is created and the year is saved as 2009, after the data and GolfTracker has been closed, when re-opened, the software crashes and does not load.
To get this error, I had added a course and entered the details on the course page, and then added a round on the round page, which had a date with the year 2009. After this, I had saved and quit GolfTracker, and after restarting the software by running ‘python golftracker,py’ in the shell, the program will not load and an error message is left on the shell:
Traceback (most recent call last):
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/golftracker.py", line 21, in ?
import GolfTracker.main
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/main.py", line 325, in ?
app = App()
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/main.py", line 67, in __init__
self.init_lastprofile()
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/main.py", line 131, in init_lastprofile
self.global_refresh()
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/main.py", line 276, in global_refresh
self.stats_page.refresh()
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/gtAppStats.py", line 370, in refresh
self.rounds_changed_cb(None)
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/gtAppStats.py", line 199, in rounds_changed_cb
self.show_stats(rl)
File "/afs/inf.ed.ac.uk/user/s08/s0812597/golftracker-0.6.4/src/GolfTracker/gtAppStats.py", line 281, in show_stats
self.w_scrambling.set_text("%.1f %%" % (scrambling * 100))
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
I found that when I changed the year of the round in the save file for the rounds, when the program was run it worked fine. I also tried adding an extra round to the test data provided with the package to make sure it was not just the data from my new saved file that was causing the problem, but this also failed to work after it was saved, closed and reopened.
This error has occured for me when I have run golftracker ver 0.64 from the shell using ‘python golftracker.py’ command, whilst using a linux machine.