Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42254 - [python-feedparser] libxml2 python3 SyntaxError

Attached to Project: Arch Linux
Opened by Miguel de Val-Borro (migueldvb) - Sunday, 05 October 2014, 02:48 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 09 October 2014, 01:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

parsing in python with the libxml2 parser fails with syntax error

Additional info:
* package version(s)

2.9.1-5

Steps to reproduce:

Python 3.4.1 (default, May 19 2014, 17:23:49)
Type "copyright", "credits" or "license" for more information.

IPython 2.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import feedparser
File "/usr/lib64/python2.7/site-packages/drv_libxml2.py", line 68
except ImportError, e:
This task depends upon

Closed by  Eric Belanger (Snowman)
Thursday, 09 October 2014, 01:21 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Sunday, 05 October 2014, 05:14 GMT
Why are you using python3 to import a python2 file?
Comment by Miguel de Val-Borro (migueldvb) - Monday, 06 October 2014, 01:07 GMT
The error occurs when I import feedparser in python 3.4
Comment by Doug Newgard (Scimmia) - Monday, 06 October 2014, 01:14 GMT
So the problem here is that python-feedparser tries to use libxml2, which is only built for python2.
Comment by Miguel de Val-Borro (migueldvb) - Thursday, 09 October 2014, 00:59 GMT
Sorry, this was a multiple python version issue due to a wrong PYTHONPATH

Loading...