[GH-ISSUE #1168] UnicodeDecodeError: 'cp932' codec can't decode byte 0x93 #685

Closed
opened 2026-02-28 00:00:51 +03:00 by kerem · 2 comments
Owner

Originally created by @glass-ships on GitHub (Nov 25, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1168

Describe the bug
Possibly Windows specific - trying to install latest commit results in:

  - Updating spotipy (2.24.0 db3fb9a -> 2.24.0 db3fb9a): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel

  Traceback (most recent call last):
    File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
      self.run_setup()
    File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
      super().run_setup(setup_script=setup_script)
    File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 4, in <module>
  UnicodeDecodeError: 'cp932' codec can't decode byte 0x93 in position 3199: illegal multibyte sequence

Your code
running poetry install on a project with pyproject.toml listing spotipy = { git = "https://github.com/spotipy-dev/spotipy.git" }

Expected behavior
Successful installation

Output
See above

Environment:

  • OS: Windows
  • Python version 3.12.7
  • spotipy version 2.24.0 db3fb9a
  • your IDE (if using any) VSCode
Originally created by @glass-ships on GitHub (Nov 25, 2024). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1168 **Describe the bug** Possibly Windows specific - trying to install latest commit results in: ``` - Updating spotipy (2.24.0 db3fb9a -> 2.24.0 db3fb9a): Failed ChefBuildError Backend subprocess exited when trying to invoke get_requires_for_build_wheel Traceback (most recent call last): File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\.libs\poetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires self.run_setup() File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\glass\AppData\Local\Temp\tmpd_98ypj1\.venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) File "<string>", line 4, in <module> UnicodeDecodeError: 'cp932' codec can't decode byte 0x93 in position 3199: illegal multibyte sequence ``` **Your code** running `poetry install` on a project with `pyproject.toml` listing `spotipy = { git = "https://github.com/spotipy-dev/spotipy.git" }` **Expected behavior** Successful installation **Output** See above **Environment:** - OS: Windows - Python version 3.12.7 - spotipy version 2.24.0 db3fb9a - your IDE (if using any) VSCode
kerem 2026-02-28 00:00:51 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dieser-niko commented on GitHub (Nov 25, 2024):

I can't really help you with that as I don't use poetry. Installing with pip install git+https://github.com/spotipy-dev/spotipy works fine, so it must be something related to poetry. Do you think it's possible to debug this code to find out what it's trying to execute?

<!-- gh-comment-id:2497632897 --> @dieser-niko commented on GitHub (Nov 25, 2024): I can't really help you with that as I don't use poetry. Installing with `pip install git+https://github.com/spotipy-dev/spotipy` works fine, so it must be something related to poetry. Do you think it's possible to debug this code to find out what it's trying to execute?
Author
Owner

@dieser-niko commented on GitHub (Jan 3, 2025):

Closing as there is no activity or reply from the author.

<!-- gh-comment-id:2569198883 --> @dieser-niko commented on GitHub (Jan 3, 2025): Closing as there is no activity or reply from the author.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#685
No description provided.