Menu

#468 DeprecationWarning: inspect.getargspec() is deprecated

libSBML-5.17.0
closed
nobody
None
2018-11-30
2018-11-25
Daniel
No

Hi,

When importing python-libsml 5.17.0 with Python 3.6.7 and warnings enabled, I get 3754 lines of the following deprecation warnings:

/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/libsbml/__init__.py:379: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/libsbml/__init__.py:401: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/libsbml/__init__.py:424: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()

This is somewhat inconvenient during debugging when I want to see all other warnings.

To reproduce: python3 -c "import warnings; warnings.simplefilter('always'); import libsbml"

Discussion

  • Sarah Keating

    Sarah Keating - 2018-11-30

    These functions have been corrected to remove the deprecation warnings. This will be available in the forthcoming release.

     
    👍
    1
  • Sarah Keating

    Sarah Keating - 2018-11-30
    • status: open --> closed
    • Priority: -->
     

Log in to post a comment.