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 684643 - python3 support
python3 support
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks: python3
 
 
Reported: 2012-09-23 01:27 UTC by zcarterc
Modified: 2013-03-30 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description zcarterc 2012-09-23 01:27:20 UTC
libxml2 lacks python3 support.
Comment 1 Mathieu Bridon 2012-11-06 05:42:05 UTC
I don't know if the whole API is covered, but there's the GObject Introspection bindings which are supposed to work with Python 3:

$ python3
Python 3.2.3 (default, Jun  8 2012, 05:40:07) 
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import libxml2
>>> libxml2
<gi.module.DynamicModule 'libxml2' from b'/usr/lib64/girepository-1.0/libxml2-2.0.typelib'>

Isn't that enough?
Comment 2 Dimitri John Ledkov 2012-11-10 00:23:32 UTC
http://stackoverflow.com/questions/6573819/install-libxml2-bindings-for-python3

Currently in ubuntu we use python3-lxml
Comment 3 Dimitri John Ledkov 2012-11-10 00:24:49 UTC
double check, and maybe everything is ok these days.
Comment 4 Daniel Veillard 2013-03-30 14:58:15 UTC
It took 3 days of work but I have just commited the changes needed for
libxml2 to build and work on python3 while not changing for python2.
It is in git, it will be in the next release,

  see https://git.gnome.org/browse/libxml2/commit/?id=b8e3f80da742404bffbec2a56c0a91b829132b6f

and the 6 following patches

Daniel