Skip to content

checkdeps.py broken #1316

Open
Open

Description

@PeterSurda
Traceback (most recent call last):
  File "checkdeps.py", line 142, in <module>
    if x in EXTRAS_REQUIRE_DEPS
KeyError: None

Activity

  1. added
    bugSomething isn't working as it's supposed to
    on Jul 19, 2018
  2. added 3 commits that reference this issue on Jul 19, 2018
    2ce965b
    c266e85
    e1d2ead
  3. PeterSurda commented on Jul 22, 2018

    @PeterSurda
    MemberAuthor

    At least on Debian it's still broken after e1d2ead, haven't tested others.

  4. g1itch commented on Jul 22, 2018

    @g1itch
    Collaborator

    Sad

  5. PeterSurda commented on Jul 22, 2018

    @PeterSurda
    MemberAuthor

    What OS did you test it on?

  6. PeterSurda commented on Jul 22, 2018

    @PeterSurda
    MemberAuthor

    It probably works now with Ubuntu for example, but on Debian this is in the os-releases:

    NAME="Debian GNU/Linux"

    and it looks like that's parsed incorrectly, maybe it should be added to the OS_RELEASE dict.

  7. g1itch commented on Jul 22, 2018

    @g1itch
    Collaborator

    @PeterSurda Gentoo/Calculate, Ubuntu:Xenial and Ubuntu:Trusy - on Travis CI.

  8. g1itch commented on Jul 22, 2018

    @g1itch
    Collaborator

    wow

  9. g1itch commented on Jul 22, 2018

    @g1itch
    Collaborator

    I really forgot Debian, excuse me please.
    Possible further changes:

    diff --git a/checkdeps.py b/checkdeps.py
    index f261c924..4115c5a8 100755
    --- a/checkdeps.py
    +++ b/checkdeps.py
    @@ -136,6 +136,8 @@ if prereqs:
     OPSYS = detectOS()
     CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER'
     for lhs, rhs in EXTRAS_REQUIRE.items():
    +    if OPSYS is None:
    +        break
         if rhs and any([
             EXTRAS_REQUIRE_DEPS[x][OPSYS]
             for x in rhs
    diff --git a/src/depends.py b/src/depends.py
    index 39f5e759..d284a11b 100755
    --- a/src/depends.py
    +++ b/src/depends.py
    @@ -29,6 +29,7 @@ logger.addHandler(handler)
     logger.setLevel(logging.ERROR)
     
     OS_RELEASE = {
    +    "Debian GNU/Linux".lower(): "Debian",
         "fedora": "Fedora",
         "opensuse": "openSUSE",
         "ubuntu": "Ubuntu",

    Maybe it was my mistake to agree with creation of OS_RELEASE dict.

  10. added a commit that references this issue on Jul 30, 2018
  11. added a commit that references this issue on Jan 17, 2019
    8fa171c
  12. added a commit that references this issue on May 9, 2019
    e8a6ae3
  13. g1itch commented on Jul 10, 2019

    @g1itch
    Collaborator

    Is this still actual?

  14. PeterSurda commented on Jul 10, 2019

    @PeterSurda
    MemberAuthor

    It still has at least one bug (after doing the checks, it doesn't always print "run apt-get blablblah", but I think that's a separate one.

  15. g1itch commented on Jul 10, 2019

    @g1itch
    Collaborator

    Perhaps it needs a separate test suit.

  16. self-assigned this
    on Jul 10, 2019
  17. dimyme commented on Nov 10, 2019

    @dimyme
    Contributor

    checkdeps does not catch all cases and is worded quite terribly with lots of nonsensical ` ] . and such garbage. will do a PR soon. 😭 🏞️ 🇳🇦

  18. added this to the v0.6.4 milestone on Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as it's supposed to

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions