Re: requesting help to update spyder
On Sun, 15 Aug 2021, Elliott Sales de Andrade wrote: 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. Python 3.10 also contains a change where you can no longer pass floats to extension modules in cases where there would a loss of precision (e.g., as an int). Scott ___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: requesting help to update spyder
On Sun, 15 Aug 2021 at 19:40, Scott Talbert 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 ___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: requesting help to update spyder
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. Scott___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: requesting help to update spyder
On 14. 08. 21 18:06, Mukundan Ragavan 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. -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: requesting help to update spyder
On 8/14/21 6:06 PM, Mukundan Ragavan 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' Spec and patches can be seen here - https://copr-dist-git.fedorainfracloud.org/cgit/nonamedotc/spyder5dev/spyder.git/tree/ Any help to get this sorted out will be greatly appreciated. Thanks, Mukundan. It doesn't seem to be possible until upstream dedicate the time to migrate to 5.15: https://github.com/spyder-ide/spyder/issues/12829 ___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
requesting help to update spyder
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' Spec and patches can be seen here - https://copr-dist-git.fedorainfracloud.org/cgit/nonamedotc/spyder5dev/spyder.git/tree/ Any help to get this sorted out will be greatly appreciated. Thanks, Mukundan. -- GPG Key: E5C8BC67 OpenPGP_signature Description: OpenPGP digital signature ___ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure