-
-
Notifications
You must be signed in to change notification settings - Fork 585
Open
Description
Summary
Trying to pin and install the release 3.0.0 of cloudscraper in a library project fails when installing from the Git tag on Windows. The build (PEP 517 via setuptools) crashes with a UnicodeDecodeError using the Windows cp1252 codec.
Also, version 3.0.0 is not currently available on PyPI, so installing from PyPI is not an option.
Environment
- OS: Windows (PowerShell 5.1)
- Python: 3.13 (virtualenv created by Poetry:
...-py3.13) - Package manager: Poetry (installed via pipx)
- Project type: Library, using
pyproject.toml
Steps to Reproduce
- In
pyproject.toml, set dependency to the 3.0.0 tag from Git:dependencies = [ "cloudscraper @ git+https://github.com/VeNoMouS/cloudscraper.git@3.0.0", ]
- Run:
poetry update cloudscraper
- Observe the build fail with a UnicodeDecodeError during the PEP 517 build step.
Expected behavior
cloudscraper 3.0.0 installs successfully when pinned by its Git tag on Windows.
Actual behavior
Installation fails during the PEP 517 build phase with a UnicodeDecodeError. Relevant excerpt:
Installing cloudscraper (3.0.0 9ea528a): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
...
File "...\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 18815: character maps to <undefined>
Additional context from the build backtrace shows the failure occurs in setuptools.build_meta during get_requires_for_build_wheel / run_setup.
What I tried
- Setting UTF-8 mode on Windows before running Poetry:
$env:PYTHONUTF8=1; poetry update cloudscraper
Requests
- Please publish
cloudscraper3.0.0 to PyPI (sdist and wheel), or - Update the build process so that installing from the Git tag works on Windows (ensure UTF-8 reads during packaging, declare necessary build requirements)
Metadata
Metadata
Assignees
Labels
No labels