Float to int conversion in Qt and Python 3.10 on Fedora 35 beta
Bug #1946407 reported by
yodatak
This bug affects 12 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rapid Photo Downloader |
Fix Released
|
Critical
|
Damon Lynch |
Bug Description
When runing the one in fedora packages i got this crash with this error:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: setFixedWidth(self, int): argument 1 has unexpected type 'float'
Related branches
summary: |
- Crash at start in fedora 35 Python 3.10 + Float to int conversion in Qt and Python 3.10 on Fedora 35 beta |
Changed in rapid: | |
status: | In Progress → Fix Committed |
Changed in rapid: | |
status: | In Progress → Fix Committed |
Changed in rapid: | |
milestone: | none → 0.9.27b2 |
Changed in rapid: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Thanks for this bug report, which I can easily replicate. In pretty sure it's a bug in Fedora's Python 3.10 auto conversion of float to int when calling Qt, but nonetheless I've fixed it. I plan to release 0.9.27a3 with this fix within a few hours.
Unfortunately, however, that brings us to an equally serious bug when using Python's pickle:
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
That's a problem outside the scope of Rapid Photo Downloader. It's a problem in the implementation of Python in Fedora. Until it is fixed Rapid Photo Downloader simply will not work. It probably should be reported in Fedora. Are you feel confident to do that? Probably it will be best to replicate it on your own system after I make the 0.9.27a3 release.