Unhandled exception when clicking bookmark menu dropdown

Create issue
Issue #3 resolved
Former user created an issue

Traceback (most recent call last): File "/usr/lib/pkgbrowser/pkgbrowser/window.py", line 1018, in handleBookmarkMenu self.bookmarkMenu.addAction(bookmark) TypeError: arguments did not match any overloaded call: QMenu.addAction(QAction): argument 1 has unexpected type 'list' QMenu.addAction(str): argument 1 has unexpected type 'list' QMenu.addAction(QIcon, str): argument 1 has unexpected type 'list' QMenu.addAction(str, QObject, SLOT(), QKeySequence shortcut=0): argument 1 has unexpected type 'list' QMenu.addAction(str, callable, QKeySequence shortcut=0): argument 1 has unexpected type 'list' QMenu.addAction(QIcon, str, QObject, SLOT(), QKeySequence shortcut=0): argument 1 has unexpected type 'list' QMenu.addAction(QIcon, str, callable, QKeySequence shortcut=0): argument 1 has unexpected type 'list'

Comments (4)

  1. cteubner

    After this happened, I'm now unable to start pkgbrowser:

    $ pkgbrowser 
    Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)" 
    Traceback (most recent call last):
      File "/usr/lib/pkgbrowser/main.py", line 9, in <module>
    sys.exit(app.run())
      File "/usr/lib/pkgbrowser/pkgbrowser/app.py", line 114, in run
    app.window().setup()
      File "/usr/lib/pkgbrowser/pkgbrowser/app.py", line 59, in window
    self._window = Window()
      File "/usr/lib/pkgbrowser/pkgbrowser/window.py", line 229, in __init__
    strings[:self.searchBox.maxCount()])
    TypeError: QStringListModel.setStringList(list-of-str): argument 1 has unexpected type 'list'
    

    My .config/pkgbrowser/pkgbrowser.conf has:

    [bookmarks]
    names=@Variant(\0\0\0\t\0\0\0\x1\0\0\0\t\0\0\0\x1\0\0\0\n\0\0\0\x10\0l\0i\0\x63\0\x65\0n\0s\0\x65\0s)
    

    After removing pkgbrowser.conf, I'm able to start pkgbrowser again. I'm now unable to reproduce what happened before.

  2. kachelaqa repo owner

    Thanks for the feedback.

    There have been a number of similar reports regarding this issue. I'm fairly certain it is not a pkgbrowser bug. It is possibly caused by recent updates to qt4 and/or pyqt4, which somehow results in pkgbrowser writing invalid entries in its config file.

    The solution is to either delete the config file entry causing the problem, or to simply remove the config file altogether.

  3. Log in to comment