Menu

#153 AssertionError: Invalid level argument: 'match-list'

General
open
nobody
None
1
2020-03-19
2019-04-23
No

Since portage udated from version 2.3.49 the python interface changed so when it tries to read details from a package, information from the package like the dependencies, use flags, accepted keywords won't display and any feature that needs this information became useless.

The terminal output given is this:

Porthole: python version = 2.7.15 (default, Sep 28 2018, 14:25:39)
[GCC 7.3.0]
importing installed modules
starting main()
CONFIG: id initialized to 575202
CONFIGURATION: id initialized to 575291
PREFERENCES: id initialized to 577179
initializing utils.init.py
DEBUG: id initialized to 577537
UTILS: mydebug.id = 577537
PREFERENCES: imported debug.id = 577537
BACKENDS: id initialized to 630101
PORTAGELIB: id initialized to 630335
STERMINAL: id initialized to 632888
VERSION_SORT: id initialized to 635137
PROPERTIES: id initialized to 635838
METADATA: id initialized to 635944
PORTAGELIB: imported portage-2.2 modules
PORTAGELIB: portage version = 2.3.62
BACKENDS: portage_lib import complete : <module from="" '="" 'porthole.backends.portagelib'="" python2.7="" backends="" site-packages="" usr="" porthole="" lib64="" portagelib.pyc'="">
MAINWINDOW: id initialized to 296454
DATABASE: id initialized to 309069
PACKAGE: id initialized to 309220
DBREADER: import id initialized to 309326
UTILITIES: id initialized to 309730
USERCONFIGS: id initialized to 309905
DBREADER: DatabaseReader.id initialized to 310964
PLUGIN: id initialized to 367315
ADVEMERGE: id initialized to 369352
PORTHOLE: i18n_DIR = /usr/share/locale/
threading.enumerate() = [<_MainThread(MainThread, started 140247756715392)>]
this thread is : 140247756715392 current thread <MainThread(MainThread, started 140247756715392)>
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/porthole/views/package.py", line 350, in _clicked
self.mainwindow_callback("package changed", {'package': package, 'caller': 'VIEWS: Package view _clicked()'})
File "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line 424, in action_callback
ret_val = getattr(self, "_action
%s_" %action)(arg)
File "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line 454, in _action_package_changed

self.package_changed(arg['package'])
File "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line 1188, in package_changed
self.packagebook.set_package(package)
File "/usr/lib64/python2.7/site-packages/porthole/packagebook/notebook.py", line 92, in set_package
self.summary.update_package_info(package)
File "/usr/lib64/python2.7/site-packages/porthole/packagebook/summary.py", line 686, in update_package_info
show_props(self.ebuild)
File "/usr/lib64/python2.7/site-packages/porthole/packagebook/summary.py", line 432, in show_props
ebuild_use_flags = get_reduced_flags(ebuild)
File "/usr/lib64/python2.7/site-packages/porthole/backends/utilities.py", line 166, in get_reduced_flags
package_use_flags = USERCONFIGS.get_user_config('USE', ebuild=ebuild)
File "/usr/lib64/python2.7/site-packages/porthole/db/user_configs.py", line 268, in get_user_config
match = portage_lib.xmatch('match-list', acpv, mylist=[ebuild])
File "/usr/lib64/python2.7/site-packages/porthole/backends/portagelib.py", line 328, in xmatch
results = settings.portdb.xmatch(args, *kwargs)[:] # make a copy. needed for <portage-svn-r5382
File "/usr/lib64/python2.7/site-packages/portage/dbapi/porttree.py", line 1088, in xmatch
self.async_xmatch(level, origdep, loop=loop))
File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 833, in run_until_complete
return future.result()
File "/usr/lib64/python2.7/site-packages/portage/util/futures/futures.py", line 131, in result
raise self._exception
AssertionError: Invalid level argument: 'match-list'</module>

Related

Bugs: #153

