goodrobots / visiond

Python/Gstreamer based project to stream video from embedded system cameras in various ways
MIT License
9 stars 3 forks source link

Fix old python2 code #1

Closed fnoop closed 4 years ago

fnoop commented 4 years ago

visiond has been migrated to python3, but some warnings remain over legacy code:

./visiond:29: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
Starting maverick-visiond
./visiond:623: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
  Config = ConfigParser.SafeConfigParser()
./visiond:436: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
  GObject.MainLoop().run()