Re: [PyMOL] PyMOL with Python 3
Hi Justin, Thanks a lot for working on the repo. I converted isoslider.py and frame_slider.py, they work fine for me with Python 2 and 3. Will check them in shortly. Cheers, Thomas On 07 Dec 2015, at 07:00, Justin Lecher wrote: > On 07/12/15 10:42, Justin Lecher wrote: >> On 07/12/15 10:23, Spencer Bliven wrote: >>> Nice work! It will be very nice to have python3 compatibility in the future. >>> >>> It would be nice to organize a section of the pymol-script-repo for >>> python3-compatible scripts once this gets merged to SVN. >>> >> >> I think, we can make most of the scripts work on py2 and 3 >> simultaneously. I will create a new branch in the repo. I someone likes >> to help, you are very welcome to send PRs. Please send one PR per script >> for the ease of reviews. >> >> Justin > > Hi, > > I updated all scripts except of two for python2 and 3 compatibility. > > isoslider.py and frame_slider.py are using tk. Although 2to3 is able to > convert the code I am not familiar with implementing it in a cross ABI > compatible way. So contributions are welcome here. > > Justin -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. -- ___ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Re: [PyMOL] PyMOL with Python 3
On 07/12/15 10:42, Justin Lecher wrote: > On 07/12/15 10:23, Spencer Bliven wrote: >> Nice work! It will be very nice to have python3 compatibility in the future. >> >> It would be nice to organize a section of the pymol-script-repo for >> python3-compatible scripts once this gets merged to SVN. >> > > I think, we can make most of the scripts work on py2 and 3 > simultaneously. I will create a new branch in the repo. I someone likes > to help, you are very welcome to send PRs. Please send one PR per script > for the ease of reviews. > > Justin > > Hi, I updated all scripts except of two for python2 and 3 compatibility. isoslider.py and frame_slider.py are using tk. Although 2to3 is able to convert the code I am not familiar with implementing it in a cross ABI compatible way. So contributions are welcome here. Justin smime.p7s Description: S/MIME Cryptographic Signature -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Re: [PyMOL] PyMOL with Python 3
On 07/12/15 10:23, Spencer Bliven wrote: > Nice work! It will be very nice to have python3 compatibility in the future. > > It would be nice to organize a section of the pymol-script-repo for > python3-compatible scripts once this gets merged to SVN. > I think, we can make most of the scripts work on py2 and 3 simultaneously. I will create a new branch in the repo. I someone likes to help, you are very welcome to send PRs. Please send one PR per script for the ease of reviews. Justin smime.p7s Description: S/MIME Cryptographic Signature -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Re: [PyMOL] PyMOL with Python 3
Nice work! It will be very nice to have python3 compatibility in the future. It would be nice to organize a section of the pymol-script-repo for python3-compatible scripts once this gets merged to SVN. -Spencer On Fri, Dec 4, 2015 at 8:12 PM Thomas Holder wrote: > Hi all, > > We have refactored Open-Source PyMOL to work with Python 3. If you are > interested, the patched code and the patch itself are currently available > from the sourceforge download page: > > https://sf.net/projects/pymol/files/pymol/1.8/ > pymol-v1.8.0.0-r4145-py3.tar.bz2 (patched code) > pymol-v1.8.0.0-r4145-py3.patch (diff agains current SVN) > > Disclaimer: If you have no particular interest in Python 3, then this is > not for you. Most currently available PyMOL plugins and Python scripts will > not work with this version, they will need to be refactored as well. > > If you find any bugs or unexpected behavior, please let us know. In Python > 3, all strings (type "str") are unicode, while in Python 2 "str" is an > alias for "bytes". This difference is probably the most significant one for > PyMOL. Once the patch looks rock solid and also proves to still work fine > with Python 2, we will check it in to SVN. > > Cheers, > Thomas > > -- > Thomas Holder > PyMOL Principal Developer > Schrödinger, Inc. > > > > -- > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple > OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > ___ > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net