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

UnicodeDecodeError when installing from git #77

Open
SzymonOzog opened this issue Dec 27, 2022 · 0 comments
Open

UnicodeDecodeError when installing from git #77

SzymonOzog opened this issue Dec 27, 2022 · 0 comments

Comments

@SzymonOzog
Copy link

System: Windows 10
Python version: 3.10.9
Cmd reproduction:

G:\TestProject>python3 -m venv testenv

G:\TestProject>source testenv/bin/activate
'source' is not recognized as an internal or external command,
operable program or batch file.

G:\TestProject>/testenv/scripts/activate.bat
The system cannot find the path specified.

G:\TestProject>G:\TestProject\testenv\Scripts\activate.bat

(testenv) G:\TestProject>git clone https://github.com/unitaryai/detoxify
Cloning into 'detoxify'...
remote: Enumerating objects: 885, done.
remote: Counting objects: 100% (885/885), done.
remote: Compressing objects: 100% (390/390), done.
remote: Total 885 (delta 505), reused 834 (delta 482), pack-reused 0
Receiving objects: 100% (885/885), 52.01 MiB | 17.26 MiB/s, done.
Resolving deltas: 100% (505/505), done.

(testenv) G:\TestProject>pip install -e detoxify
Obtaining file:///G:/TestProject/detoxify
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "G:\TestProject\testenv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "G:\TestProject\testenv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "G:\TestProject\testenv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 132, in get_requires_for_build_editable
          return hook(config_settings)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-kx9fk13h\overlay\Lib\site-packages\setuptools\build_meta.py", line 447, in get_requires_for_build_editable
          return self.get_requires_for_build_wheel(config_settings)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-kx9fk13h\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-kx9fk13h\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-kx9fk13h\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-kx9fk13h\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 6, in <module>
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\encodings\cp1250.py", line 23, in decode
          return codecs.charmap_decode(input,self.errors,decoding_table)[0]
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 5960: character maps to <undefined>
      [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 editable 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.
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

No branches or pull requests

1 participant