oskvr37 / tiddl

Tidal Downloader - download tracks with single Python package ✨
Apache License 2.0
17 stars 0 forks source link

Install from git - UnicodeDecodeError with README.md? #9

Closed bachig26 closed 1 month ago

bachig26 commented 1 month ago

I just tried to install/upgrade to latest commit to try the output filename commit and had this error preventing me from installing due to the UTF-8 issue showing in the Readme file, which I don't why?

i just defined environment variable $env:PYTHONUTF8=1 for this session. please have a look into this issue to avoid in future.

Error Log:

pip install -U git+https://github.com/oskvr37/tiddl.git
Collecting git+https://github.com/oskvr37/tiddl.git
  Cloning https://github.com/oskvr37/tiddl.git to c:\users\user\appdata\local\temp\pip-req-build-2o584em0
  Running command git clone --filter=blob:none --quiet https://github.com/oskvr37/tiddl.git 'C:\Users\USER\AppData\Local\Temp\pip-req-build-2o584em0'
  Resolved https://github.com/oskvr37/tiddl.git to commit f4e5f794c845c00f5a2afc25b201b2e8c70693a7
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\USER\AppData\Local\Temp\pip-req-build-2o584em0\setup.py", line 7, in <module>
          long_description=open('README.md').read(),
                           ^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 23, in decode
          return codecs.charmap_decode(input,self.errors,decoding_table)[0]
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 496: character maps to <undefined>
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.