[issue30063] DeprecationWarning in json/encoder.py

Paul Durack report at bugs.python.org
Wed Apr 12 22:40:26 EDT 2017


New submission from Paul Durack:

I have started receiving the following warnings which are starting to prevent an ipython session from functioning:

/home/user/anaconda2/envs/cdatcmornclnco/lib/python2.7/json/encoder.py:207: DeprecationWarning: Interpreting naive datetime as local 2017-04-12 17:15:36.235571. Please add timezone info to timestamps.
  chunks = self.iterencode(o, _one_shot=True)
/home/user/anaconda2/envs/cdatcmornclnco/lib/python2.7/json/encoder.py:207: DeprecationWarning: Interpreting naive datetime as local 2017-04-12 17:15:36.267401. Please add timezone info to timestamps.
  chunks = self.iterencode(o, _one_shot=True)

The only way I can continue is to terminate the ipython shell and open a new instance.

Can someone tell me what I need to do to solve the issue? Is there a json import somewhere that requires some new arguments?

----------
components: Library (Lib)
messages: 291582
nosy: Paul Durack
priority: normal
severity: normal
status: open
title: DeprecationWarning in json/encoder.py
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30063>
_______________________________________


More information about the Python-bugs-list mailing list