Package: python3-lxml Version: 3.4.4-1+b1 Severity: normal Dear Maintainer,
When trying to perform the following with Python 3: from lxml.html.soupparser import fromstring The following error is raised: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/lxml/html/soupparser.py", line 7, in <module> from BeautifulSoup import \ ImportError: No module named 'BeautifulSoup' According to StackOverflow <http://stackoverflow.com/q/14042023>, this is because the currently packaged version of python3-lxml depends on version 3 of BeautifulSoup. However, Debian ships version 4 of that module (python3-bs4). According to the same source, recent lxml versions know how to use version 4 of BeautifulSoup, see e.g., <https://github.com/lxml/lxml/blob/master/src/lxml/html/soupparser.py>. I think this change should be ported to the Debian version (or the Debian version updated) so that python3-lxml works with python3-bs4. -- Antoine Amarilli -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (650, 'testing'), (600, 'experimental'), (600, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3-lxml depends on: ii libc6 2.19-22 ii libxml2 2.9.2+zdfsg1-4 ii libxslt1.1 1.1.28-2+b2 ii python3 3.4.3-6 ii zlib1g 1:1.2.8.dfsg-2+b1 Versions of packages python3-lxml recommends: ii python3-bs4 4.4.0-1 ii python3-html5lib 0.999-3 Versions of packages python3-lxml suggests: pn python-lxml-doc <none> pn python3-lxml-dbg <none> -- no debconf information