github-issue-counter icon indicating copy to clipboard operation
github-issue-counter copied to clipboard

Error with the 'now' obj

Open greenido opened this issue 7 years ago • 2 comments

How to reproduce:

  1. Clone the repo on macOS (v 10.13.6).
  2. Try to run process_issues.py
  3. This is the output:
./process_issues.py
Traceback (most recent call last):
  File "./process_issues.py", line 16, in <module>
    now = datetime.datetime.now(datetime.timezone.utc)
AttributeError: 'module' object has no attribute 'timezone'

greenido avatar Aug 21 '18 21:08 greenido

Could you try to change

#!/usr/bin/env python

to

#!/usr/bin/env python2

Because then it's a 2 to 3 problem. Somebody™ should then update the code to also run on python3. Unfortunately I'm currently not using this project right now, but PRs are welcome.

MorrisJobke avatar Aug 22 '18 08:08 MorrisJobke

python --version returns: Python 2.7.10 and it still have the same issue. I'll try to dig more...

greenido avatar Aug 22 '18 21:08 greenido