Bugzilla – Bug 1212477
Can't install FreeCAD until python3-pyside2 is rebuilt for python311
Last modified: 2023-06-21 17:15:18 UTC
In order to get a clean update to snapshot 20230616, I had to delete FreeCAD. Now, when I try to reinstall it and select option 2, I get the following messages: > sudo zypper in FreeCAD Loading repository data... Reading installed packages... Resolving package dependencies... Problem: nothing provides 'libQt5Charts.so.5(Qt_5.15.9_PRIVATE_API)(64bit)' needed by the to be installed python3-pyside2-5.15.9-1.2.x86_64 Solution 1: do not install FreeCAD-0.20.2-5.2.x86_64 Solution 2: break python3-pyside2-5.15.9-1.2.x86_64 by ignoring some of its dependencies Choose from above solutions by number or cancel [1/2/c/d/?] (c): 2 Resolving dependencies... Resolving package dependencies... The following 19 NEW packages are going to be installed: FreeCAD python311-appdirs python311-contourpy python311-Cycler python311-FontTools python311-fs python311-kiwisolver python311-matplotlib python311-matplotlib-qt5 python311-olefile python311-packaging python311-Pillow python311-pivy python311-ply python311-pyparsing python311-python-dateutil python311-pytz python311-PyYAML python3-pyside2 19 new packages to install. Overall download size: 79.7 MiB. Already cached: 0 B. After the operation, additional 327.8 MiB will be used. Continue? [y/n/v/...? shows all options] (y): It appears that the package python3-pyside2 needs to be rebuilt with python311 to get a clean installation of FreeCAD. Thanks, Gene
My analysis of the problem could be incorrect. I installed python3-pyside2-5.15.9-74.2.x86_64.rpm from opensuse.packages.org/tumbleweed and was able to reinstall FreeCAD with no errors. Does that package just need to be rebuilt, or does FreeCAD need to be rebuilt? Thanks again, Gene
I also found that version at https://download.opensuse.org/repositories/KDE:Qt5/openSUSE_Factory/KDE:Qt5.repo. Gene
This could be related to the issue that python3-pyside2 build in factory is failing since 15th June, so the new version with python3.11 as default python is not being built.
Looks like pyside2 don't support python 3.11 in the current release, I think that this should be fixed once the pyside project releases 5.15.11 https://forum.qt.io/post/757010 Maybe we should assign this bug to python3-pyside2 maintainer.
As I mentioned in my 3rd post, the version of pytho3-pyside2 KDE:Qt5 repository fixes this issue. Can't that version be added to the Main (OSS) repository? Gene
sr#1093899
(In reply to Daniel Garcia from comment #4) > Looks like pyside2 don't support python 3.11 in the current release, I think > that this should be fixed once the pyside project releases 5.15.11 > > https://forum.qt.io/post/757010 > It's a good thing they changed their mind. Upstream maintainers wrote this in 2022: https://bugreports.qt.io/browse/PYSIDE-1864?focusedId=652905&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-652905 Anyway, native 3.11 support is a good thing for factory, but not for what will become Leap 15.6 and its antique python version.
I believe this bug needs to be reopened. Now that python3-pyside has been updated, I get this message when trying to install FreeCAD: > sudo zypper install FreeCAD Loading repository data... Reading installed packages... Resolving package dependencies... Problem: nothing provides 'libpyside2.cpython-310-x86_64-linux-gnu.so.5.15()(64bit)' needed by the to be installed FreeCAD-0.20.2-5.2.x86_64 Solution 1: do not install FreeCAD-0.20.2-5.2.x86_64 Solution 2: break FreeCAD-0.20.2-5.2.x86_64 by ignoring some of its dependencies Choose from above solutions by number or cancel [1/2/c/d/?] (c): c Is that package available in another repo? Thanks, Gene
This leads me to believe that FreeCAD may need to be rebuilt for python311: > sudo zypper info --provides python3-pyside2 Loading repository data... Reading installed packages... Information for package python3-pyside2: ---------------------------------------- Repository : Main Repository (OSS) Name : python3-pyside2 Version : 5.15.10-1.1 Arch : x86_64 Vendor : openSUSE Installed Size : 55.4 MiB Installed : Yes Status : up-to-date Source package : python3-pyside2-5.15.10-1.1.src Upstream URL : https://wiki.qt.io/Qt_for_Python Summary : Python bindings for Qt Description : The PySide2 project provides Python bindings for the Qt application and UI framework. Provides : [13] libpyside2.cpython-311-x86_64-linux-gnu.so.5.15()(64bit) libshiboken2.cpython-311-x86_64-linux-gnu.so.5.15()(64bit) python3-PySide2 = 5.15.10-1.1 python3-pyside2 = 5.15.10-1.1 python3-pyside2(x86-64) = 5.15.10-1.1 python3-shiboken2 = 5.15.10-1.1 python3-shiboken2_generator = 5.15.10-1.1 python3.11dist(pyside2) = 5.15.10 python3.11dist(shiboken2) = 5.15.10 python3.11dist(shiboken2-generator) = 5.15.10 python3dist(pyside2) = 5.15.10 python3dist(shiboken2) = 5.15.10 python3dist(shiboken2-generator) = 5.15.10 FreeCAD is looking forlibpyside2.cpython-310, but libpyside2.cpython-311 is now being provided. Gene