morph-labs/rift

Server cannot start in VSCode on Windows 11

auxon opened this issue · 0 comments

auxon commented

I'm getting this error in the Morph Server output log:

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.



   Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\richard.hein\.morph\env\Scripts\rift.exe\__main__.py", line 7, in <module>
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\rift\server\core.py", line 190, in entrypoint
    fire.Fire(main)
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\fire\core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\fire\core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\fire\core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\rift\server\core.py", line 183, in main
    metaserver = create_metaserver(host, port, version, debug)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\rift\server\core.py", line 166, in create_metaserver
    rift_splash()
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\rift\server\core.py", line 45, in rift_splash
    stream_string(_splash)
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\rift\server\core.py", line 41, in stream_string
    print(char, end="", flush=True)
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\colorama\ansitowin32.py", line 47, in write
    self.__convertor.write(text)
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\colorama\ansitowin32.py", line 177, in write
    self.write_and_convert(text)
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "C:\Users\richard.hein\.morph\env\Lib\site-packages\colorama\ansitowin32.py", line 210, in write_plain_text
    self.wrapped.write(text[start:end])
  File "C:\Python311\Lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u2588' in position 0: character maps to <undefined>