Skip to content

Python 3.10: ModuleNotFoundError: No module named 'distutils.command.bdist_wininst' #2558

Closed
@hroncok

Description

@hroncok

Hello. With Python 3.10.0a5+ we have this problem when running setuptools tests in Fedora:

==================================== ERRORS ====================================
_____________ ERROR collecting setuptools/command/bdist_wininst.py _____________
setuptools/command/bdist_wininst.py:1: in <module>
    import distutils.command.bdist_wininst as orig
E   ModuleNotFoundError: No module named 'distutils.command.bdist_wininst'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 2 skipped, 1 error in 1.41s ==========================

The bdist_wininst command deprecated in Python 3.8 has been removed. The bdist_wheel command is now recommended to distribute binary packages on Windows. (Contributed by @vstinner in bpo-42802.)

https://docs.python.org/3.10/whatsnew/3.10.html#distutils

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ImplementationIssues that are ready to be implemented.Needs InvestigationIssues which are likely in scope but need investigation to figure out the causebughelp wanted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions