[cctbxbb] libtbx.configure crashes RE: new requirements for libtbx_refresh.py

markus.gerstel at diamond.ac.uk markus.gerstel at diamond.ac.uk
Tue Jan 23 02:41:15 PST 2018


Hi everyone,

You may find that with the latest cctbx_project updates your libtbx.configure / make reconf crashes with

(...)
  File "(..)/modules/annlib_adaptbx/libtbx_refresh.py", line 6
    print message
                ^
SyntaxError: invalid syntax
make: *** [reconf] Error 1

Solution:

Changes are required in annlib_adaptbx, and you do not have the latest version on your system.
Please run
  cd $(libtbx.find_in_repositories annlib_adaptbx)/..
  rm -rf annlib_adaptbx
  git clone https://github.com/cctbx/annlib_adaptbx.git

Background:
This is related to my earlier email attached below. I couldn't figure out how to update the static tarball of annlib_adaptbx myself, and found it easier to just convert the repository including history. Said repository now lives at https://github.com/cctbx/annlib_adaptbx. Bootstrap has been updated to pull from this location.

To avoid duplication the old repository copy we kept at https://github.com/dials/annlib_adaptbx for DIALS release control now points there, too. I note there is another copy at https://github.com/cctbx-xfel/annlib_adaptbx/network where you may also want to change the existing labels to the correct commit tree. Whoever maintains this - let me know if you want any help.

Builds are still running but it looks like this is the only bit which may require intervention on your end.

-Markus

From: cctbxbb-bounces at phenix-online.org [mailto:cctbxbb-bounces at phenix-online.org] On Behalf Of markus.gerstel at diamond.ac.uk
Sent: 16 January 2018 09:29
To: cctbxbb at phenix-online.org
Subject: [cctbxbb] new requirements for libtbx_refresh.py

Hello everyone,
There will soon be a requirement for all libtbx_refresh.py and run_tests.py of cctbx modules to contain the line

from __future__ import absolute_import, division, print_function

I have modified those that I have write access to (everything in cctbx_project, all default modules, dials*, labelit*, phenix*, xia2*), but there may be others that I am not aware of/do not use/do not have access to.

(While you are at it ideally you would want to make sure these files are valid Python2 and 3 code, but that is not strictly required at this time.)

For more information on the patch that requires this change see https://github.com/cctbx/cctbx_project/commit/ecd7192930961fde31c4ba29a049bc8675ea6885

-Markus



-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20180123/0bed0e68/attachment.htm>


More information about the cctbxbb mailing list