Bug 2008378 - mu-editor fails to launch after encountering a type error during initializing.
Summary: mu-editor fails to launch after encountering a type error during initializing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mu
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedFreezeException
Depends On:
Blocks: F35FinalFreezeException
TreeView+ depends on / blocked
 
Reported: 2021-09-28 06:08 UTC by Joe Pesco
Modified: 2021-10-07 23:31 UTC (History)
4 users (show)

Fixed In Version: mu-1.0.3-11.fc36 mu-1.0.3-11.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-07 23:31:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
mu.log (5.56 KB, text/plain)
2021-09-28 06:08 UTC, Joe Pesco
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github mu-editor mu pull 1828 0 None open Avoid TypeErrors when moving windows to float positions 2021-09-28 15:55:16 UTC

Description Joe Pesco 2021-09-28 06:08:31 UTC
Created attachment 1826869 [details]
mu.log

Created attachment 1826869 [details]
mu.log

Created attachment 1826869 [details]
mu.log

Description of problem:
The mu-editor when launched from  


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Install the mu package on Fedora Workstation using Dnf.
2. Navigating to the Application Picker and clicking on the Mu icon
   will fail, therefore open a terminal window and enter mu-editor 
   at the prompt.
 

Actual results:

[jpesco@f35ws log]$ mu-editor
Logging to /home/jpesco/.cache/mu/log/mu.log
QSocketNotifier: Can only be used with threads started with QThread
Traceback (most recent call last):
  File "/usr/bin/mu-editor", line 8, in <module>
    sys.exit(run())
  File "/usr/lib/python3.10/site-packages/mu/app.py", line 148, in run
    editor_window.setup(editor.debug_toggle_breakpoint, editor.theme)
  File "/usr/lib/python3.10/site-packages/mu/interface/main.py", line 826, in setup
    self.autosize_window()
  File "/usr/lib/python3.10/site-packages/mu/interface/main.py", line 775, in autosize_window
    self.move((screen.width() - size.width()) / 2,
TypeError: arguments did not match any overloaded call:
  move(self, QPoint): argument 1 has unexpected type 'float'
  move(self, int, int): argument 1 has unexpected type 'float'
[jpesco@f35ws log]$ 



Expected results:
The editor should launch!


Additional info:
1. I've had the same result with AARCH64 on a Raspberry Pi 4 running Fedora 35 
   Server and the Basic Desktop group installed. 

2. Commenting out line 775 of /usr/lib/python3.10/site-packages/mu/interface/main.py, 
   but doesn't clear up `QSocketNotifier: Can only be used with threads started with QThread' 
   that does not appear in log file.

3. Removing the rpm package and attempting to install the mu-editor
   with pip also fails.

Comment 1 Miro Hrončok 2021-09-28 07:57:48 UTC
Thanks for the report, Joe! Good news is I know precisely how to fix this, we just change:

    self.move((screen.width() - size.width()) / 2, ...

To:

    self.move((screen.width() - size.width()) // 2, ...


In order to have ints and not floats.


I will do this.

Comment 2 Miro Hrončok 2021-09-28 15:55:16 UTC
https://github.com/mu-editor/mu/pull/1828

Comment 4 Fedora Update System 2021-09-29 10:15:28 UTC
FEDORA-2021-31ef447e24 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-31ef447e24

Comment 5 Fedora Update System 2021-09-29 10:17:11 UTC
FEDORA-2021-31ef447e24 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2021-09-29 10:18:33 UTC
FEDORA-2021-8d06730b63 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8d06730b63

Comment 7 Fedora Update System 2021-09-30 01:43:18 UTC
FEDORA-2021-8d06730b63 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8d06730b63`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8d06730b63

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Miro Hrončok 2021-10-06 09:20:11 UTC
Requesting a freeze exception as this package is on the Fedora Python Classroom Lab and people are more likely to just run it from live media without updating the packages.

Comment 9 Adam Williamson 2021-10-07 23:21:35 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/510 , marking accepted.

Comment 10 Fedora Update System 2021-10-07 23:31:38 UTC
FEDORA-2021-8d06730b63 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.