github-issue-counter
github-issue-counter copied to clipboard
Error with the 'now' obj
How to reproduce:
- Clone the repo on macOS (v 10.13.6).
- Try to run process_issues.py
- 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'
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.
python --version returns: Python 2.7.10 and it still have the same issue. I'll try to dig more...