signatory icon indicating copy to clipboard operation
signatory copied to clipboard

Unable to install signatory

Open ArianKhorasani opened this issue 11 months ago • 0 comments

Dear @patrick-kidger et al -

I'm unable to install signatory package. I have my virtual environment with Python version = 3.10.11, and I am launching pip install signatory but getting an error that torch must be installed on my virtual environment. I have already installed torch == 1.11.0, but still not able to install signatory. Here is the pip list FYI:


Package            Version
------------------ -----------
absl-py            2.1.0
aiohttp            3.9.3
aiosignal          1.3.1
appdirs            1.4.4
async-timeout      4.0.3
attrs              23.2.0
certifi            2024.2.2
charset-normalizer 2.0.12
click              8.1.7
contextlib2        21.6.0
cycler             0.12.1
datasets           2.18.0
dill               0.3.8
docker-pycreds     0.4.0
evaluate           0.4.1
fbm                0.3.0
filelock           3.13.1
fonttools          4.50.0
frozenlist         1.4.1
fsspec             2024.2.0
gitdb              4.0.11
GitPython          3.1.42
huggingface-hub    0.21.4
idna               3.6
joblib             1.3.2
kiwisolver         1.4.5
lib                4.0.0
matplotlib         3.5.2
ml_collections     0.1.1
multidict          6.0.5
multiprocess       0.70.16
numpy              1.26.4
packaging          24.0
pandas             1.3.5
pillow             10.2.0
pip                24.0
protobuf           4.25.3
psutil             5.9.8
pyarrow            15.0.2
pyarrow-hotfix     0.6
pyparsing          3.1.2
python-dateutil    2.9.0.post0
pytz               2024.1
PyYAML             6.0
requests           2.27.1
responses          0.18.0
scikit-learn       1.4.1.post1
scipy              1.12.0
seaborn            0.13.2
sentry-sdk         1.43.0
setproctitle       1.3.3
setuptools         65.5.0
six                1.16.0
smmap              5.0.1
threadpoolctl      3.4.0
torch              1.11.0
tqdm               4.64.0
typing_extensions  4.10.0
urllib3            1.26.18
wandb              0.16.4
wfdb               3.4.1
xxhash             3.4.1
yarl               1.9.4

Also, here is the error that I get after launching pip install signatory:

File "/tmp/pip-build-env-gq9fys4v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-gq9fys4v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-gq9fys4v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-gq9fys4v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 23, in <module>
      ImportError: PyTorch is not installed, and must be installed prior to installing Signatory.

Please note that I have tried launching pip install signatory==1.2.6.1.9. --no-cache-dir --force-reinstall to be compatible with the version of torch, but the error still exists. Any feedback or comment would be highly appreciated! Thank you!

ArianKhorasani avatar Mar 23 '24 20:03 ArianKhorasani