• Bug#1109265: python3-hpilo: does not work for Trixie with Python 3

    From William Desportes@21:1/5 to All on Mon Jul 14 14:00:02 2025
    Package: python3-hpilo
    Version: 4.4.3-1
    Severity: grave
    Tags: sid, trixie
    Found: 4.4.3-2

    While running the CLI I have an error:

    $ hpilo_cli 192.168.1.2 get_product_name user_login=Administrator password=xxxxxx admin_priv=true

    /usr/bin/hpilo_cli:269: SyntaxWarning: invalid escape sequence '\s'
    doc = re.sub('\s+', ' ', doc)
    Traceback (most recent call last):
    File "/usr/bin/hpilo_cli", line 334, in <module>
    main()
    ~~~~^^
    File "/usr/bin/hpilo_cli", line 124, in main
    hpilo_help(None, None, method, None, 2)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/bin/hpilo_cli", line 254, in hpilo_help
    func = getattr(hpilo.Ilo, value).im_func
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'function' object has no attribute 'im_func'

    This is reported upstream: https://github.com/seveas/python-hpilo/issues/289 The escape sequence might be due to: https://github.com/seveas/python-hpilo/issues/296 reported as https://bugs.debian.org/1085918

    --
    William Desportes

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rebecca N. Palmer@21:1/5 to All on Thu Jul 17 14:50:01 2025
    Control: tags -1 upstream patch

    This appears to be easy to fix, but this fix has not been tested (this
    package does not run its tests, and I don't know if they'd cover this if
    it did).

    While upstream closed their bug, they don't appear to have actually
    fixed it; the same fix would probably work there.

    This package has an existing debian/4.4.3-4 tag in Salsa that was never uploaded (and given this bug, probably shouldn't be uploaded as-is).
    Hence, we *might* want to call this version 4.4.3-5.

    (It's also missing the debian/4.4.3-3 tag, which should be on 609ef47a4cc827f6152fa191ed531e6ac8a16f51.)

    --- a/hpilo_cli
    +++ b/hpilo_cli
    @@ -251,9 +251,9 @@ def hpilo_help
    else:
    if value in ilo_methods:
    import re, textwrap
    - func = getattr(hpilo.Ilo, value).im_func
    - code = func.func_code
    + func = getattr(hpilo.Ilo, value)
    + code = func.__code__
    args = ''
    if code.co_argcount > 1:
    args = code.co_varnames[:code.co_argcount]
    - defaults = func.func_defaults or []
    + defaults = func.__defaults__ or []

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Jul 17 14:50:01 2025
    Processing control commands:

    tags -1 upstream patch
    Bug #1109265 [python3-hpilo] python3-hpilo: does not work for Trixie with Python 3
    Added tag(s) patch and upstream.

    --
    1109265: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109265
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrea Pappacoda@21:1/5 to rebecca_palmer@zoho.com on Thu Jul 17 15:50:02 2025
    Control: tags -1 pending

    Hi Rebecca,

    On Thu, 17 Jul 2025 11:54:16 +0100 "Rebecca N. Palmer" <rebecca_palmer@zoho.com> wrote:
    This appears to be easy to fix, but this fix has not been tested (this package does not run its tests, and I don't know if they'd cover this if
    it did).

    Giacomo Paviano is already working on this. He has submitted an initial
    patch at <https://salsa.debian.org/python-team/packages/python-hpilo/-/merge_requests/1>,
    but he's now working on upstreaming it as well.

    It's his first contribution ever to open source, and he's being helped
    here at DebConf. Please give him some time to work on this!

    Bye :)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Jul 17 15:50:02 2025
    Processing control commands:

    tags -1 pending
    Bug #1109265 [python3-hpilo] python3-hpilo: does not work for Trixie with Python 3
    Added tag(s) pending.

    --
    1109265: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109265
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?T3R0byBLZWvDpGzDpGluZW4=?@21:1/5 to All on Sat Jul 26 20:10:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1109265 in python-hpilo reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-hpilo/-/commit/190265463e04162fb66befa00fdf035319b7a7e4

    ------------------------------------------------------------------------
    Make `hpilo_cli get_product_name` Python3-compatible (Closes: #1109265)

    Add patch to fix two Pyton 3 -compatibility issues. ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1109265

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Jul 26 20:10:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1109265 [python3-hpilo] python3-hpilo: does not work for Trixie with Python 3
    Ignoring request to alter tags of bug #1109265 to the same tags previously set

    --
    1109265: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109265
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Jul 26 21:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Sat, 26 Jul 2025 19:05:44 +0000
    with message-id <E1ufkDI-00BuAR-2j@fasolo.debian.org>
    and subject line Bug#1109265: fixed in python-hpilo 4.4.3-5
    has caused the Debian Bug report #1109265,
    regarding python3-hpilo: does not work for Trixie with Python 3
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1109265: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109265
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 14 Jul 2025 11:56:17 +0000 X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
    (2024-03-25) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-14.1 required=4.0 tests=ARC_SIGNED,ARC_VALID,
    BAYES_00,BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
    DKIM_VALID_EF,FOURLA,HAS_PACKAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,
    RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,
    RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,
    SPF_HELO_NONE,SPF_PASS,WORD_WITHOUT_VOWELS autolearn=ham
    autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 29; hammy, 124; neutral, 24; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--Trixie,
    0.000-+--Traceback, 0.000-+--syntaxwarning, 0.000-+--SyntaxWarning Return-path: