Trouble installing python package for LED matrix module

I’m trying to install the input module package for python and whenever i run the command it returns this error
C:\Users\pierr>py -m pip install framework16-inputmodule
Collecting framework16-inputmodule
Using cached framework16_inputmodule-0.1.1-py3-none-any.whl.metadata (5.5 kB)
Collecting getkey (from framework16-inputmodule)
Using cached getkey-0.6.5.tar.gz (13 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
C:\Users\pierr\AppData\Local\Temp\pip-install-qqwogvvq\getkey_1bd68144a7f3419abe7e26c5d6977088\setup.py:5: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

          ********************************************************************************
          Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
          ********************************************************************************

  !!
    from setuptools.command.test import test as TestCommand
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
      exec(compile('''
      ~~~~^^^^^^^^^^^^
      # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ...<31 lines>...
      exec(compile(setup_py_code, filename, "exec"))
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ''' % ('C:\\Users\\pierr\\AppData\\Local\\Temp\\pip-install-qqwogvvq\\getkey_1bd68144a7f3419abe7e26c5d6977088\\setup.py',), "<pip-setuptools-caller>", "exec"))
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\pierr\AppData\Local\Temp\pip-install-qqwogvvq\getkey_1bd68144a7f3419abe7e26c5d6977088\setup.py", line 37, in <module>
      long_description=read_description(),
                       ~~~~~~~~~~~~~~~~^^
    File "C:\Users\pierr\AppData\Local\Temp\pip-install-qqwogvvq\getkey_1bd68144a7f3419abe7e26c5d6977088\setup.py", line 11, in read_description
      return fd.read()
             ~~~~~~~^^
    File "C:\Users\pierr\AppData\Local\Programs\Python\Python313\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 0x81 in position 876: 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.

the SetuptoolsDeprecationWarning doesn’t seem to be the problem (it is a warning, not an error)

your real problem seems to be the UnicodeDecodeError, which seems to have occurred while installing the getkey module. Maybe you could try installing a different version of getkey manually before installing framework16_inputmodule (the pyproject.toml for framework16_inputmodule doesn’t specify what version of getkey is required)?

EDIT: apparently this is a bug with getkey that affects all versions. You could potentially modify the pyproject.toml to specify get-key instead, which is a fork of getkey that supposedly fixes this bug (and while you are at it, you could try replacing PySimpleGUI with FreeSimpleGUI, although this change would require modification of the imports in the python code).

EDIT 2: i patched the source dist of version 0.1.1 of framework16_inputmodule (latest as of writing) with the changes. you can get the patched version here and you should be able to install it with pip by cding to the directory you downloaded the patched version to and then running pip install filename.tar.gz. please be aware that as i dont actually have the led matrix module and use linux, i havent been able to test this myself, but it should work.