z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.77k stars 334 forks source link

Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. #81

Closed blockitigo closed 10 months ago

blockitigo commented 1 year ago

when I am trying to run bash script/install.sh ,I got this error.what should I do to fix this?

Collecting wsgiref>=0.1.2 (from zip) Using cached https://mirrors.aliyun.com/pypi/packages/41/9e/309259ce8dff8c596e8c26df86dbc4e848b9249fd36797fd60be456f03fc/wsgiref-0.1.2.zip (37 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [9 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-eb2k702v/wsgiref_2b6809b82c154db6ad9567aed17eae33/setup.py", line 5, in import ez_setup File "/tmp/pip-install-eb2k702v/wsgiref_2b6809b82c154db6ad9567aed17eae33/ez_setup/init.py", line 170 print "Setuptools version",version,"or greater has been installed." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")? [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. 正克隆到 'Pytorch-Correlation-extension'... remote: Enumerating objects: 198, done. remote: Counting objects: 100% (60/60), done.

bug

I have install the requirements that SAM and DeAOT need. 图片 图片

renyiyu commented 1 year ago

I ran into the same problem.

blockitigo commented 1 year ago

Maybe you could ignore this error, which will not interfere with running