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

how to remove the following DeprecationWarning msg in jupyter notebook after using pygam? #220

Closed
jzang18 opened this issue Oct 26, 2018 · 6 comments

Comments

@jzang18
Copy link

jzang18 commented Oct 26, 2018

this warning shows up in every cell after using pygam:
"xxx/anaconda/lib/python2.7/json/encoder.py:207: DeprecationWarning: Interpreting naive datetime as local 2018-10-26 09:17:00.557755. Please add timezone info to timestamps.
chunks = self.iterencode(o, _one_shot=True)"

It ONLY shows up after I use pygam. I am using python 2.7.15.

@dswah
Copy link
Owner

dswah commented Oct 26, 2018

@jzang18 i suspect that https://github.com/dswah/pyGAM/blob/master/pygam/utils.py#L229 might be the cause of this.

@dswah
Copy link
Owner

dswah commented Oct 26, 2018

@jzang18 i think #221 may fix this warning.
i will push a new version and let you know when it is ready to try.

@dswah
Copy link
Owner

dswah commented Oct 26, 2018

@jzang18 i installed python 2.7.15 and numpy 1.11, but I have not been able to reproduce this jupyter warning.

@jzang18
Copy link
Author

jzang18 commented Oct 26, 2018

I'ts probably not python and numpy. I don't have issues in python run. I only have issues when using jupyter notebook. And warnings appears every time I run something after I using pygam. I noticed this after update in Aug/Sept. I tried update my python/numpy/pandas, etc, nothing helps.

@jzang18
Copy link
Author

jzang18 commented Oct 26, 2018

google shows me it's from a jupyter/jso issue around 2017, although my jupyter is up to date. Not why is issue only kicks in after I use pygam.

https://bugs.python.org/issue30063
CDAT/vcs#170 (comment)

@jzang18
Copy link
Author

jzang18 commented Oct 29, 2018

it's good now after updating utils.py

@jzang18 jzang18 closed this as completed Oct 29, 2018
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