arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.71k stars 673 forks source link

AttributeError: module 'arrow' has no attribute 'FORMAT_RFC3339' #809

Closed MaximBazarov closed 4 years ago

MaximBazarov commented 4 years ago

Issue Description

Hi there, I'm trying to use the code from the documentation, but get this weird error

AttributeError: module 'arrow' has no attribute 'FORMAT_RFC3339'

import arrow
utc = arrow.utcnow()
print(utc.format(arrow.FORMAT_RFC3339))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'arrow' has no attribute 'FORMAT_RFC3339'

System Info

jadchaar commented 4 years ago

Hi @MaximBazarov, apologies for this. This is a feature in the upcoming 0.15.7 release: https://github.com/crsmithdev/arrow/pull/810, which should hopefully be released today if all goes well. Stay tuned. We need to work on making our docs update based on package versions :).