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

Fix for windows os error (#1402) Changed to use py3.6 behavior also with python 3.7 and above. #1501

Merged

Conversation

mprostock
Copy link
Contributor

@mprostock mprostock commented Apr 7, 2019

Fix for #1402.
Dash/Plotly work fine with python 3.5 and 3.6., but using python 3.7 creates uncaught OS Error exceptions from plotly utils.py.

Reason:
The variable PY36 in utils.py is used to branch code for different behaviour for datetime objects depending on the python version. This was set to 3.6 by using '==', this 1-character change ('>=') fixes the problems on windows when using plotly/dash with python 3.7. Without it 3.7 gets same behaviour as 3.5, which does not work. ;-)

@jonmmease
Copy link
Contributor

Great catch @mprostock, thanks for the PR!

@jonmmease jonmmease merged commit b13b2ba into plotly:master Apr 8, 2019
@jonmmease jonmmease added this to the v3.8.0 milestone Apr 8, 2019
@nicolaskruchten
Copy link
Contributor

I do have some concerns about a variable called PY36 being True on 3.7 ... should we rename that variable to PY36PLUS or something throughout?

@jonmmease
Copy link
Contributor

My brain didn't mind interpreting PY36 and >= 3.6, but I'd be happy to change the name the next time one of us has a chance.

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

Successfully merging this pull request may close these issues.

3 participants