materialsproject / fireworks

The Fireworks Workflow Management Repo.
https://materialsproject.github.io/fireworks
Other
361 stars 185 forks source link

fix encoding bugs in setup.py #508

Closed alphagw closed 7 months ago

alphagw commented 1 year ago

fix encoding bugs in setup.py

In Windows 10, a bug occurs when installing software via pip install. The reason is that the encoding method was not specified when reading the Readme file in the setup. Therefore, this modification was made.

Info

python verision: 3.10 numpy version: 1.25.2

bugs

Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "<string>", line 15, in <module>
      UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 815: illegal multibyte sequence
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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