Upgrade to Tumbleweed and Python/PyQt version problems

I’ve just upgraded my openSUSE workstation from Leap 15.3 to Tumbleweed and I’m having problems with the changes to the versions of Python3 and PyQt.

The upgrade has installed Python 3.8 and the matching versions of PyQt but also site-packages and PyQt for Python 3.10 leaving me totally confused.

running python3 -V shows “Python 3.8.13” and the basic Python seems (so far) to be ok but it’s the PyQt that fails.

Using pyuic5 to generate Python code from .ui files produces the error:-

/usr/bin/python3.8: Error while finding module specification for ‘PyQt5.uic.pyuic’ (ModuleNotFoundError: No module named ‘PyQt5.uic’)

There is no site-packages/PyQt5/uic/pyuic.py for 3.8, but there is one in 3.10

Using pyrrc5 to generate Python code for resource files produces the error:-

/usr/bin/python3.8: No module named PyQt5.pyrcc_main

Again, there’s no site-packages/PyQt5/pyrcc_main.py for 3.8 but there is one for 3.10

What’s my best way out of this, uninstall Python 3.10 packages?

What is the output of

rpm -qa python\*-qt5\*
update-alternatives --display pyuic5
sudo rpm -qa python\*-qt5\*
python38-qt5-5.15.6-3.5.x86_64 
python310-qscintilla-qt5-2.13.1-2.3.x86_64 
python310-qtdatavis3d-qt5-sip-5.15.4-3.8.x86_64 
python310-qt5-sip-12.9.0-2.4.x86_64 
python38-qtwebengine-qt5-devel-5.15.5-1.7.x86_64 
python310-qt5-5.15.6-3.5.x86_64 
python38-qt5-sip-12.9.0-2.4.x86_64 
python38-qt3d-qt5-5.15.4-3.8.x86_64 
python38-qtdatavis3d-qt5-5.15.4-3.8.x86_64 
python38-qscintilla-qt5-2.13.1-2.3.x86_64 
python310-qt5-devel-5.15.6-3.5.x86_64 
python38-qtwebengine-qt5-5.15.5-1.7.x86_64 
python310-qt3d-qt5-sip-5.15.4-3.8.x86_64 
python38-qt5-devel-5.15.6-3.5.x86_64
sudo update-alternatives --display pyuic5
pyuic5 - auto mode 
  link best version is /usr/bin/pyuic5-3.8 
  link currently points to /usr/bin/pyuic5-3.8 
  link pyuic5 is /usr/bin/pyuic5 
  slave pylupdate5 is /usr/bin/pylupdate5 
  slave pyqt5-sip is /usr/share/sip/PyQt5 
  slave pyrcc5 is /usr/bin/pyrcc5 
/usr/bin/pyuic5-3.10 - priority 310 
  slave pylupdate5: /usr/bin/pylupdate5-3.10 
  slave pyqt5-sip: /usr/share/pyqt5-sip-3.10 
  slave pyrcc5: /usr/bin/pyrcc5-3.10 
/usr/bin/pyuic5-3.8 - priority 1038 
  slave pylupdate5: /usr/bin/pylupdate5-3.8 
  slave pyqt5-sip: /usr/share/pyqt5-sip-3.8 
  slave pyrcc5: /usr/bin/pyrcc5-3.8

BTW It looks like I can’t just delete Python3.10 as it is required by blender

Looks like I can’t just delete Python 3.10 - it’s required by Blender

It should be included in

bor@bor-Latitude-E5450:/tmp/binaries$ rpm --nosignature  -qlp python38-qt5-5.15.6-3.5.x86_64.rpm | grep uic/pyuic.py
/usr/lib64/python3.8/site-packages/PyQt5/uic/pyuic.py
bor@bor-Latitude-E5450:/tmp/binaries$ 

Agreed - according to the list of files shown in YaST but not there ATM.
I have now run YaST ‘update unconditionally’ on python38-qt5, python38-qt5-devel and python38-qt5-sip and the file is now present and pyuic5 and pyrrc5 both run OK :-).

No idea why the packages weren’t properly installed during the upgrade - hopefully all is OK now - and Thanks for your help