Skip to content

fix: install package requirements - #10

Open
arthurdjn wants to merge 1 commit into
JIA-Lab-research:masterfrom
arthurdjn:fix/install-python-package
Open

fix: install package requirements#10
arthurdjn wants to merge 1 commit into
JIA-Lab-research:masterfrom
arthurdjn:fix/install-python-package

Conversation

@arthurdjn

@arthurdjn arthurdjn commented Aug 24, 2026

Copy link
Copy Markdown

Cannot import the python API after installing from pip:

pip install git+https://github.com/JIA-Lab-research/SparseTransformer

CUDA / C++ extension installed correctly:

python -c "import sptr_cuda; print('extension ok')"
  extension ok

But importing the pyhon API raises:

python -c "import sptr"
  ModuleNotFoundError: No module named 'sptr'

This fix registers the sptr in the setup so that it is installed when doing the above command.
Also added timm dependency which was missing.

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

Successfully merging this pull request may close these issues.

1 participant