Bug 1707043 - [abrt] git-cola: __init__(): startup.py:120:__init__:TypeError: 'PySide.QtGui.QWidget.setFocus' called with wrong argument types:
Summary: [abrt] git-cola: __init__(): startup.py:120:__init__:TypeError: 'PySide.QtGui...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: git-cola
Version: 31
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Oliver Ilian
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:3a09fd7a4434313a0b22fc5d49a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-06 17:02 UTC by Christophe LEFEVRE
Modified: 2020-04-15 20:32 UTC (History)
6 users (show)

Fixed In Version: git-cola-3.4-4.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-15 20:32:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.79 KB, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: cgroup (331 bytes, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: cpuinfo (1.98 KB, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: environ (3.66 KB, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: mountinfo (3.79 KB, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: namespaces (129 bytes, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details
File: open_fds (954 bytes, text/plain)
2019-05-06 17:02 UTC, Christophe LEFEVRE
no flags Details

Description Christophe LEFEVRE 2019-05-06 17:02:34 UTC
Version-Release number of selected component:
git-cola-3.2-2.fc30

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 /usr/bin/git-cola --prompt
crash_function: __init__
exception_type: TypeError
executable:     /usr/bin/git-cola
interpreter:    python3-3.7.3-1.fc30.x86_64
kernel:         5.0.11-300.fc30.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
startup.py:120:__init__:TypeError: 'PySide.QtGui.QWidget.setFocus' called with wrong argument types:
  PySide.QtGui.QWidget.setFocus(bool)
Supported signatures:
  PySide.QtGui.QWidget.setFocus()
  PySide.QtGui.QWidget.setFocus(PySide.QtCore.Qt.FocusReason)

Traceback (most recent call last):
  File "/usr/bin/git-cola", line 54, in <module>
    sys.exit(main())
  File "/usr/share/git-cola/lib/cola/main.py", line 27, in main
    return args.func(args)
  File "/usr/share/git-cola/lib/cola/main.py", line 296, in cmd_cola
    context = app.application_init(args)
  File "/usr/share/git-cola/lib/cola/app.py", line 355, in application_init
    new_worktree(context, args.repo, args.prompt, args.settings)
  File "/usr/share/git-cola/lib/cola/app.py", line 470, in new_worktree
    startup_dlg = startup.StartupDialog(context, parent, settings=settings)
  File "/usr/share/git-cola/lib/cola/widgets/startup.py", line 120, in __init__
    self.bookmarks.setFocus(True)
TypeError: 'PySide.QtGui.QWidget.setFocus' called with wrong argument types:
  PySide.QtGui.QWidget.setFocus(bool)
Supported signatures:
  PySide.QtGui.QWidget.setFocus()
  PySide.QtGui.QWidget.setFocus(PySide.QtCore.Qt.FocusReason)

Local variables in innermost frame:
self: <cola.widgets.startup.StartupDialog object at 0x7fbb037ef408>
context: <cola.app.ApplicationContext object at 0x7fbb0334a0f0>
parent: None
settings: <cola.settings.Settings object at 0x7fbb0385b470>
logo_pixmap: <PySide.QtGui.QPixmap object at 0x7fbb037ef348>
item: <PySide.QtGui.QStandardItem object at 0x7fbb02d27808>
bookmarks: []
recent: ['/home/christophe/Documents/b_valo']
all_repos: ['/home/christophe/Documents/b_valo']
added: {'/home/christophe/Documents/b_valo'}
repo: '/home/christophe/Documents/b_valo'
selection_mode: PySide.QtGui.QAbstractItemView.SelectionMode.SingleSelection

Comment 1 Christophe LEFEVRE 2019-05-06 17:02:37 UTC
Created attachment 1564656 [details]
File: backtrace

Comment 2 Christophe LEFEVRE 2019-05-06 17:02:38 UTC
Created attachment 1564657 [details]
File: cgroup

Comment 3 Christophe LEFEVRE 2019-05-06 17:02:40 UTC
Created attachment 1564658 [details]
File: cpuinfo

Comment 4 Christophe LEFEVRE 2019-05-06 17:02:41 UTC
Created attachment 1564659 [details]
File: environ

Comment 5 Christophe LEFEVRE 2019-05-06 17:02:43 UTC
Created attachment 1564660 [details]
File: mountinfo

Comment 6 Christophe LEFEVRE 2019-05-06 17:02:44 UTC
Created attachment 1564661 [details]
File: namespaces

Comment 7 Christophe LEFEVRE 2019-05-06 17:02:46 UTC
Created attachment 1564662 [details]
File: open_fds

Comment 8 David Aguilar 2019-05-07 03:03:19 UTC
In case it helps Git Cola generally works best with the PyQt5 bindings.  We support PyQt4 and PyQt5 via the "qtpy" module, but all day-to-day development is done using PyQt5.

Comment 9 Christophe LEFEVRE 2019-05-07 23:31:05 UTC
Than you, but PyQt5 don't exist on Fedora 30 repository.

Comment 10 Ben Boeckel 2019-10-30 03:49:16 UTC
See #1705023 for updating the package to use Qt5 (which may also fix this issue).

Comment 11 David Aguilar 2019-11-01 04:48:58 UTC
In case it helps (besides PyQt5 or PySide2), we did get rid of the setFocus(bool) calls upstream in later versions (v3.3+).

Comment 13 Brad Bell 2020-03-28 14:09:29 UTC
I am getting a similar erro on fedora 31

user>dnf info git-cola
... snip ...
Name         : git-cola
Version      : 3.4
Release      : 2.fc31
Architecture : noarch
Size         : 4.0 M
Source       : git-cola-3.4-2.fc31.src.rpm
Repository   : @System
From repo    : fedora
... snip ...

user>git-cola
Traceback (most recent call last):
  File "/usr/share/git-cola/lib/qtpy/__init__.py", line 172, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-cola", line 53, in <module>
    from cola.main import main
  File "/usr/share/git-cola/lib/cola/main.py", line 6, in <module>
    from . import app
  File "/usr/share/git-cola/lib/cola/app.py", line 15, in <module>
    from qtpy import QtCore
  File "/usr/share/git-cola/lib/qtpy/__init__.py", line 178, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

Comment 14 Brad Bell 2020-03-28 14:16:47 UTC
I was able to get around the problem with the suggestion on
https://bugzilla.redhat.com/show_bug.cgi?id=1775648

i.e.,
dnf install python3-pyside

I still get an error message. Now it is as follows:

user>git-cola
Bus::open: Connect ibus failed! 
IBusInputContext::createInputContext: no connection to ibus-daemon

Comment 15 Fedora Update System 2020-04-06 17:16:56 UTC
FEDORA-2020-ad7d7ce3a3 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-ad7d7ce3a3

Comment 16 Fedora Update System 2020-04-07 03:10:14 UTC
FEDORA-2020-ad7d7ce3a3 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-ad7d7ce3a3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-ad7d7ce3a3

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

Comment 17 Fedora Update System 2020-04-15 20:32:56 UTC
FEDORA-2020-ad7d7ce3a3 has been pushed to the Fedora 31 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.