eric6 21.1 on Debian bookworm, using Python 3.10.6 fails on launch with the error "setPixelSize(self, int): argument 1 has unexpected type 'float'"
This seems to be related to Python 3.10's change "... that take integer arguments no longer accept Decimals, Fractions and other objects that can be converted to integers only with a loss (e.g. that have the __int__() method but do not have the __index__() method)."
Error info:
<class 'TypeError'>:
setPixelSize(self, int): argument 1 has unexpected type 'float'
--------------------------------------------------------------------------------
File "/usr/share/eric/modules/eric6.py", line 425, in <module>
main()
File "/usr/share/eric/modules/eric6.py", line 404, in main
mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins,
File "/usr/share/eric/modules/UI/UserInterface.py", line 297, in __init__
self.__createLayout(debugServer)
File "/usr/share/eric/modules/UI/UserInterface.py", line 814, in __createLayout
self.__createSidebarsLayout(debugServer)
File "/usr/share/eric/modules/UI/UserInterface.py", line 1103, in __createSidebarsLayout
self.pipWidget = PipPackagesWidget(self.pipInterface)
File "/usr/share/eric/modules/PipInterface/PipPackagesWidget.py", line 61, in __init__
self.setupUi(self)
File "/usr/share/eric/modules/PipInterface/Ui_PipPackagesWidget.py", line 30, in setupUi
self.pipMenuButton = E5ToolButton(self.baseWidget)
File "/usr/share/eric/modules/E5Gui/E5ToolButton.py", line 55, in __init__
font.setPixelSize(self.__badgeLabel.height() / 2.5)
-------------------------------------------------------------------------------
Version Numbers:
Python 3.10.6, 64-Bit
Qt 5.15.4
PyQt 5.15.7
PyQtChart not installed
PyQtWebEngine 5.15.6
QScintilla 2.11.6
sip 6.6.2
WebEngine 87.0.4280.144
eric6 21.1 (rev. a0f9e97c0186)
Platform: linux
3.10.6 (main, Aug 10 2022, 11:19:32) [GCC 12.1.0]
|