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

Python 3.12 distutils package has been removed #2519

Closed
da-dada opened this issue Jan 23, 2024 · 9 comments · Fixed by #2520
Closed

Python 3.12 distutils package has been removed #2519

da-dada opened this issue Jan 23, 2024 · 9 comments · Fixed by #2520

Comments

@da-dada
Copy link

da-dada commented Jan 23, 2024

Operating system:
wxPython version 3.12:
the demo doesn't run:

Main.py of wxPython-demo-4.2.1\demo line 59 from distutils.version import LooseVersion:

Code Example (click to expand)
# Put code sample here
@DietmarSchwertberger
Copy link
Contributor

A real stack backtrace would have been nicer to read, 'demo' does not have a line 59.
Or, you could have submitted a PR yourself...

Anyway:

Actually, distutils is not yet gone, it's now part of setuptools before it will eventually die.
The build tools for wxPython still seem to have many dependencies on distutils, which needs to be changed.
Due to this dependency, anyone who is building wxPython has setuptools/distutils installed and does not see this bug...

@da-dada
Copy link
Author

da-dada commented Jan 24, 2024

in wxPython-demo-4.2.1\demo there is module Main.py which gets called at demo and here at line 59 happens to be from distutils.version import LooseVersion which dumps (your setuptools comment is true but the import machinery doesn't get it)

@da-dada da-dada closed this as completed Jan 24, 2024
@Metallicow
Copy link
Contributor

umm yea demo no line 59 or 42 either.... Thread extinguished.

@egoZentric
Copy link

Anyway:

Actually, distutils is not yet gone, it's now part of setuptools before it will eventually die.....

Actually it has been long depriciated and i finaly gone with version 3.12 see https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

So all of us with new installs fail here and so will all futer uses

Traceback (most recent call last):
File "C:\Users*\wxPython-demo-4.2.1\demo\demo.py", line 3, in
import Main
File "C:\Users*
\wxPython-demo-4.2.1\demo\Main.py", line 59, in
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

@egoZentric
Copy link

SOLVED.

#2520

7e2c7d6

@Metallicow
Copy link
Contributor

Metallicow commented Feb 5, 2024 via email

@da-dada
Copy link
Author

da-dada commented Feb 5, 2024

I like sipping crafters..

@Metallicow
Copy link
Contributor

Metallicow commented Feb 5, 2024 via email

@RobinD42
Copy link
Member

RobinD42 commented Feb 5, 2024

This issue has been mentioned on Discuss wxPython. There might be relevant details there:

https://discuss.wxpython.org/t/demo-doesnt-start-can-treectrl-do-this/36806/2

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

Successfully merging a pull request may close this issue.

5 participants