DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead

Bug #1814288 reported by Matt Riedemann on 2019-02-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sean mooney

Bug Description

There is a deprecation warning generated from this code:

which generates a lot of warnings in nova's py3* test jobs:

Captured stderr:
    b'/home/osboxes/git/nova/.tox/py35/lib/python3.5/site-packages/migrate/versioning/script/ DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead'
    b' if not inspect.getargspec(script_func)[0]:'

Matt Riedemann (mriedem) on 2019-02-01
Changed in sqlalchemy-migrate:
status: New → Confirmed
importance: Undecided → Medium
sean mooney (sean-k-mooney) wrote :
Changed in sqlalchemy-migrate:
assignee: nobody → sean mooney (sean-k-mooney)
Matt Riedemann (mriedem) on 2019-09-17
Changed in sqlalchemy-migrate:
status: Confirmed → In Progress

Submitter: Zuul
Branch: master

commit 5d1f322542cd8eb42381612765be4ed9ca8105ec
Author: Sean Mooney <email address hidden>
Date: Tue Sep 17 02:05:19 2019 +0100

    remove inspect.getargspec deprecation warning

    In python 3 inspect.getargspec is deprecated and
    replaced with inspect.getfullargspec which does not
    exist on python 2.7. This change uses six to select
    the correct version to use based on the python version

    Change-Id: I234a3509ff850d0c5616ebcfa240212b03db9e76
    Closes-Bug: #1814288

Changed in sqlalchemy-migrate:
status: In Progress → Fix Released

This issue was fixed in the x/sqlalchemy-migrate 0.13.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers