Opened 12 months ago

Last modified 12 months 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:
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 (2)

comment:1 Changed 12 months ago by jmroot (Joshua Root)

Owner: set to dbevans
Status: newassigned

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?

comment:2 Changed 12 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)
Last edited 12 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.