- Package:
- python3-hpilo
- Source:
- python3-hpilo
- Submitter:
- William Desportes
- Date:
- 2025-07-26 19:07:02 UTC
- Severity:
- normal
- Tags:
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
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 []
Hi Rebecca, 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 :)
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/7edca6db8711916f428f0a12703a4de6d5c8ecae ------------------------------------------------------------------------ Merge branch 'bug-fix' into 'master' Make `hpilo_cli get_product_name` Python3-compatible (Closes: #1109265) See merge request python-team/packages/python-hpilo!1 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1109265
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 Add patch to fix two Pyton 3 -compatibility issues. ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1109265
We believe that the bug you reported is fixed in the latest version of
python-hpilo, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1109265@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Otto Kekäläinen <otto@debian.org> (supplier of updated python-hpilo package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 26 Jul 2025 11:02:42 -0700
Source: python-hpilo
Architecture: source
Version: 4.4.3-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Otto Kekäläinen <otto@debian.org>
Closes: 1109265
Changes:
python-hpilo (4.4.3-5) unstable; urgency=medium
.
[ Alexandre Detiste ]
* Remove trailing comma from Maintainer: field that confused UDD & the
Tracker
.
[ Giacomo Paviano ]
* Make `hpilo_cli get_product_name` Python3-compatible (Closes: #1109265)
Checksums-Sha1:
22034c5d71e5b86a0a94aef691391f9d794de81c 2154 python-hpilo_4.4.3-5.dsc
aa5f9dd2306a5c204320aa8e8566cac2c8d71522 4260 python-hpilo_4.4.3-5.debian.tar.xz
dadf914bf87925951a46c3fb296760b09e4fd802 7244 python-hpilo_4.4.3-5_source.buildinfo
Checksums-Sha256:
fcf113d22c9b1de97945cd121f31c5112e4d72c5fe28dceefa1efa304dd9d746 2154 python-hpilo_4.4.3-5.dsc
6aa232cfc57b7dd25ee8294d1d297c3caa94e1f99f48987f0d89c43e04e68c2d 4260 python-hpilo_4.4.3-5.debian.tar.xz
daeeab8bdd35d85c24ff02166c18046955e6e5541d1a3e82f02a7ab8ed0a8784 7244 python-hpilo_4.4.3-5_source.buildinfo
Files:
46448d7009476daf275d3de6d6c9aefd 2154 python optional python-hpilo_4.4.3-5.dsc
49bc0841d4e45035a2a36cc08e1815e4 4260 python optional python-hpilo_4.4.3-5.debian.tar.xz
c2ece7f1a35e39af9bf02e6101d3117c 7244 python optional python-hpilo_4.4.3-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmiFJA4ACgkQvthEn87o
2ogyaxAAsJFZmhmV+EFBn45aBMGOyKKoIBA4iK3yQ9SvqyeE/42GbDb8+zfnZMsp
h6UFOpJ4whJvpF36ri5xzcZFLO470yPBDHOmj9QMoEX7dpw0gBcRKFtho30GpXdf
y8uE5wDyIVQaqDvQk47jtyP1yO+x8PR9KHknXCBKaTOFlBw8uG6LREsmsiGuW0OB
ho35rX0LgjAOSQ74znDDThI0YAbYyF0a4oEmHjemGHhhNYNN/8g1Uvuxujvf9gl0
w0eDNhsyd2Ty/dNM/5CcHMOIQHf0A8p3mVM7GSsf7EI+WI0VohbJxkF8VjybBTHJ
3n684bfaoeNPNfbM8FRvBfE4mNqKn2q6xd97SFAZjHLv+Cd4F8cwA2Cfs2ei7/0x
FlCzUb5Hl+SVLIkJ/6hlC7jsWFFOx6oe5vMJe38ESer//dhcbFdl2TsQOdLy74aL
bvQsukCJjC/OLKuVPVM/vtrwibpH9wuwfyEya9whe7GAH2yB52RVCOdiV4cs0MGM
vCwUbTk2zdYfH9Cjp+Prc3WMv83iRQ4NJNi4E8Y8DBUfIPI8KPrZA+MXhsD0YZe2
De25aK/LgvmlPlDz769KkHOeLUpr/fuhLTx8rtA+/HgRNVg5KMFl21KKX6GdTSiX
ZAPw0pIeo8I5eRfB3WbdWLslhaXjUc3/JrHxN10kvJaCxLjeln8=
=gzrd
-----END PGP SIGNATURE-----