JasonKessler / scattertext

Beautiful visualizations of how language differs among document types.
Apache License 2.0
2.23k stars 287 forks source link

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

Closed teslyuk closed 1 year ago

teslyuk commented 1 year ago

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

JasonKessler commented 1 year ago

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

teslyuk commented 1 year ago

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

JasonKessler commented 1 year ago

Closing. Cannot replicate