sokrypton / sokrypton/ColabFold

NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968

Open
#237 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
2.9k
Forks
747
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

I am trying to predict structures and include Amber refinement for more accurate side chain positioning.

Current Behavior

When running Alphafold2_advanced.ipynb with Amber enabled (step 6) downloading results fails.

Steps to Reproduce (for bugs)

Notebook run normally using standard setting, or altering any other setting (i.e., no problem downloading structures). I get this error whenever Amber is enabled from new or existing connections to Colab servers.

ColabFold Output (for bugs)


NotImplementedError Traceback (most recent call last)
in ()
51
52 # --- Download the predictions ---
---> 53 get_ipython().magic('shell zip -FSr {I["output_dir"]}.zip {I["output_dir"]}')
54 if IN_COLAB:
55 files.download(f'{I["output_dir"]}.zip')

3 frames
/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2158 magic_name, _, magic_arg_s = arg_s.partition(' ')
2159 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2160 return self.run_line_magic(magic_name, magic_arg_s)
2161
2162 #-------------------------------------------------------------------------

/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2079 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2080 with self.builtin_trap:
-> 2081 result = fn(*args,**kwargs)
2082 return result
2083

/usr/local/lib/python3.7/dist-packages/google/colab/_system_commands.py in _shell_line_magic(line)
68 exit code.
69 """
---> 70 result = _run_command(line, clear_streamed_output=False)
71 result.check_returncode()
72 return result

/usr/local/lib/python3.7/dist-packages/google/colab/_system_commands.py in _run_command(cmd, clear_streamed_output)
166 if locale_encoding != _ENCODING:
167 raise NotImplementedError(
--> 168 'A UTF-8 locale is required. Got {}'.format(locale_encoding))
169
170 parent_pty, child_pty = pty.openpty()

NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968

Your Environment

I am using AlphaFold2_advanced.ipynb on Google Colab website.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Alphafold2_advanced.ipynb and inspect step 6, especially the shell zip command used to package output. Reproduce with Amber enabled in Google Colab and compare the locale seen by that command with the reported ANSI_X3.4-1968 error. Done when downloading results works with Amber enabled, or the notebook documents a supported workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
bioinformatics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.