Bug 2251911 - python-beautifulsoup4 buill fails Python 3.13 rebuild and rawhide due to libxml2 2.12 upgrade
Summary: python-beautifulsoup4 buill fails Python 3.13 rebuild and rawhide due to libx...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-beautifulsoup4
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-28 11:57 UTC by Karolina Surma
Modified: 2023-12-16 15:45 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-12-16 15:45:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-28 11:57:47 UTC
python-beautifulsoup4 fails to build with Python 3.13.0a2.

This report is automated and not very verbose, but we'll try to get back here with details.

______________ TestLXMLXMLTreeBuilder.test_find_by_prefixed_name _______________

self = <bs4.tests.test_lxml.TestLXMLXMLTreeBuilder object at 0x7f86f8955d60>

        def test_find_by_prefixed_name(self):
            doc = """<?xml version="1.0" encoding="utf-8"?>
    <Document xmlns="http://example.com/ns0"
        xmlns:ns1="http://example.com/ns1"
        xmlns:ns2="http://example.com/ns2"
        <ns1:tag>foo</ns1:tag>
        <ns1:tag>bar</ns1:tag>
        <ns2:tag key="value">baz</ns2:tag>
    </Document>
    """
            soup = self.soup(doc)
    
            # There are three <tag> tags.
>           assert 3 == len(soup.find_all('tag'))
E           AssertionError

bs4/tests/__init__.py:1117: AssertionError
=========================== short test summary info ============================
FAILED bs4/tests/test_lxml.py::TestLXMLXMLTreeBuilder::test_find_by_prefixed_name
=================== 1 failed, 649 passed, 6 skipped in 3.19s ===================

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692169-python-beautifulsoup4/

For all our attempts to build python-beautifulsoup4 with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-beautifulsoup4/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Terje Røsten 2023-12-03 09:53:25 UTC
Seems to be this bug:

 https://bugs.launchpad.net/beautifulsoup/+bug/2045481

I think it fails in rawhide too:

 https://koschei.fedoraproject.org/package/python-beautifulsoup4

So it's not related to python 3.13 as such.


Note You need to log in before you can comment on or make changes to this bug.