just replace line 45 with this one print 'python-apt', apt_pkg.Version, "for", apt_pkg.CPU, \ "compiled on", apt_pkg.Date, apt_pkg.Time