Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-8222

Outdated NETADDR library causes "SyntaxWarning" messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • quay-v3.10.0, quay-v3.11.0, quay-v3.12.0, quay-v3.13.0
    • quay
    • Improvement
    • False
    • None
    • False
    • User Experience

      With current Quay version (3.13) the startup logs have a lot of "SyntaxWarning" messages which may scare users.

      /app/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
      quotatotalworker stderr | /app/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="? manifestsubjectbackfillworker stderr | /app/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
      reconciliationworker stderr | /app/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="? 

      Several components raising such warning and a check on the upstream netaddr git-repo has a fix and PyPI repo has version 1.3.0 of netaddr which includes that fix.

      requirements.txt still lists "netaddr==0.7.19" which does not include the fix, therefore asking to get the library updated to avoid user confusion

      Those messages do not seem to indicate an issue with the code as of now, but Python may eventually raise errors from that type mismatched comparison.

              Unassigned Unassigned
              rhn-support-ableisch Andreas Bleischwitz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: