You are not logged in.

#1 2013-11-03 11:06:47

Morn
Member
Registered: 2012-09-02
Posts: 886

[SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

The libxml2 2.9.1.-4 update has broken Python 3. E.g. if you start newsfeed (from AUR), you get:

  File "newsfeed", line 19, in <module>
    from newsfeed import *
  File "/home/martin/git/3NewsFeed/newsfeed.py", line 30, in <module>
    import feedparser, rssfinder, dlthreads, play_wav
  File "/home/martin/git/3NewsFeed/feedparser.py", line 199, in <module>
    xml.sax.make_parser(PREFERRED_XML_PARSERS) # test for valid parsers
  File "/usr/lib/python3.3/xml/sax/__init__.py", line 78, in make_parser
    return _create_parser(parser_name)
  File "/usr/lib/python3.3/xml/sax/__init__.py", line 102, in _create_parser
    drv_module = __import__(parser_name,{},{},['create_parser'])
  File "/usr/lib/python3.3/site-packages/drv_libxml2.py", line 68
    except ImportError, e:
                      ^
SyntaxError: invalid syntax

Reverting to libxml2 2.9.1-3 helps, but I still wanted to report this somewhere.

Last edited by Morn (2013-11-04 22:01:58)

Offline

#2 2013-11-03 11:11:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

https://projects.archlinux.org/svntogit … fc24f207ee

Bugs should be reported in the bugtracker, not on the forum.

Offline

#3 2013-11-04 13:57:51

heftig
Developer
From: Germany
Registered: 2010-04-19
Posts: 159

Re: [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

How exactly is this worse than before? We used to have no py3 module at all.

And does it work after you run "2to3 -w /usr/lib/python3.3/site-packages/{drv_,}libxml2.py"?

Last edited by heftig (2013-11-04 14:01:24)

Offline

#4 2013-11-04 14:06:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

There's an open bug report https://bugs.archlinux.org/task/37623

Offline

#5 2013-11-04 15:37:10

pilotkeller
Member
From: Canada
Registered: 2011-12-22
Posts: 513
Website

Re: [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

As a workaround you can downgrade to libxml2-2.9.1-3

I used:

sudo pacman -U /var/cache/pacman/pkg/libxml2-2.9.1-3-x86_64.pkg.tar.xz

Should be something similar on your system.

Offline

#6 2013-11-04 22:01:42

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

2.9.1-5 is out now with a bug fix.

Offline

Board footer

Powered by FluxBB