wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.21k stars 509 forks source link

Python 3.12 distutils package has been removed #2519

Closed da-dada closed 3 months ago

da-dada commented 3 months ago

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) ```python # Put code sample here ```
DietmarSchwertberger commented 3 months ago

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 commented 3 months ago

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)

Metallicow commented 3 months ago

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

egoZentric commented 3 months ago

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 commented 3 months ago

SOLVED.

https://github.com/wxWidgets/Phoenix/pull/2520

https://github.com/wxWidgets/Phoenix/commit/7e2c7d69c9a71c77b3fb2e0f3d55ccbc7eab6742

Metallicow commented 3 months ago

Ok, good buddy, let's make it clear...

I was the one that spent GOD-KNOWS how many hours porting the old classic wxpython demo and numerous modules to work on wxPhoenix. ...having said that most of what you see is a (WIPz) throughout the years. Some stuff simply wasn't needed. Why, you ask...? Well simply because installing python and wxpython was good enough(might add pywin32 and pillow).

A philosophy of 'Project Phoenix's was to eliminate CRUFT beyond classic wxpython(was being built with swig instead of sip). Now that you have a extraordinary sized glass of brew, take a sip, it is almost as refreshing as getting a whole glass. Toast, cheers.

By the way, if you are interested in working on the framework, I have already started a community ideas based one, tho it well.... NEEDs work from more than a one man army... Get it. There used to be a wxUsers and wxDev groups on mailing lists, ... Now basically there is forums type on discuss.wxpython

I have gotten lots of praise for my 'BAIN' style working of the wxdemo framework, but it is a hacked up mess. ... And yes I have it hosted on GitHub if you want to hack some more on it.

Thanks.

On Sun, Feb 4, 2024, 7:24 PM Carsten Zen N @.***> wrote:

SOLVED.

2520 https://github.com/wxWidgets/Phoenix/pull/2520

7e2c7d6 https://github.com/wxWidgets/Phoenix/commit/7e2c7d69c9a71c77b3fb2e0f3d55ccbc7eab6742

— Reply to this email directly, view it on GitHub https://github.com/wxWidgets/Phoenix/issues/2519#issuecomment-1926053702, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDTXRHUOEJXJLCFS3RJHGDYSAYDJAVCNFSM6AAAAABCHJQEEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRWGA2TGNZQGI . You are receiving this because you commented.Message ID: @.***>

da-dada commented 3 months ago

I like sipping crafters..

Metallicow commented 3 months ago

Good response good buddy.

On Mon, Feb 5, 2024, 10:40 AM da-dada @.***> wrote:

I like sipping crafters..

— Reply to this email directly, view it on GitHub https://github.com/wxWidgets/Phoenix/issues/2519#issuecomment-1927419001, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDTXRDAXFSLFLSIZQLKQVTYSEDPBAVCNFSM6AAAAABCHJQEEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRXGQYTSMBQGE . You are receiving this because you commented.Message ID: @.***>

RobinD42 commented 3 months ago

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