Skip to content

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 117 #3

@mercurial-moon

Description

@mercurial-moon

Hi, I'm getting a build error on Win 11...

Collecting pygments~=2.6.1
  Downloading Pygments-2.6.1-py3-none-any.whl (914 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 914.4/914.4 kB 11.6 MB/s eta 0:00:00
Collecting pygments-csv-lexer~=0.1
  Downloading pygments-csv-lexer-0.1.3.tar.gz (7.4 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [13 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\Mercurial\AppData\Local\Temp\pip-install-aydqskx9\pygments-csv-lexer_c333ccdaebc5477db6591e7b4b2addb3\setup.py", line 93, in <module>
          LONG_DESCRIPTION = project_content('README.md')
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Mercurial\AppData\Local\Temp\pip-install-aydqskx9\pygments-csv-lexer_c333ccdaebc5477db6591e7b4b2addb3\setup.py", line 77, in project_content
          out += handle.read()
                 ^^^^^^^^^^^^^
        File "C:\Users\Mercurial\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 0x9d in position 117: 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.

Not sure if its related to pygments-csv-lexer but the error originated while building it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions