Project

General

Profile

Actions

Bug #24615

closed

rudder-cli is not usable in python 3.11 and newer

Added by Félix DALLIDET 8 months ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

root@server:/etc/sysctl.d# /usr/bin/rudder-cli nodes list --token=$(cat /var/rudder/run/api-token)
Traceback (most recent call last):
  File "/usr/bin/rudder-cli", line 435, in <module>
    params = inspect.getargspec(function).args[1:-1]
             ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

It seems like the function has been deprecated since python 3.0, and removed in 3.11 https://docs.python.org/3/whatsnew/3.11.html#removed

Actions #1

Updated by Félix DALLIDET 8 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Félix DALLIDET 8 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-api-client/pull/50
Actions #3

Updated by Félix DALLIDET 8 months ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Félix DALLIDET 7 months ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Vincent MEMBRÉ 7 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.3.14, 8.0.8 and 8.1.1 which were released today.

Actions

Also available in: Atom PDF