-
-
Notifications
You must be signed in to change notification settings - Fork 213
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 (when using python setup.py install) #536
Comments
the fix is iff --git a/ipbes-ndr/setup.py b/ipbes-ndr/setup.py
index c506bf7..2bc8d36 100644
--- a/ipbes-ndr/setup.py
+++ b/ipbes-ndr/setup.py
@@ -15,7 +15,10 @@ setup(
use_scm_version={
'version_scheme': 'post-release',
- 'local_scheme': 'node-and-date'},
+ 'local_scheme': 'node-and-date',
+ "relative_to": __file__,
+ "root": "..",
+ },
setup_requires=['setuptools_scm', 'cython', 'numpy'],
include_package_data=True,
ext_modules=cythonize( |
a better error would be helpful tho |
Thanks!!
However, I got another error:
Perhaps, I just need to update the needed "Microsoft C++ Build Tools"? I will update it now. Thanks again! |
the new error is build tool related, i'm closing this as the setuptools_scm part seems to be resolved. Happy Programming! |
Many thanks!!! |
Hi there, I’m trying to install setup.py (from the website: https://github.com/richpsharp/ipbes-analysis/tree/1.1.0/ipbes-ndr) in the python virtual environment 3.7 (named “py37”).
I typed in:
However, I got the error:
The contents of setup.py are:
I'm not sure how to fix this error...Any help would be appreciated. Thanks!!
Yuqi
The text was updated successfully, but these errors were encountered: