flaport / torch_sparse_solve

A sparse KLU solver for PyTorch.
https://pypi.org/project/torch-sparse-solve
GNU Lesser General Public License v2.1
58 stars 4 forks source link

Install issue on google collab #12

Closed tvercaut closed 2 years ago

tvercaut commented 2 years ago

Thanks for the very helpful post here. I wanted to try your library and just started with google colab. Unfortunately it fails to install there:

!apt-get install libsuitesparse-dev
!pip install torch_sparse_solve

leads to

Collecting torch_sparse_solve
  Downloading torch_sparse_solve-0.0.5.tar.gz (5.2 kB)
Building wheels for collected packages: torch-sparse-solve
  Building wheel for torch-sparse-solve (setup.py) ... error
  ERROR: Failed building wheel for torch-sparse-solve
  Running setup.py clean for torch-sparse-solve
Failed to build torch-sparse-solve
Installing collected packages: torch-sparse-solve
    Running setup.py install for torch-sparse-solve ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-18a9e695/torch-sparse-solve_4ae219b9ded1407587aaac79c4097416/setup.py'"'"'; __file__='"'"'/tmp/pip-install-18a9e695/torch-sparse-solve_4ae219b9ded1407587aaac79c4097416/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-02qc6g_t/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/torch-sparse-solve Check the logs for full command output.

---------------------------------------------------------------------------

Is there a simple workaround?

flaport commented 2 years ago

I did not try running this library on colab yet. I think this might be a general issue with Google Colab only supporting wheels in stead of tarballs?

At some point I should probably start building some wheels for the most common platforms. I just don't really have the bandwidth at the moment 😔

tvercaut commented 2 years ago

Thanks for the heads up. I'll close my issue as there is no current plan to support it.