Changes between Initial Version and Version 1 of Ticket #6961
- Timestamp:
- May 25, 2022, 6:14:50 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6961 – Description
initial v1 1 1 Restarting 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 2 2 3 {{{ 3 4 import locale 4 5 locale.getpreferredencoding() 6 }}} 5 7 6 8 returns "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. … … 8 10 If encoding is not 'UTF-8' then Google Colab is not able to execute any shell commands in the notebook. 9 11 12 {{{ 10 13 --------------------------------------------------------------------------- 11 14 NotImplementedError Traceback (most recent call last) … … 39 42 40 43 NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968 44 }}}