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#17281 - [python-lxml] should have optdepends=beautiful-soup

Attached to Project: Arch Linux
Opened by Marti (intgr) - Wednesday, 25 November 2009, 17:03 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 06 February 2010, 16:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The lxml Python module from python-lxml provides a way to switch out its XML parser backend to the Beautiful Soup "HTML tag soup" parsing library. Trying to access this feature of lxml fails with an ImportError.

I suggest adding an optional dependency:
optdepends=('beautiful-soup: support for parsing not well formed HTML')

Steps to reproduce:
% sudo pacman -Rn beautiful-soup
% python
Python 2.6.4 (r264:75706, Oct 27 2009, 06:25:13)
>>> import lxml.html.soupparser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/lxml/html/soupparser.py", line 7, in <module>
from BeautifulSoup import \
ImportError: No module named BeautifulSoup

This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 06 February 2010, 16:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-lxml 2.2.4-2
Comment by Thomas Dziedzic (tomd123) - Saturday, 06 February 2010, 15:56 GMT
I can confirm this, patched version of the suggested fix attached.
Comment by Andrea Scarpino (BaSh) - Saturday, 06 February 2010, 16:15 GMT
implemented, I must say to Ronald to move python-beaufiulsoup to [extra] now

Loading...