stefan-ainetter / grasp_det_seg_cnn

Code for ICRA21 paper "End-to-end Trainable Deep Neural Network for Robotic Grasp Detection and Semantic Segmentation from RGB".
BSD 3-Clause "New" or "Revised" License
133 stars 17 forks source link

error when run setup.py #12

Open revquiet opened 2 years ago

revquiet commented 2 years ago

when I run setup.py, I met this error as follow: (pytorch) robot@robot1503:/home/coding/Vscode/program/grasp_det_seg_cnn-main$ python setup.py install /home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. SetuptoolsDeprecationWarning, Traceback (most recent call last): File "setup.py", line 77, in include_package_data=True, File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(**attrs) File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 109, in setup _setup_distribution = dist = klass(attrs) File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/dist.py", line 481, in init for k, v in attrs.items() File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 293, in init self.finalize_options() File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/dist.py", line 901, in finalize_options ep(self) File "/home/robot/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/dist.py", line 922, in _finalize_setup_keywords ep.load()(self, ep.name, value) File "/home/coding/Vscode/program/grasp_det_seg_cnn-main/.eggs/setuptools_scm-6.4.2-py3.7.egg/setuptools_scm/integration.py", line 75, in version_keyword _assign_version(dist, config) File "/home/coding/Vscode/program/grasp_det_seg_cnn-main/.eggs/setuptools_scm-6.4.2-py3.7.egg/setuptools_scm/integration.py", line 51, in _assign_version _version_missing(config) File "/home/coding/Vscode/program/grasp_det_seg_cnn-main/.eggs/setuptools_scm-6.4.2-py3.7.egg/setuptools_scm/init.py", line 107, in _version_missing f"setuptools-scm was unable to detect version for {config.absolute_root}.\n\n" LookupError: setuptools-scm was unable to detect version for /home/coding/Vscode/program/grasp_det_seg_cnn-main.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

houph4 commented 2 years ago

Hello,I made the same mistake. Have you solved it? Do you need to change the version of setuptools_scm?

scq6688 commented 2 years ago

您好,请问train_det_seg_OCID.py您跑通了吗?我感觉数据集好像有点问题。出现这种错误。[图片]

xiaofeiso commented 1 year ago

Hello,I made the same mistake. Have you solved it? Do you need to change the version of setuptools_scm?

Mayby you can try ubuntu, not Windows. But I have another problems.

t-272 commented 2 months ago

have you solved it?