Changes

From Gramps

GEPS 031: Python 3 support

817 bytes added, 18:18, 7 November 2012
no edit summary
== Guideline ==
No python 2.7 only constructs should be present, and no python 3.2 only constructs should be present.
 
== Can I work with both pythons?==
On the same family tree, normally not! For python3, bsddb is no longer a core package. You need to install python3-bsddb, and that will normally be a more recent version than what is present in python 2.7.
 
So, once you open a family tree with python3, you will not be allowed to open it with python 2.7. The only way to open it with python 2.7 is using the bsddb3 option of Gramps, and installing from source the bsddb3 package for python 2.7 that is as current as the one given in python3
== How? ==
* to test on python version, use ''if sys.version_info[0] < 3:'' for consistency with the other patches.
== Requirements ==
=== Ubuntu 12.10 ===
Python 3.2.3 ships with Ubuntu 12.10. To run Gramps, you will also need the packages:
# python3-gi: gobject introspection
# python3-cairo : This is needed to have ''import cairo'' work
# python3-bsddb3: This is needed to have ''import bsddb3'' work
== Related Gramps Bugs ==

Navigation menu