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

datetime 'tzinfo' has no attribute '__new__' #319

Open
rdagger opened this issue Nov 6, 2018 · 4 comments
Open

datetime 'tzinfo' has no attribute '__new__' #319

rdagger opened this issue Nov 6, 2018 · 4 comments

Comments

@rdagger
Copy link

rdagger commented Nov 6, 2018

When I try to import datetime using latest build of LoBo MicroPython I get the following error:

import datetime
Traceback (most recent call last):
File "", line 1, in
File "datetime.py", line 1919, in
File "datetime.py", line 1836, in _create
AttributeError: type object 'tzinfo' has no attribute 'new'

@rdagger
Copy link
Author

rdagger commented Nov 9, 2018

I also tested with the latest Micropython.org build esp32spiram-20181109-v1.9.4-683-gd94aa577a.bin
It produces the same error message as the LoBo build.

@markmelvin
Copy link

Yes, the datetime module seems broken.

miguelgrinberg added a commit to miguelgrinberg/micropython-lib that referenced this issue Apr 27, 2019
@YTBeater
Copy link

@miguelgrinberg Thanks you for your fixes. That work for me too.

@stroobandt
Copy link

@miguelgrinberg Thanks for the fix Miguel. That works here too.

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

4 participants