MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.36k stars 492 forks source link

build: read file using utf-8 explicitly #80

Closed nero19960329 closed 1 year ago

nero19960329 commented 1 year ago

fixing pip install -e . error at windows:

(voyager-venv) D:\workspace\Voyager [main ≡]> pip install -e .
Obtaining file:///D:/workspace/Voyager
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.      
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "D:\workspace\Voyager\setup.py", line 38, in <module>
          long_description=_read_file("README.md"),
        File "D:\workspace\Voyager\setup.py", line 16, in _read_file
          return fp.read()
      UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 2191: illegal multibyte sequence
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
xieleo5 commented 1 year ago

Hi, thanks for fixing this issue. Merged!