facebookresearch / SLIP

Code release for SLIP Self-supervision meets Language-Image Pre-training
MIT License
747 stars 69 forks source link

Error while installing SLIP #27

Open psads-git opened 1 year ago

psads-git commented 1 year ago

I am using Fedora 37 Linux and getting the following error:

Collecting slip
  Using cached SLIP-20191113.tar.gz (17.5 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      /tmp/pip-install-_az8uh86/slip_dee631c0e5734df79ab8107394ad9e3a/SLIP/SLIP.py:807: SyntaxWarning: "is not" with a literal. Did you mean "!="?
        if not figpath is '':
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-_az8uh86/slip_dee631c0e5734df79ab8107394ad9e3a/setup.py", line 6, in <module>
          import SLIP
        File "/tmp/pip-install-_az8uh86/slip_dee631c0e5734df79ab8107394ad9e3a/SLIP/__init__.py", line 7, in <module>
          from .SLIP import Image, imread
        File "/tmp/pip-install-_az8uh86/slip_dee631c0e5734df79ab8107394ad9e3a/SLIP/SLIP.py", line 75, in <module>
          from NeuroTools.parameters import ParameterSet
      ModuleNotFoundError: No module named 'NeuroTools'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.