After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726921 - Python 3: Fraction cannot be set as value in Caps
Python 3: Fraction cannot be set as value in Caps
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 1.2.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 726493 (view as bug list)
Depends on:
Blocks: 726922
Reported: 2014-03-23 14:51 UTC by Lubosz Sarnecki
Modified: 2014-04-26 08:16 UTC
See Also:
GNOME target: ---
GNOME version: ---

overrides: Import the _gi_gst module relative (834 bytes, patch)
2014-04-01 07:54 UTC, Thibault Saunier
committed Details | Review

Description Lubosz Sarnecki 2014-03-23 14:51:18 UTC
This minimal test fails with python3, but works with 2.

This exception is thrown:
RuntimeError: PyObject conversion to GValue failed

The same exception occurs in the overrides when this is used:
caps[0]["framerate"] = Gst.Fraction(1/1)
Comment 1 Thibault Saunier 2014-04-01 07:54:16 UTC
Created attachment 273382 [details] [review]
overrides: Import the _gi_gst module relative

We always expect it to be in the same directory and it fixes its import
with python3
Comment 2 Thibault Saunier 2014-04-01 08:02:17 UTC
Attachment 273382 [details] pushed as edd2136 - overrides: Import the _gi_gst module relative
Comment 3 Sebastian Dröge (slomo) 2014-04-26 08:16:20 UTC
*** Bug 726493 has been marked as a duplicate of this bug. ***