On Sun, 15 Aug 2021 at 19:40, Scott Talbert <swt(a)techie.net> wrote:
On Sun, 15 Aug 2021, Miro HronĨok wrote:
>> Hi,
>>
>> I am trying to update spyder on rawhide and F35. The main issue I have is
>> that pyqt requirements are strict. From the setup file,
>>
>> 'pyqt5<5.13',
>> 'pyqtwebengine<5.13',
>>
>> Fedora has 5.15.x. If I relax QT versions, built and launch spyder, I get
>> this error and spyder fails to launch.
>>
>> scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode =
>> Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode =
>> Qt.FastTransformation): argument 1 has unexpected type 'float'
>>
>> scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode =
>> Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode =
>> Qt.FastTransformation): argument 1 has unexpected type 'float'
>
> Do you know where is this error triggered? Try explicitly converting the
> floats to integers.
Yeah, that sounds more like a common Python 3.10 issue than an issue with
newer PyQt.
No, this is definitely a change in PyQt, or at least sip, cf.
https://github.com/matplotlib/matplotlib/pull/17565
https://github.com/matplotlib/matplotlib/pull/17600
The fix is 'easy', but you need to find everywhere that might trigger
it. QSize takes an int now, as it does in Qt (from C++), instead of
coercing a float.
Scott
--
Elliott