question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecation warnings in gstdec.py

See original GitHub issue
/usr/local/lib/python2.7/dist-packages/audioread/gstdec.py:126: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
/usr/local/lib/python2.7/dist-packages/audioread/gstdec.py:146: PyGIDeprecationWarning: MainLoop is deprecated; use GLib.MainLoop instead
  self.loop = GObject.MainLoop()

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smcvcommented, Apr 25, 2016

I’d merge #30 if it was my project. I don’t think it’s really worthwhile adding a version check, but if you wanted one, it would be:

if GLib.check_version(2, 32, 0) is None:
    ... # GLib is new
else:
    ... # GLib is old, the result of check_version() is a string explaining how
0reactions
sampsyocommented, Apr 25, 2016

That’s good enough for me. Thanks again for your advice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

warnings — Warning control — Python 3.11.1 documentation
Base category for warnings about deprecated features when those warnings are intended for other Python developers (ignored by default, unless triggered by ...
Read more >
What does DeprecationWarning mean when running Python
I can't confirm what is wrong about it. What is a DeprecationWarning ? python · deprecation-warning · Share.
Read more >
Deprecation warnings in Python code - Piccolo Blog
A look at how deprecation warnings can be implemented in Python code.
Read more >
Who should see Python deprecation warnings? - LWN.net
While PendingDeprecationWarning has always been filtered, DeprecationWarning was visible by default until the Python 2.7 and 3.2 releases. In a 2009 thread ...
Read more >
Python deprecation - DEV Community ‍ ‍
To let the warning refer to the caller, so you know exactly where you use deprecated code, you have to set stacklevel=2 ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found