Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation on Windows #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisburr
Copy link

In conda-forge/staged-recipes#15101 the installation on Windows was found to fail with this traceback:

    Running command python setup.py egg_info
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-req-build-ekbg1mnz\setup.py", line 6, in <module>
        long_description = fh.read()
      File "C:\Miniconda\conda-bld\py-readability-metrics_1622551267782\_h_env\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 7942: character maps to <undefined>
WARNING: Discarding file:///C:/Miniconda/conda-bld/py-readability-metrics_1622551267782/work. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This PR fixes the issue by ensuring UTF-8 is used instead of relying on the system default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant