Changes between Initial Version and Version 1 of Ticket #6961


Ignore:
Timestamp:
May 25, 2022, 6:14:50 PM (4 years ago)
Author:
Tom Goddard
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6961 – Description

    initial v1  
    11Restarting an AlphaFold prediction after an OpenMM minimization failure with minimization turned off by pressing the play button after an error gives the following error.  This example is from the standard AlphaFold Colab notebook.  The ChimeraX Colab notebook has the same problem.  The problem is
    22
     3{{{
    34import locale
    45locale.getpreferredencoding()
     6}}}
    57
    68returns "ANSI_X3.4-1968" instead of the expected "UTF-8".  Before the error the same call gave "UTF-8".  So it seems reporting the error traceback somehow changed the preferred encoding.  I was not able to remedy the problem with calls to locale.setlocale().  I could not find any way to get the preferred encoding back to "UTF-8".  No relevant environment variables were set.  If I redefine locale.getpreferredencoding() to always return 'UTF-8' then AlphaFold complete successfully.
     
    810If encoding is not 'UTF-8' then Google Colab is not able to execute any shell commands in the notebook.
    911
     12{{{
    1013---------------------------------------------------------------------------
    1114NotImplementedError                       Traceback (most recent call last)
     
    3942
    4043NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968
     44}}}