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

Install with pip fails #49

Open
devrimcavusoglu opened this issue Mar 28, 2022 · 0 comments · May be fixed by #50
Open

Install with pip fails #49

devrimcavusoglu opened this issue Mar 28, 2022 · 0 comments · May be fixed by #50

Comments

@devrimcavusoglu
Copy link

devrimcavusoglu commented Mar 28, 2022

When I'm try to install the repo as a package with pip, there is no problem in Linux, but in Windows Python 3.9 it fails due to fail in README.md. Basically, in Windows python tries to open file with cp1254 encoding by default, and it results in a failed installation giving the following error message

(base) C:\Users\devri>pip install git+https://github.com/google-research/bleurt.git --force-reinstall --no-cache-dir     
Collecting git+https://github.com/google-research/bleurt.git
  Cloning https://github.com/google-research/bleurt.git to c:\users\devri\appdata\local\temp\pip-req-build-l293_p23                    
  Running command git clone -q https://github.com/google-research/bleurt.git 'C:\Users\devri\AppData\Local\Temp\pip-req-build-l293_p23'
  Resolved https://github.com/google-research/bleurt.git to commit c6f2375c7c178e1480840cf27cb9e2af851394f9
    ERROR: Command errored out with exit status 1:
     command: 'C:\tools\Anaconda3\envs\jury\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\devri\\AppData\\Local\\Temp\\pip-req-build-l293_p23\\setup.py'"'"'; __file__='"'"'C:\\Users\\devri\\AppData\\Local\\Temp\\pip-req-build-l293_p23\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.
exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\devri\AppData\Local\Temp\pip-pip-egg-info-s1jaf9gz'
         cwd: C:\Users\devri\AppData\Local\Temp\pip-req-build-l293_p23\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\devri\AppData\Local\Temp\pip-req-build-l293_p23\setup.py", line 23, in <module>
        long_description = fh.read()
      File "C:\tools\Anaconda3\envs\base\lib\encodings\cp1254.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8e in position 2560: character maps to <undefined>
@devrimcavusoglu devrimcavusoglu linked a pull request Mar 28, 2022 that will close this issue
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 a pull request may close this issue.

1 participant