spotipy-dev / spotipy

A light weight Python library for the Spotify Web API
http://spotipy.readthedocs.org
MIT License
5.04k stars 958 forks source link

UnicodeDecodeError: 'cp932' codec can't decode byte 0x93 #1168

Open glass-ships opened 5 days ago

glass-ships commented 5 days ago

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:

dieser-niko commented 4 days ago

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?