Print

Print


Right you are Kay. It would be very weird to start developing things on Python 2.7 right now. Its days are numbered: https://pythonclock.org/



Cheers,

Robbie



Sent from my Windows 10 phone



________________________________
From: CCP4 bulletin board <[log in to unmask]> on behalf of Kay Diederichs <[log in to unmask]>
Sent: Wednesday, June 6, 2018 8:47:07 PM
To: [log in to unmask]
Subject: Re: [ccp4bb] Python3 and MTZ

Dear Nicolas,

my (our) motivation is purely that when learning Python today, and developing something from scratch, Python3 appears like the better choice (compared to version 2) - provided that basic crystallographic libraries can be used.

Just a note (for those whose operating system provides only one of the two Python flavours): RHEL7 has Python2 as system library, but Python3 can be installed in parallel (using "Software Collections"). The user makes a choice by setting the PATH variable.

best,

Kay

On Wed, 6 Jun 2018 15:43:16 +0200, Nicolas FOOS <[log in to unmask]> wrote:

>Dear Kay,
>
>depending of the motivation to develop in python3 (could be due to an OS
>using python3 by default or you really prefer to work with python3). If
>it's due to the OS, a possible strategy is to use virtualenv
>(https://virtualenv.pypa.io/en/stable/) which let you use python2 even
>if python3 is the default version for the OS. It exist probably other
>method to have a contain installation of python2 with all the library needs.
>
>I used this strategy (virtualenv) to install ccp4 (with the installer
>which needed python2) on a manjaro linux (Arch based) running python3
>and that works very well.
>
>Nicolas
>
>Nicolas Foos
>PhD
>Structural Biology Group
>European Synchrotron Radiation Facility (E.S.R.F)
>71, avenue des Martyrs
>CS 40220
>38043 GRENOBLE Cedex 9
>+33 (0)6 76 88 14 87
>+33 (0)4 76 88 45 19
>
>On 06/06/2018 14:25, Kay Diederichs wrote:
>> Dear all,
>>
>> I haven't tried to read MTZ files from Python until now, but for a new
>> project in my lab I'd like to do that - and with Python3.
>>
>> Googling around, it seems that iotbx from cctbx is not (yet)
>> Python3-compatible.
>>
>> So, what are my options?
>>
>> thanks,
>>
>> Kay
>
>########################################################################
>
>To unsubscribe from the CCP4BB list, click the following link:
>https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1