Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when run setup.py #12

Open
revquiet opened this issue May 25, 2022 · 4 comments
Open

error when run setup.py #12

revquiet opened this issue May 25, 2022 · 4 comments

Comments

@revquiet
Copy link

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
Copy link

houph4 commented Jun 19, 2022

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

@scq6688
Copy link

scq6688 commented Jul 30, 2022

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

@xiaofeiso
Copy link

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
Copy link

t-272 commented Jul 16, 2024

have you solved it?

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

No branches or pull requests

5 participants