Skip to content

Replace getch with a cross-platform alternative. #5

@Himyag-Barthel

Description

@Himyag-Barthel

When I'm installing one of your other command-line applications, whenever installing Badges, it will return:

error: subprocess-exited-with-error

  × Building wheel for getch (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      getchmodule.c
      getchmodule.c(2): fatal error C1083: Cannot open include file: 'termios.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\VC\\Tools\\MSVC\\14.50.35717\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for getch
Successfully built pex hatasm badges colorscript
Failed to build getch
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> getch .

I believe that replacing Getch with a multi-platform alternative may allow your application to run on Windows.

I know I could download badges directly and replace it with py-getch, but I believe that others who want to use this on windows would like to not have to edit somebody else's code.

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