Skip to content

AttributeError: module 'dateutil' has no attribute 'tz' #770

@sebma

Description

@sebma

Hi,

I'm working on Ubuntu 17.10, and I'm using dateutil v2.7.3 :

Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import dateutil

In [2]: dateutil.__version__
Out[2]: '2.7.3'

In [3]: myTZ = dateutil.tz.tzlocal()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-2eaa368ffa09> in <module>()
----> 1 myTZ = dateutil.tz.tzlocal()

AttributeError: module 'dateutil' has no attribute 'tz'

Can you please help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions