Skip to content

meson-python-native-file.ini' failed to parse as unicode: 'utf-8' codec can't decode byte 0xdd in position 33: invalid continuation byte #13523

@Notenlish

Description

@Notenlish

Describe the bug
I'm trying to compile Pygame-ce which uses meson to build the wheels. I tried using both my own branch and the main pygame-ce branch to compile and both of them provide the same error. I don't know whats wrong with this file, or even how I could read the contents of this file since the meson folder automatically gets deleted the moment an error happens during the build process.
Here's the pygame-ce repo and the steps to compile.

I'd appreciate any help, as I have no idea what I should do.

Full error log:

Processing c:\users\ihsan\npmbugsolve\pygame-ce2
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      + meson setup C:\Users\ihsan\npmbugsolve\pygame-ce2 C:\Users\ihsan\npmbugsolve\pygame-ce2\.mesonpy-zpumsixa -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\ihsan\npmbugsolve\pygame-ce2\.mesonpy-zpumsixa\meson-python-native-file.ini

      ERROR: Malformed machine file 'C:\\Users\\ihsan\\npmbugsolve\\pygame-ce2\\.mesonpy-zpumsixa\\meson-python-native-file.ini' failed to parse as unicode: 'utf-8' codec can't decode byte 0xdd in position 33: invalid continuation byte
      [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.

To Reproduce
Clone the pygame-ce repo, install the requirements and run pip install .
meson.build.txt

Expected behavior
Pygame-ce compiling without any problems.

system parameters
Plain native build(Win 11, 64 bit, Intel Processor)
Python 3.11.9
Meson version 1.5.1* what meson --version
nşnja version 1.11.1

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