timsutton / aamporter

Utility to batch download Adobe Creative Suite/Cloud updates and optionally import them into a Munki repository.
MIT License
86 stars 14 forks source link

compatible python version? #6

Closed henningkessler closed 10 years ago

henningkessler commented 10 years ago

Hi,

just tried to run the current version of aamporter on a 10.6.8 server and got this error:

Traceback (most recent call last):
  File "./aamporter.py", line 702, in <module>
    main()
  File "./aamporter.py", line 424, in main
    log_stdout_handler = logging.StreamHandler(stream=sys.stdout)
TypeError: __init__() got an unexpected keyword argument 'stream'

python version is 2.6.1. Guess 10.6.8 is to old, right?

timsutton commented 10 years ago

Looks like support for setting stream was only added in 2.7, though I can't find this in the documentation. I'd be fine with supporting 10.6 in aamporter if this were a trivial change, however since StreamHandler will instead log to stderr if stream isn't set, it looks like it might not be so trivial.

I'm not able to spend the time to fix this myself since I'm not so concerned with continuing to support 10.6 (and aamporter clearly needs some attention for CC updates support), but I'd welcome any pull requests.