Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with the 'now' obj #3

Open
greenido opened this issue Aug 21, 2018 · 2 comments
Open

Error with the 'now' obj #3

greenido opened this issue Aug 21, 2018 · 2 comments
Labels

Comments

@greenido
Copy link

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'
@MorrisJobke
Copy link
Owner

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.

@greenido
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants