Skip to content

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 586: character maps to <undefined> #8865

@charles-cooper

Description

@charles-cooper

running into an issue with pyinstaller on windows when a data file has an emoji in it

https://github.com/vyperlang/vyper/actions/runs/11684959271/job/32537318181?pr=4342#step:5:44

copying the traceback,

[23 lines of output]
  Traceback (most recent call last):
    File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-k54l0862\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-k54l0862\overlay\Lib\site-packages\setuptools\build_meta.py", line 303, in _get_build_requires
      self.run_setup()
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-k54l0862\overlay\Lib\site-packages\setuptools\build_meta.py", line 5[21](https://github.com/vyperlang/vyper/actions/runs/11684959271/job/32537318181?pr=4342#step:5:22), in run_setup
      super().run_setup(setup_script=setup_script)
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-k54l0862\overlay\Lib\site-packages\setuptools\build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 40, in <module>
    File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\encodings\cp1252.py", line [23](https://github.com/vyperlang/vyper/actions/runs/11684959271/job/32537318181?pr=4342#step:5:24), in decode
      return codecs.charmap_decode(input,self.errors,decoding_table)[0]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 586: character maps to <undefined>
  [end of output]

the offending line seems to be a change to the readme which adds this emoji 🐍 (U+1F40D)

commit to check out: vyperlang/vyper@abb5c29

pyinstaller version: 6.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions