-
Notifications
You must be signed in to change notification settings - Fork 35
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
Tests fail: ImportError: cannot import name '__version__' from 'scikit_build_core._version' #387
Comments
How did you install scikit-build-core? The os distribution appears to be $ cat /usr/ports/devel/py-scikit-build-core/work-py39/stage/usr/local/lib/python3.9/site-packages/scikit_build_core/_version.py My suspicion is that a version of setuptools_scm or a combination with the python version generates unexpected form of |
Ahh, that's an old version of setuptools_scm. I've hit that before. :/ Modern setuptools_scm create a |
PS, you really need to get a newer version of setuptools_scm eventually in FreeBSD. ;) |
Fix #387. We were importing this correctly in `__init__.py`, but missed this in a couple of other places. Removed from `.pyi` file to have mypy find this in the future. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
I've submitted the request to update the setuptools_scm port. |
What are the errors that remain? |
Now many tests fail with:
|
Are you sure the patch was applied correctly? For line 18, I see:
(One dot instead of two) |
Sorry, the previous errors were from incorrectly applied patch. Now I am using the latest revision, and it fails this way:
|
Okay, that's better. I assume that's because you aren't on a version or using a patch; you can set |
Version: 0.4.5
Python-3.9
FreeBSD 13.2
The text was updated successfully, but these errors were encountered: