[Bug 732131] cerbero: Add support for Arch Linux
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Jun 24 06:37:12 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=732131
GStreamer | packages | git
--- Comment #3 from Lubosz Sarnecki <lubosz at gmail.com> 2014-06-24 13:37:07 UTC ---
I experimented with 2to3 and fixed some exceptions to support Python3.
Mainly these are syntax related and also point out some encoding issues where
Python2 is not as restrictive.
Luckily most changes are backwards compatible with Python 2 (at least with
recent versions, I guess). For the remaining changes one have to branch the
code.
The main problem I currently have to finish Python 3 support is related to
inheritance. Things changed here with Python 3.
Maybe this is related to Source class inheriting from "object"
1. The recipe checker does not inherit properly:
WARNING: Error loading recipe in file
/home/bmonkey/workspace/gst/cerbero/recipes/nettle/nettle.recipe 'Recipe'
object has no attribute 'replace_name_and_version'
2. Super class members cannot be obtained with getattr in the Python 3
inheritance model anymore:
File "./cerbero/build/oven.py", line 139, in _cook_recipe
stepfunc = getattr(recipe, step)
AttributeError: 'Recipe' object has no attribute 'fetch'
This stackoverflow post points out that this is bad practice
http://stackoverflow.com/questions/9241251/getattr-function-problems-python-3
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list