JasonKessler/scattertext

Error while trying to install scattertext in Google Colab via pip/pip3

tesnikio opened this issue · 3 comments

Steps to Reproduce

  1. Go to Google Colab
  2. Run !pip install scattertext or !pip3 install scattertext
  3. Cell crashes with an error
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
[<ipython-input-36-f649d071857d>](https://w1rfudd5i4-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230301-060143-RC00_513205775#) in <module>
----> 1 get_ipython().system('pip3 install scattertext')

2 frames
[/usr/local/lib/python3.8/dist-packages/google/colab/_system_commands.py](https://w1rfudd5i4-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230301-060143-RC00_513205775#) in _run_command(cmd, clear_streamed_output)
    161   locale_encoding = locale.getpreferredencoding()
    162   if locale_encoding != _ENCODING:
--> 163     raise NotImplementedError(
    164         'A UTF-8 locale is required. Got {}'.format(locale_encoding))
    165 

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

Expected behavior

Valid installation of scattertext library.

Environment

  • Scattertext version: 0.0.2.4.4
  • OS: Linux (Google Colab)
  • How you installed Scattertext: pip/pip3

It worked when I tried it on Colab. Could you try installing it on a fresh notebook and see if it works?

It works every other time, I don't know, maybe it's something on Google side.

Closing. Cannot replicate