GAM-3.7 Dependancy on Python 2.7 and above for writeheader()

267 views
Skip to first unread message

James MacLean

unread,
Aug 30, 2016, 6:39:49 AM8/30/16
to Google Apps Manager
CentOS 6.8 runs Python 2.6 and does not have this function :

# gam.py print cros
...
Traceback (most recent call last):
 File "/usr/local/GAM-3.71-gnspes.ca/gam.py", line 11234, in <module>
   sys.exit(ProcessGAMCommand(sys.argv))
 File "/usr/local/GAM-3.71-gnspes.ca/gam.py", line 10790, in ProcessGAMCommand
   doPrintCrosDevices()
 File "/usr/local/GAM-3.71-gnspes.ca/gam.py", line 9571, in doPrintCrosDevices
   writeCSVfile(csvRows, titles, u'CrOS', todrive)
 File "/usr/local/GAM-3.71-gnspes.ca/gam.py", line 8730, in writeCSVfile
   writer.writeheader()
AttributeError: DictWriter instance has no attribute 'writeheader'



Any suggestions on an approach to getting the latest GAM working with recent versions of CentOS that do not require overwriting the installed Python ?

Thanks,
JES

David Carter Tod

unread,
Sep 16, 2016, 1:29:52 PM9/16/16
to Google Apps Manager
Just +1

Ross Scroggs

unread,
Sep 16, 2016, 1:38:02 PM9/16/16
to google-ap...@googlegroups.com
David,

This has been fixed but it hasn't gotten into Jay's version yet; get a fixed version here: https://github.com/taers232c/GAM/releases

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/30ca4ffa-6f7d-488b-bcc4-69c0ee2c432b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages