Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1901925
Summary: | python-pyqtgraph fails to build with Python 3.10: QPoint(int, int): argument 1 has unexpected type 'float' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-pyqtgraph | Assignee: | Scott Talbert <swt> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, swt, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-03-26 23:07:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1900524 | ||
Bug Blocks: | 1890881 |
Description
Tomáš Hrnčiar
2020-11-26 12:41:55 UTC
I updated to a new upstream release of pyqtgraph hoping that it might fix this issue - however the new upstream grew some new dependencies on PyQt5 and h5py, and it cannot be built at the moment using the 3.10 COPR. Can you please ping me again when those packages are available in the COPR? Error: Problem 1: cannot install the best candidate for the job - nothing provides libQt5Quick.so.5(Qt_5.15.2_PRIVATE_API)(64bit) needed by python3-qt5-5.15.0-3.fc34.x86_64 Problem 2: cannot install both python3-numpy-1:1.19.4-1.fc34.x86_64 and python3-numpy-1:1.19.4-2.fc34.x86_64 - package python3-h5py-3.1.0-1.fc34.x86_64 requires python3.9dist(numpy) >= 1.19.3, but none of the providers can be installed - cannot install the best candidate for the job - conflicting requests (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Thank you for looking into this. In the meantime, PyQt5 started to build https://copr.fedorainfracloud.org/coprs/g/python/python3.10/build/1796361/. h5py depends on python-pytest-mpi (rhbz#1900524). This is now blocked on scipy: Error: Problem: package python3-scipy-1.6.0-3.fc34.x86_64 requires python(abi) = 3.9, but none of the providers can be installed - package python3-devel-3.10.0~a5-1.fc34.x86_64 conflicts with python3 < 3.10.0~a5-1.fc34 provided by python3-3.9.1-5.fc34.i686 - package python3-devel-3.10.0~a5-1.fc34.x86_64 conflicts with python3 < 3.10.0~a5-1.fc34 provided by python3-3.9.1-5.fc34.x86_64 - cannot install the best candidate for the job (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) I don't see an open bug for scipy, which seems to be segfaulting during build, although it's not clear to me exactly what's segfaulting. The python interpreter? We have *just now* updated to 3.10.0a5. The segfault is likely caused by some of the imported extension module built with a4. We'll need to bootstrap it over, give it a couple of days. Scipy built fine. Looks like sphinx-build is now segfaulting for pyqtgraph: + make -C doc html make: Entering directory '/builddir/build/BUILD/pyqtgraph-0.11.1/doc' sphinx-build -b html -d build/doctrees source build/html Running Sphinx v3.4.3 make: *** [Makefile:40: html] Segmentation fault (core dumped) make: Leaving directory '/builddir/build/BUILD/pyqtgraph-0.11.1/doc' error: Bad exit status from /var/tmp/rpm-tmp.lTsVsP (%build) It appears that python-sphinx has already been rebuilt with 3.10.0a5 though? python-sphinx is noarch, this is usually a problem with extension module (arched package) that's imported in the process. If you work locally, make sure to scrub the mock's dnf cache. E.g. mock -r fedora-rawhide-python310 --scrub=dnf-cache https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/h5py/ hasn't been built with a5 yet. maybe that's it. I'll try to do more rounds of everyhting. And that allowed the build to go past the sphinx failure. =================================== FAILURES =================================== __________________ testExamples[ JoystickButton.py - PyQt5 ] ___________________ Python 3.10.0a5 (default, Feb 3 2021, 14:01:21) [GCC 11.0.0 20210130 (Red Hat 11.0.0-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) Traceback (most recent call last): File "<stdin>", line 6, in <module> File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/JoystickButton.py", line 27, in <module> jb = pg.JoystickButton() File "/builddir/build/BUILD/pyqtgraph-0.11.1/pyqtgraph/widgets/JoystickButton.py", line 14, in __init__ self.setState(0,0) File "/builddir/build/BUILD/pyqtgraph-0.11.1/pyqtgraph/widgets/JoystickButton.py", line 59, in setState self.spotPos = QtCore.QPoint(w2*(1+xy[0]), h2*(1-xy[1])) TypeError: arguments did not match any overloaded call: QPoint(): too many arguments QPoint(int, int): argument 1 has unexpected type 'float' QPoint(QPoint): argument 1 has unexpected type 'float' >>> Failed JoystickButton Example Test Located in JoystickButton.py ----------------------------- Captured stdout call ----------------------------- JoystickButton Python 3.10.0a5 (default, Feb 3 2021, 14:01:21) [GCC 11.0.0 20210130 (Red Hat 11.0.0-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) Traceback (most recent call last): File "<stdin>", line 6, in <module> File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/JoystickButton.py", line 27, in <module> jb = pg.JoystickButton() File "/builddir/build/BUILD/pyqtgraph-0.11.1/pyqtgraph/widgets/JoystickButton.py", line 14, in __init__ self.setState(0,0) File "/builddir/build/BUILD/pyqtgraph-0.11.1/pyqtgraph/widgets/JoystickButton.py", line 59, in setState self.spotPos = QtCore.QPoint(w2*(1+xy[0]), h2*(1-xy[1])) TypeError: arguments did not match any overloaded call: QPoint(): too many arguments QPoint(int, int): argument 1 has unexpected type 'float' QPoint(QPoint): argument 1 has unexpected type 'float' >>> __________________ testExamples[ relativity_demo.py - PyQt5 ] __________________ Python 3.10.0a5 (default, Feb 3 2021, 14:01:21) [GCC 11.0.0 20210130 (Red Hat 11.0.0-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) Traceback (most recent call last): File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/relativity/relativity.py", line 159, in treeChanged self.setAnimation(self.params['Animate']) File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/relativity/relativity.py", line 134, in setAnimation self.animTimer.start(self.animDt*1000) TypeError: arguments did not match any overloaded call: start(self, int): argument 1 has unexpected type 'float' start(self): too many arguments Failed Special relativity Example Test Located in relativity_demo.py ----------------------------- Captured stdout call ----------------------------- Special relativity Python 3.10.0a5 (default, Feb 3 2021, 14:01:21) [GCC 11.0.0 20210130 (Red Hat 11.0.0-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri) Traceback (most recent call last): File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/relativity/relativity.py", line 159, in treeChanged self.setAnimation(self.params['Animate']) File "/builddir/build/BUILD/pyqtgraph-0.11.1/examples/relativity/relativity.py", line 134, in setAnimation self.animTimer.start(self.animDt*1000) TypeError: arguments did not match any overloaded call: start(self, int): argument 1 has unexpected type 'float' start(self): too many arguments I've seen this before in different places. Round the float. I believe the cause is https://bugs.python.org/issue37999 This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. Should finally be fixed. :-) |