The forum

Python errors after upgrade from Xubuntu 20.04 to 22.04

Author Replies
evild4ve Sunday 23 October 2022 at 12:07
evild4ve

Following the upgrade, playonlinux now gives these errors:-

=============

$ playonlinux
Looking for python3... 3.10.6 - Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and wxCore used 3.0 (wchar_t,compiler with C++ ABI 1016,wx containers,compatible with 2.8).
/usr/share/playonlinux/bash/find_python: line 55: 37840 Aborted                 (core dumped) "$POL_PYTHON" "$POLDIR/python/check_python.py"
failed tests
Looking for python...
Looking for python2.7... 2.7.18 - Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and wxCore used 3.0 (wchar_t,compiler with C++ ABI 1016,wx containers,compatible with 2.8).
/usr/share/playonlinux/bash/find_python: line 55: 37853 Aborted                 (core dumped) "$POL_PYTHON" "$POLDIR/python/check_python.py"
failed tests
Looking for python2.6...
Looking for python2... 2.7.18 - Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and wxCore used 3.0 (wchar_t,compiler with C++ ABI 1016,wx containers,compatible with 2.8).
/usr/share/playonlinux/bash/find_python: line 55: 37865 Aborted                 (core dumped) "$POL_PYTHON" "$POLDIR/python/check_python.py"
failed tests
Please install python before trying to run this program

=============

but python is installed

$ python3 -V
Python 3.10.6

==

(This is similar to https://www.playonlinux.com/en/topic-13725.html but the solutions posted there are specific repositories that were current in 2017)

I expect that I need to get the library build versions just to match for 3.10.6, and then the other Python versions won't matter if POL can find that.

The wxwidgets tool mentioned in the other post it seems is not some simple apt-gettable package, it must be compiled from tarball. I believe I have done this for v.3.2.1 of wxwidgets without it solving the problem. And I wonder if the previous posters in 2017 were relying on it auto-uninstalling things in the process of its installation - if so it might be cleaner to list what things must be uninstalled and not create a whole other problem of wxwidgets.

Edited by evild4ve

evild4ve Sunday 23 October 2022 at 12:38
evild4ve

sorry I've already solved this for myself but will post the solution in case anyone else has the same problem in future:-

 

Although the error from PlayonLinux doesn't mention it, this is really an error with wxwidgets, which I had previously compiled from a tarball. My vague understanding is that software compiled from a tarball is tailored to the specific local PC, and so it makes sense to me that changing from 20.04 to 22.04 would mean this wxwidgets might need to be uninstalled and recompiled.

To uninstall the old wxwidgets, I had to go back into the "source" folder - i.e. the folder where I had unpacked its tarball several years ago - and run:-

$ sudo make uninstall

(other guides say run make uninstall but ubuntu I think does not use this "run" )

After this step, PlayonLinux began loading as normal again. But perhaps I will still want wxwidgets for something so I next downloaded the new tarball for wxwidgets version 3.2.1 from

https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/

and installed it using

$ sudo ./configure && make install

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com