eric ide


Author: fuzzyeric
Recipients: fuzzyeric
Date: 2022-09-13.19:32:15
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/", line 425, in <module>
  File "/usr/share/eric/modules/", line 404, in main
    mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins,
  File "/usr/share/eric/modules/UI/", line 297, in __init__
  File "/usr/share/eric/modules/UI/", line 814, in __createLayout
  File "/usr/share/eric/modules/UI/", line 1103, in __createSidebarsLayout
    self.pipWidget = PipPackagesWidget(self.pipInterface)
  File "/usr/share/eric/modules/PipInterface/", line 61, in __init__
  File "/usr/share/eric/modules/PipInterface/", line 30, in setupUi
    self.pipMenuButton = E5ToolButton(self.baseWidget)
  File "/usr/share/eric/modules/E5Gui/", 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]
Date User Action Args
2022-09-13 19:32:15fuzzyericsetrecipients: + fuzzyeric
2022-09-13 19:32:15fuzzyericsetmessageid: <>
2022-09-13 19:32:15fuzzyericlinkissue442 messages
2022-09-13 19:32:15fuzzyericcreate