Bug 2145079

Summary: rbt post is broken with Python 3.11
Product: [Fedora] Fedora Reporter: Elliott Sales de Andrade <quantum.analyst>
Component: RBToolsAssignee: Jonathan Wright <jonathan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: jonathan, patrick
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RBTools-4.0-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-13 01:31:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2116084    
Bug Blocks:    

Description Elliott Sales de Andrade 2022-11-23 04:17:04 UTC
Description of problem:
rbtools is broken on Python 3.11 because it uses removed functionality.


Version-Release number of selected component (if applicable):
RBTools-2.0.1-4.fc37.noarch


Steps to Reproduce:
1. rbt post


Actual results:
Traceback (most recent call last):
  File "/usr/bin/rbt", line 33, in <module>
    sys.exit(load_entry_point('RBTools==2.0.1', 'console_scripts', 'rbt')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/rbtools/commands/main.py", line 124, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/usr/lib/python3.11/site-packages/rbtools/commands/__init__.py", line 750, in run_from_argv
    argspec = inspect.getargspec(self.main)
              ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?


Expected results:
rbt post posts to the configured reviewboard instance.


Additional info:
pip installing the current version as a user works.

Comment 1 Fedora Update System 2022-12-07 03:36:54 UTC
FEDORA-2022-0c99dfdc2b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0c99dfdc2b

Comment 2 Fedora Update System 2022-12-08 02:09:48 UTC
FEDORA-2022-0c99dfdc2b has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-0c99dfdc2b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0c99dfdc2b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2023-01-02 17:43:30 UTC
FEDORA-2023-e0cf51a956 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e0cf51a956

Comment 4 Fedora Update System 2023-01-03 01:09:25 UTC
FEDORA-2023-e0cf51a956 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-e0cf51a956`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e0cf51a956

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-01-04 14:40:05 UTC
FEDORA-2023-ec49d8e7f5 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec49d8e7f5

Comment 6 Fedora Update System 2023-01-05 01:26:09 UTC
FEDORA-2023-ec49d8e7f5 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ec49d8e7f5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec49d8e7f5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-01-13 01:31:06 UTC
FEDORA-2023-ec49d8e7f5 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.