Opened 19 months ago
Last modified 6 weeks ago
#67351 assigned defect
Can't import farstream in python
Reported by: | Skorpeo | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | farstream |
Description
I have macos ventura 13.2.1 and when I install this freeswitch port it installs but I can't import it in python. I am using python3.11 which is installed with the port.
Change History (3)
comment:1 Changed 19 months ago by jmroot (Joshua Root)
Owner: | set to dbevans |
---|---|
Status: | new → assigned |
comment:2 Changed 19 months ago by Skorpeo
hi, that is correct there are no bindings, its through glib introspection. Nonetheless, usually I was able to use it python using something like but it gives an error that it can't find Farstream:
import gi gi.require_version('Farstream', '0.2') gi.require_version('Gst', '1.0') gi.require_version('GstVideo', '1.0') gi.require_version('Gtk', '3.0') gi.require_version('Gdk', '3.0') from gi.repository import GLib, GObject, Gtk, Gdk from gi.repository import Farstream, Gst, GstVideo Gst.init(sys.argv)
comment:3 Changed 6 weeks ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
Note: See
TracTickets for help on using
tickets.
The farstream port doesn't mention anything about python bindings in its description. You should be able to use it via ctypes like any other library. Did you see something that gave you the impression it should be usable from python in some other way?