Discussion

  • Brian Dolbec

    Brian Dolbec - 2019-04-23

    Yes, pothole needs quite a few updates. We are waiting for the Google
    summer of code slot assignments. I think pothole will get a student. So
    later this summer there should be lots of fixes as well as a few new
    features.

    On Tue, Apr 23, 2019, 2:49 PM fcolecumberri fcolecumberri@users.sourceforge.net wrote:


    Status: open
    Group: General
    Created: Tue Apr 23, 2019 09:49 PM UTC by fcolecumberri
    Last Updated: Tue Apr 23, 2019 09:49 PM UTC
    Owner: nobody

    Since portage udated from version 2.3.49 the python interface changed so
    when it tries to read details from a package, information from the package
    like the dependencies, use flags, accepted keywords won't display and any
    feature that needs this information became useless.

    The terminal output given is this:

    Porthole: python version = 2.7.15 (default, Sep 28 2018, 14:25:39)
    [GCC 7.3.0]
    importing installed modules
    starting main()
    CONFIG: id initialized to 575202
    CONFIGURATION: id initialized to 575291
    PREFERENCES: id initialized to 577179
    initializing utils.init.py
    DEBUG: id initialized to 577537
    UTILS: mydebug.id = 577537
    PREFERENCES: imported debug.id = 577537
    BACKENDS: id initialized to 630101
    PORTAGELIB: id initialized to 630335
    STERMINAL: id initialized to 632888
    VERSION_SORT: id initialized to 635137
    PROPERTIES: id initialized to 635838
    METADATA: id initialized to 635944
    PORTAGELIB: imported portage-2.2 modules
    PORTAGELIB: portage version = 2.3.62
    BACKENDS: portage_lib import complete : <module from="" '="" 'porthole.backends.portagelib'="" python2.7="" backends="" site-packages="" usr="" porthole="" lib64="" portagelib.pyc'="">
    MAINWINDOW: id initialized to 296454
    DATABASE: id initialized to 309069
    PACKAGE: id initialized to 309220
    DBREADER: import id initialized to 309326
    UTILITIES: id initialized to 309730
    USERCONFIGS: id initialized to 309905
    DBREADER: DatabaseReader.id initialized to 310964
    PLUGIN: id initialized to 367315
    ADVEMERGE: id initialized to 369352
    PORTHOLE: i18n_DIR = /usr/share/locale/
    threading.enumerate() = [<_MainThread(MainThread, started
    140247756715392)>]

    this thread is : 140247756715392 current thread <</module>

    MainThread(MainThread, started 140247756715392)> Traceback (most recent
    call last): File
    "/usr/lib64/python2.7/site-packages/porthole/views/package.py", line 350,
    in _clicked self.mainwindow_callback("package changed", {'package':
    package, 'caller': 'VIEWS: Package view _clicked()'}) File
    "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line 424, in
    action_callback ret_val = getattr(self, "_action
    %s_" %
    action)(arg) File
    "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line 454, in
    _action_package_changed

    self.package_changed(arg['package'])
    File "/usr/lib64/python2.7/site-packages/porthole/mainwindow.py", line
    1188, in package_changed
    self.packagebook.set_package(package)
    File
    "/usr/lib64/python2.7/site-packages/porthole/packagebook/notebook.py", line
    92, in set_package
    self.summary.update_package_info(package)
    File "/usr/lib64/python2.7/site-packages/porthole/packagebook/summary.py",
    line 686, in update_package_info
    show_props(self.ebuild)
    File "/usr/lib64/python2.7/site-packages/porthole/packagebook/summary.py",
    line 432, in show_props
    ebuild_use_flags = get_reduced_flags(ebuild)
    File "/usr/lib64/python2.7/site-packages/porthole/backends/utilities.py",
    line 166, in get_reduced_flags
    package_use_flags = USERCONFIGS.get_user_config('USE', ebuild=ebuild)
    File "/usr/lib64/python2.7/site-packages/porthole/db/user_configs.py",
    line 268, in get_user_config
    match = portage_lib.xmatch('match-list', acpv, mylist=[ebuild])
    File "/usr/lib64/python2.7/site-packages/porthole/backends/portagelib.py",
    line 328, in xmatch
    results = settings.portdb.xmatch(args, *kwargs)[:] # make a copy.
    needed for <portage-svn-r5382 run_until_complete="" module="" porttree.py",="" future.result()="" result="" file="" in="" dbapi="" eventloop.py",="" "="" raise="" portage="" invalid="" _eventloop="" lib64="" 'match-list'<="" usr="" self.async_xmatch(level,="" return="" 1088,="" python2.7="" 833,="" util="" self._exception="" line="" 131,="" xmatch="" level="" futures="" futures.py",="" site-packages="" origdep,="" assertionerror:="" argument:="" loop="loop))"></portage-svn-r5382>


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/porthole/bugs/153/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #153

  • schiffsratte

    schiffsratte - 2019-07-18

    I corrected some errors like this on for myself.
    It's a "works for me version" but if someone likes to use it it's on github.
    https://github.com/schiffsratte/Porthole

     
    • fcolecumberri

      fcolecumberri - 2019-08-04

      I can tell that your fix also works for me, thanks.
      I also reviewed the changes with meld and I think thouse should work with everyone.

       
    • Eric H.

      Eric H. - 2019-12-18

      This works for me as well. I've been trying to report this on gentoo's bugtracker and haven't had any attention on it in all the time I've had this problem.

      Thanks

       
  • fcolecumberri

    fcolecumberri - 2020-03-19

    Hey, I am creating a repo, with the schiffsratte fix and I will try to mantain it as long as I can. https://github.com/fcolecumberri/porthole

     

Log in to post a comment.