lemnos / tt

A terminal based typing test.
MIT License
737 stars 49 forks source link

pip install failing on Windows #43

Open DeflateAwning opened 1 year ago

DeflateAwning commented 1 year ago

Python version 3.9.13. Windows 10 and 11,

When running pip install tt, I get the following error:

# more above

      tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:225:13: Cannot assign type 'double' to 'int'

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                  tmp = abs(coef[k])
                  if tmp > abs_max:
                      abs_max = tmp
                      j = k
              max_value = coef[j]
              i = j/N
                   ^
      ------------------------------------------------------------

      tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:356:13: Cannot assign type 'double' to 'int'

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                  tmp = abs(coef[k])
                  if tmp > abs_max:
                      abs_max = tmp
                      j = k
              max_value = coef[j]
              i = j/N
                   ^
      ------------------------------------------------------------

      tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:487:13: Cannot assign type 'double' to 'int'

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                  tmp = abs(coef[k])
                  if tmp > abs_max:
                      abs_max = tmp
                      j = k
              max_value = coef[j]
              i = j/N
                   ^
      ------------------------------------------------------------

      tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:618:13: Cannot assign type 'double' to 'int'
      error: 4 errors while compiling 'tt\\cross\\rectcross\\rect_maxvol\\cython_boost\\maxvol.pyx' with Cython
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tt
  Running setup.py clean for tt
Failed to build tt
ERROR: Could not build wheels for tt, which is required to install pyproject.toml-based projects
nnzv commented 1 year ago

This project uses Go, not Python. Thus, Python tools won't install it. To set it up, follow the steps in README.md. You can clone and build it or get the Windows version from releases.

Please be aware: go install doesn't work due to a different project layout.

% go install github.com/lemnos/tt@latest
go: downloading github.com/lemnos/tt v0.4.2
go: github.com/lemnos/tt@latest: module github.com/lemnos/tt@latest found (v0.4.2), but does > not contain package github.com/lemnos/tt