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 - AttributeError: 'module' object has no attribute 'timezone' #14

Open
lbeck88 opened this issue Nov 12, 2020 · 1 comment
Open

Comments

@lbeck88
Copy link

lbeck88 commented Nov 12, 2020

Hi all I seem to have an issue running the code:

Traceback (most recent call last):
File "octoprice_main_inky.py", line 33, in
the_now = datetime.datetime.now(datetime.timezone.utc)
AttributeError: 'module' object has no attribute 'timezone'

I believe python installed correctly

@pufferfish-tech
Copy link
Owner

pufferfish-tech commented Nov 12, 2020

Off the top of my head I think this is because you're running python 2 instead of python 3.
If you have python3 installed then try python3 instead of python at the command line (eg "python3 octoprice_main_inky.py")

It gets me too, every time.

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

No branches or pull requests

2 participants