Skip to content
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 'distutils.msvccompiler' #125836

Closed
tr1ppyb0y opened this issue Oct 22, 2024 · 4 comments
Closed

ModuleNotFoundError: No module named 'distutils.msvccompiler' #125836

tr1ppyb0y opened this issue Oct 22, 2024 · 4 comments

Comments

@tr1ppyb0y
Copy link

tr1ppyb0y commented Oct 22, 2024

Bug report

Bug description:

It is regarding this error when installing, pip install pylzma

image

Same error occurs when I am running these commands in python shell, from distutils import msvccompiler or from distutils.msvccompiler import MSVCCompiler

Although, when I tried to import the MSVCCompiler in python shell with this command, from distutils._msvccompiler import MSVCCompiler it imported just fine. Please see the screenshot below.
image

I think it's just file naming issue, but please correct me if I am wrong.
image

Please help.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@tr1ppyb0y tr1ppyb0y added the type-bug An unexpected behavior, bug, or error label Oct 22, 2024
@skirpichev
Copy link
Member

Sorry, but you should report this instead to the pylzma project. The distutils package was removed from the stdlib in CPython 3.12.

@skirpichev skirpichev closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@Eclips4 Eclips4 removed the type-bug An unexpected behavior, bug, or error label Oct 22, 2024
@tr1ppyb0y
Copy link
Author

tr1ppyb0y commented Oct 22, 2024

Sorry, my bad.
Didn't know that. Thanks!!

I solved it, btw!

@SouravLinkuna
Copy link

@tr1ppyb0y can yo let me know how did you resolved this issue?

@tr1ppyb0y
Copy link
Author

@tr1ppyb0y can yo let me know how did you resolved this issue?

Please refer to this reply, I have explained in detail,
fancycode/pylzma#77 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants