Skip to content

Conversation

mrakitin
Copy link
Contributor

@mrakitin mrakitin commented Apr 3, 2020

While following the example at https://open-babel.readthedocs.io/en/latest/UseTheLibrary/PythonInstall.html#test-the-installation, noticed that the mol.draw() step fails on importing of Tkinter in Python 3.7. The module was renamed to tkinter in Python 3+ versions, and the six library supports the proper handling of the change: https://six.readthedocs.io/#module-six.moves (thanks to @tacaswell for the reference). I added six as the install requirement.

@baoilleach
Copy link
Member

baoilleach commented Apr 4, 2020 via email

@mrakitin
Copy link
Contributor Author

mrakitin commented Apr 5, 2020

Why is six a problem? It properly takes care of the py2->py3 transition, is available for all platforms on PyPI and conda.

@baoilleach
Copy link
Member

baoilleach commented Apr 5, 2020 via email

@mrakitin
Copy link
Contributor Author

mrakitin commented Apr 7, 2020

@baoilleach, please check the fix.

@baoilleach
Copy link
Member

Thanks Maksim. Looks great.

@baoilleach baoilleach merged commit 88f7306 into openbabel:master Apr 7, 2020
@mrakitin mrakitin deleted the fix-tkinter-for-py3 branch April 7, 2020 12:10
@mrakitin
Copy link
Contributor Author

mrakitin commented Apr 7, 2020

You are welcome, Noel! Thanks for accepting the fix.

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.

2 participants