Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install failing on Windows #43

Open
DeflateAwning opened this issue Aug 3, 2023 · 1 comment
Open

pip install failing on Windows #43

DeflateAwning opened this issue Aug 3, 2023 · 1 comment

Comments

@DeflateAwning
Copy link

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
Copy link

nnzv commented Aug 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants