-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
No module named 'distutils.msvccompiler'
in fresh environments
#58
Comments
Does this bug only happen for Windows environments? Does adding mamba install -c conda-forge "setuptools !=65.*" |
Failing for me on windows even while using
running python 3.10 |
So I'm on windows 10 and the following suggested by @maresb worked for me. Edited to add more details |
There is now also a more general thread to cover this. Setuptools Issue 3532 |
Thanks @jonititan and @maresb, working now building the fresh env using that command. fingers crossed on a patch soon looks like this bug is wreaking some havoc on a bunch of pkgs |
It looks like the breaking change in setuptools is now also being reverted so that should flow through in due course |
The new As far as I can tell, this can be triggered in the following two ways:
I intend to fix 2. by retroactively adding a We have the following dependencies of PyMC on Aesara:
Thus by fixing 2, the only broken version will be PyMC v4.1.4. This should be fixable by a repodata patch. Since repodata patches are annoying and time-consuming, the most practical solution is to extend the |
To be explicit, this should now be effectively fixed by the upstream release of setuptools v65.0.2. New environments should default to the latest setuptools v65.0.2. Old broken environments should be fixable via the command above. The proposed solution in my previous comment takes care of any remaining edge cases by actively preventing the solver from installing a broken version |
@random-walks, could you please open a new issue of type "Bug report" and fill in the template with the details of your environment so that we can have a closer look at what's going on? |
I'm waiting for conda-forge/conda-forge-repodata-patches-feedstock#307 to be merged before closing this. They seem to have a backlog of non-critical PRs. This should be fixed at some point, but I don't see it as urgent, so I'm going to be patient. |
This is a new problem that was already reported twice on discourse:
The underlying cause is further down the dependency stack, but it's highly likely that we'll need to make some patches in the feedstock until the actual bugfixes become available.
One of the main discussions appears to be:
ModuleNotFoundError: No module named 'distutils.msvccompiler'
in package build CI pyodide/pyodide#2971At the PyMC level, the problem can be reproduced by creating a new environment:
It looks like in the
pyodide
issue they've already identified the problem.The TODO for us remains to investigate which dependencies we have to pin to which versions.
The text was updated successfully, but these errors were encountered: