-
Notifications
You must be signed in to change notification settings - Fork 3
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
LookupError: setuptools-scm was unable to detect version for '/home/class/software/mech2d'. #1
Comments
make sure that you have install the setuptools-scm by : pip install setuptools-scm |
@ji-0226 Since you downloaded the mech2d package as a zip file and not via Git, the mech2d-master.zip file lacks the necessary metadata for versioning. To resolve this issue, you have two options:
|
hi,
|
The bug indicates that there is invalid syntax in line 228 of plot.py. However, upon inspection, I found that the source file of plot.py only contains 225 lines. I suspect that plot.py was unintentionally altered. Try reinstalling, and if that doesn't resolve the issue, consider replacing the plot.py in the error path with the one from GitHub. |
Thank you,
|
@shahramyalameha
|
(base) [class@iZuf649cbnlfsswil2f8ygZ mech2d]$ python setup.py install
Traceback (most recent call last):
File "/home/class/software/mech2d/setup.py", line 25, in
setuptools.setup(
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/class/miniconda3/lib/python3.9/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools/dist.py", line 432, in init
_Distribution.init(self, {
File "/home/class/miniconda3/lib/python3.9/distutils/dist.py", line 292, in init
self.finalize_options()
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools/dist.py", line 708, in finalize_options
ep(self)
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools/dist.py", line 715, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools_scm/integration.py", line 65, in version_keyword
dist.metadata.version = _get_version(config)
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools_scm/init.py", line 177, in _get_version
parsed_version = _do_parse(config)
File "/home/class/miniconda3/lib/python3.9/site-packages/setuptools_scm/init.py", line 135, in _do_parse
raise LookupError(
LookupError: setuptools-scm was unable to detect version for '/home/class/software/mech2d'.
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
I'm having the above problem when installing according to your method (python version 3.9.5), do you know how to fix it?
The text was updated successfully, but these errors were encountered: