Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1716498 - python-epub fails to build with Python 3.8
Summary: python-epub fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-epub
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Athos Ribeiro
QA Contact: Fedora Extras Quality Assurance
URL: https://copr.fedorainfracloud.org/cop...
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-06-03 14:38 UTC by Miro Hrončok
Modified: 2020-04-12 22:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-10 18:26:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-06-03 14:38:19 UTC
See https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-epub/ for actual logs. This report is automated and not very verbose, but feel free to ping me for help.

Comment 1 Karthikeyan Singaravelan 2019-06-29 05:10:01 UTC
Looking into the test failures this could be due to xml preserving the order of attributes. The relevant change was introduced in https://bugs.python.org/issue34160.

Comment 2 Miro Hrončok 2019-07-10 13:06:03 UTC
That indeed looks like the case:


======================================================================
FAIL: test_as_xml_element (test.test_opf.TestManifest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_opf.py", line 543, in test_as_xml_element
    self.assertEqual(xml_output, xml_input)
AssertionError: '<man[140 chars]xml" fallback="item2.5" required-namespace="ht[601 chars]est>' != '<man[140 chars]xml" required-namespace="http://happy.com/ns/h[601 chars]est>'
  <manifest>
      <item id="css1" href="happy.css" media-type="text/css"/>
-     <item id="item2" href="Doc1.less-hpy" media-type="text/less-happy+xml" fallback="item2.5" required-namespace="http://happy.com/ns/happy2/" fallback-style="css1"/>
?                                                                           -------------------
+     <item id="item2" href="Doc1.less-hpy" media-type="text/less-happy+xml" required-namespace="http://happy.com/ns/happy2/" fallback="item2.5" fallback-style="css1"/>
?                                                                                                                             +++++++++++++++++++
-     <item id="item2.5" href="Doc1.htm" media-type="application/xhtml+xml" fallback="item3" required-namespace="http://www.w3.org/1999/xhtml" required-modules="ruby, server-side-image-map"/>
?                                                                          -----------------
+     <item id="item2.5" href="Doc1.htm" media-type="application/xhtml+xml" required-namespace="http://www.w3.org/1999/xhtml" required-modules="ruby, server-side-image-map" fallback="item3"/>
?                                                                                                                                                                           +++++++++++++++++
-     <item id="item1" href="Doc1.hpy" media-type="text/happy+xml" fallback="item2" required-namespace="http://happy.com/ns/happy1/"/>
?                                                                 -----------------
+     <item id="item1" href="Doc1.hpy" media-type="text/happy+xml" required-namespace="http://happy.com/ns/happy1/" fallback="item2"/>
?                                                                                                                  +++++++++++++++++
      <item id="item4" href="Doc2.hpy" media-type="text/happy+xml" required-namespace="http://happy.com/ns/happy1/" fallback-style="css1"/>
      <item id="item3" href="Doc1.dtb" media-type="application/x-dtbook+xml"/>
  </manifest>

======================================================================
FAIL: test_as_xml_document (test.test_opf.TestOpf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_opf.py", line 680, in test_as_xml_document
    self.assertEqual(xml_input, xml_output)
AssertionError: '<?xm[24 chars]kage unique-identifier="BookId" version="2.0" [2029 chars]age>' != '<?xm[24 chars]kage version="2.0" unique-identifier="BookId" [2029 chars]age>'
  <?xml version="1.0" ?>
- <package unique-identifier="BookId" version="2.0" xmlns="http://www.idpf.org/2007/opf">
?                                    --------------
+ <package version="2.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">
?         ++++++++++++++
      <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
          <dc:title xml:lang="en">Testing Epub</dc:title>
          <dc:creator opf:role="aut">Florian Strzelecki</dc:creator>
          <dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:477d1a82-a70d-4ee5-a0ff-0dddc60fd2bb</dc:identifier>
          <dc:language>en</dc:language>
-         <meta content="0.4.2" name="Sigil version"/>
+         <meta name="Sigil version" content="0.4.2"/>
      </metadata>
      <manifest>
-         <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
?                             ---------
+         <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
?              +++++++++
-         <item href="Text/Section0004.xhtml" id="Section0004.xhtml" media-type="application/xhtml+xml"/>
?                                            -----------------------
+         <item id="Section0004.xhtml" href="Text/Section0004.xhtml" media-type="application/xhtml+xml"/>
?              +++++++++++++++++++++++
-         <item href="Text/Section0002.xhtml" id="Section0002.xhtml" media-type="application/xhtml+xml"/>
?                                            -----------------------
+         <item id="Section0002.xhtml" href="Text/Section0002.xhtml" media-type="application/xhtml+xml"/>
?              +++++++++++++++++++++++
-         <item href="Text/Section0001.xhtml" id="Section0001.xhtml" media-type="application/xhtml+xml"/>
?                                            -----------------------
+         <item id="Section0001.xhtml" href="Text/Section0001.xhtml" media-type="application/xhtml+xml"/>
?              +++++++++++++++++++++++
-         <item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml"/>
?                                      -----------------
+         <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml"/>
?              +++++++++++++++++
-         <item href="Text/Section0003.xhtml" id="Section0003.xhtml" media-type="application/xhtml+xml"/>
?                                            -----------------------
+         <item id="Section0003.xhtml" href="Text/Section0003.xhtml" media-type="application/xhtml+xml"/>
?              +++++++++++++++++++++++
-         <item href="Text/introduction.xhtml" id="introduction.xhtml" media-type="application/xhtml+xml"/>
?                                             ------------------------
+         <item id="introduction.xhtml" href="Text/introduction.xhtml" media-type="application/xhtml+xml"/>
?              ++++++++++++++++++++++++
      </manifest>
      <spine toc="ncx">
          <itemref idref="cover.xhtml"/>
          <itemref idref="introduction.xhtml"/>
          <itemref idref="Section0001.xhtml"/>
          <itemref idref="Section0002.xhtml"/>
          <itemref idref="Section0003.xhtml"/>
          <itemref idref="Section0004.xhtml"/>
      </spine>
      <guide>
-         <reference href="Text/introduction.xhtml" title="Preface" type="preface"/>
-         <reference href="Text/cover.xhtml" title="Cover" type="cover"/>
-         <reference href="Text/Section0001.xhtml" title="Text" type="text"/>
-         <reference href="Text/Section0002.xhtml" title="Text" type="text"/>
-         <reference href="Text/Section0003.xhtml" title="Text" type="text"/>
-         <reference href="Text/Section0004.xhtml" title="Text" type="text"/>
+         <reference type="preface" title="Preface" href="Text/introduction.xhtml"/>
+         <reference type="cover" title="Cover" href="Text/cover.xhtml"/>
+         <reference type="text" title="Text" href="Text/Section0001.xhtml"/>
+         <reference type="text" title="Text" href="Text/Section0002.xhtml"/>
+         <reference type="text" title="Text" href="Text/Section0003.xhtml"/>
+         <reference type="text" title="Text" href="Text/Section0004.xhtml"/>
      </guide>
  </package>

======================================================================
FAIL: test_as_xml_element (test.test_ncx.TestNavList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 492, in test_as_xml_element
    self.assertEqual(nav_list.as_xml_element().toxml(),
AssertionError: '<navList id="testid" class="some_class"><navLabel [512 chars]ist>' != '<navList class="some_class" id="testid"><navLabel [512 chars]ist>'
Diff is 1931 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_as_xml_element (test.test_ncx.TestNavPoint)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 395, in test_as_xml_element
    self.assertEqual(nav_point.as_xml_element().toxml(),
AssertionError: '<navPoint id="point5" class="some_class" playOrder=[497 chars]int>' != '<navPoint class="some_class" id="point5" playOrder=[497 chars]int>'
Diff is 1185 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_as_xml_element (test.test_ncx.TestNavTarget)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 470, in test_as_xml_element
    self.assertEqual(nav_target.as_xml_element().toxml(),
AssertionError: '<navTarget id="testid" class="some_class" value="5" [200 chars]get>' != '<navTarget class="some_class" id="testid" playOrder=[200 chars]get>'
Diff is 675 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_as_xml_document (test.test_ncx.TestNcx)
Check if ncx.as_xml_document reproduce a good xml.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 583, in test_as_xml_document
    self.assertEqual(xml_output, xml_input)
AssertionError: '<?xm[20 chars]<ncx xmlns="http://www.daisy.org/z3986/2005/nc[2303 chars]ncx>' != '<?xm[20 chars]<ncx version="2005-1" xml:lang="en-US" xmlns="[2303 chars]ncx>'
  <?xml version="1.0" ?>
- <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en-US">
+ <ncx version="2005-1" xml:lang="en-US" xmlns="http://www.daisy.org/z3986/2005/ncx/">
      <head>
-         <meta name="dtb:uid" content="org-example-5059463624137734586"/>
?              ---------------
+         <meta content="org-example-5059463624137734586" name="dtb:uid"/>
?                                                        +++++++++++++++
-         <meta name="dtb:depth" content="2"/>
-         <meta name="dtb:totalPageCount" content="3907"/>
-         <meta name="dtb:maxPageNumber" content="7814"/>
-         <meta name="dtb:generator" content="Epub Test"/>
+         <meta content="2" name="dtb:depth"/>
+         <meta content="3907" name="dtb:totalPageCount"/>
+         <meta content="7814" name="dtb:maxPageNumber"/>
+         <meta content="Epub Test" name="dtb:generator"/>
      </head>
      <docTitle>
          <text>Selections from &quot;Great Pictures, As Seen and Described by Famous Writers&quot;</text>
      </docTitle>
      <docAuthor>
          <text>Esther Singleton</text>
      </docAuthor>
      <docAuthor>
          <text>Test Author</text>
      </docAuthor>
      <navMap>
-         <navPoint id="ch1" class="h1">
?                  ---------
+         <navPoint class="h1" id="ch1">
?                             +++++++++
              <navLabel>
                  <text>Chapter 1</text>
              </navLabel>
              <content src="content.html#ch_1"/>
-             <navPoint id="ch_1_1" class="h2">
?                                  -----------
+             <navPoint class="h2" id="ch_1_1">
?                      +++++++++++
                  <navLabel>
                      <text>Chapter 1.1</text>
                  </navLabel>
                  <content src="content.html#ch_1_1"/>
              </navPoint>
          </navPoint>
-         <navPoint id="ncx-2" class="h1">
+         <navPoint class="h1" id="ncx-2">
              <navLabel>
                  <text>Chapter 2</text>
              </navLabel>
              <content src="content.html#ch_2"/>
          </navPoint>
      </navMap>
      <pageList>
-         <pageTarget id="p1" value="1" type="normal">
?                            ----------
+         <pageTarget id="p1" type="normal" value="1">
?                                          ++++++++++
              <navLabel dir="ltr">
                  <text>1</text>
              </navLabel>
              <content src="content.html#p1"/>
          </pageTarget>
-         <pageTarget id="p2" value="2" type="normal">
?                            ----------
+         <pageTarget id="p2" type="normal" value="2">
?                                          ++++++++++
              <navLabel>
                  <text>2</text>
              </navLabel>
              <content src="content.html#p2"/>
          </pageTarget>
      </pageList>
      <navList>
          <navLabel>
              <text>List of Illustrations</text>
          </navLabel>
          <navTarget id="ill-1">
              <navLabel>
                  <text>Portratit of Georg Gisze (Holbein)</text>
              </navLabel>
              <content src="content.html#ill1"/>
          </navTarget>
          <navTarget id="ill-2">
              <navLabel>
                  <text>The adoration of the lamb (Van Eyck)</text>
              </navLabel>
              <content src="content.html#ill2"/>
          </navTarget>
      </navList>
  </ncx>

======================================================================
FAIL: test_as_xml_element (test.test_ncx.TestPageList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 454, in test_as_xml_element
    self.assertEqual(page_list.as_xml_element().toxml(),
AssertionError: '<pag[328 chars]rget id="testid" value="Some Value" type="page[218 chars]ist>' != '<pag[328 chars]rget class="some_class" id="testid" playOrder=[218 chars]ist>'
Diff is 2063 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_as_xml_element (test.test_ncx.TestPageTarget)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/exirel-epub-d6db4535273d/test/test_ncx.py", line 432, in test_as_xml_element
    self.assertEqual(page_target.as_xml_element().toxml(),
AssertionError: '<pageTarget id="testid" value="Some Value" type="page[227 chars]get>' != '<pageTarget class="some_class" id="testid" playOrder=[227 chars]get>'
- <pageTarget id="testid" value="Some Value" type="page_type" class="some_class" playOrder="5"><navLabel xml:lang="fr" dir="ltr"><text>Label fr</text></navLabel><navLabel xml:lang="en" dir="ltr"><text>Label en</text></navLabel><content src="Text/Point1.xhtml#fragment5_2"/></pageTarget>
+ <pageTarget class="some_class" id="testid" playOrder="5" type="page_type" value="Some Value"><navLabel xml:lang="fr" dir="ltr"><text>Label fr</text></navLabel><navLabel xml:lang="en" dir="ltr"><text>Label en</text></navLabel><content src="Text/Point1.xhtml#fragment5_2"/></pageTarget>


----------------------------------------------------------------------
Ran 75 tests in 0.256s

FAILED (failures=8)


	
Athos?

Comment 3 Ben Cotton 2019-08-13 17:13:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 19:04:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Miro Hrončok 2019-08-14 22:24:56 UTC
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

To wait for a build to show up in the side tag, do:

    $ koji wait-repo f32-python --build=<nvr>

Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.

An updated mock config is posted at:
http://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.

Thanks. Let us know if you need up to date info, or if you have any questions.



PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:

    on branch f31:
    $ fedpkg build

Comment 6 Miro Hrončok 2019-08-21 16:35:43 UTC
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:

  $ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32


If your built already started in f32-python, after it is finished, please tag it to rawhide with:

  $ koji tag-build f32-pending <nvr>

For example:

  $ koji tag-build f32-pending libreoffice-6.3.0.4-3.fc32

Thanks!

(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)

Comment 7 Miro Hrončok 2019-08-21 17:29:40 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 8 Miro Hrončok 2019-09-10 18:26:06 UTC
This was rebuild with Python 3.8 and I'm closing it in bulk.

In case you wanted to keep this bugzilla open because the fix is not ideal, please reopen. Thanks.


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