-
Notifications
You must be signed in to change notification settings - Fork 47
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
ModuleNotFoundError: No module named 'setuptools.command.test' #835
Comments
Thanks for the report. Nothing we can do on our end since it's an issue with any dependency that uses |
I see, but perhaps there might be (or maybe there ought to be) a way to fix the setuptools version, so one can pin the build environment? |
This would depend on how |
@Svalorzen Actually, can you share your build log on how you got that error? The other case I've encountered was on Footnotes |
Hope this helps! The first few messages might be intertwined with the successful installation of other packages; I'm not sure. I admit that I'm not a huge expert on how to config Python projects; if this is something I can configure in the project that tries to install my scikit dependency do let me know; as I said, in my CI I tried directly installing only setuptools 71 but the error did not change.. |
I think you've obstructed the crucial part that would tell us which dependency is affected. For example in the following:
I've found the culprit to be |
Ah I see what you mean. The error might be triggered by any dependency, and not simply the scikit-build-core one. I was assuming that because the error mentioned How did you figure out that it was |
Basically each dependency was being handled in order, and I've noticed that it was trying to resolve |
It cannot be triggered by scikit-build-core, because we don't use setuptools. Ninja still uses scikit-build classic, there hasn't been a release since we moved it to scikit-build-core. Also pybind11 uses setuptools still, but that's a pure wheel, and it doesn't use the test command. Oh, your only dep is numpy? That does't use setuptools either. Very strange! This is happening on line 9 of a setup.py somewhere, so I'm guessing it's not either of those, though, as you'd see Though setuptools 72 has been yanked so unless you set a PIP_CONSTRAINTS to force it, it will just work for now. FYI, in the future, setting PIP_CONSTRAINTS does affect the isolated environment, so it can be used for workarounds. |
I have a PyBind-based project which I build using scikit-build-core in order to use the resulting wrappers from Python. Today, building the wheel for my project fails with the error
As far as I've been able to understand, this is due to a breaking change in
setuptools
version 72; here is the bug report for it.I'm not sure whether I could configure my project in a way that would bypass this issue, and more generally, that would pin dependencies in such a way that I don't risk having such problems again. I have tried having my venv install
setuptools==71.1.0
but the issue persisted (something that is mentioned in the linked issue as well).In case it helps, here is my
pyproject.toml
:The text was updated successfully, but these errors were encountered: