Bug 1716473 - mnemosyne fails to build with Python 3.8
Summary: mnemosyne fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mnemosyne
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
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:36 UTC by Miro Hrončok
Modified: 2019-09-10 18:25 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

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

Comment 1 Miro Hrončok 2019-07-29 17:53:44 UTC
This now happens again.

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.zXLwpv
+ umask 022
+ cd /builddir/build/BUILD
+ cd Mnemosyne-2.6.1
+ PYTHONPATH=/builddir/build/BUILDROOT/mnemosyne-2.6.1-2.fc31.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -m nose tests
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/utils.py:218: SyntaxWarning: invalid escape sequence \d
  return tuple(atoi(str) for str in re.split('(\d+)', s))
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/configuration.py:26: SyntaxWarning: invalid escape sequence \d
  """  # Mnemosyne configuration file.
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/template/template.py:88: SyntaxWarning: invalid escape sequence \d
  m = re.match("c[qa]:(\d+):(.+)", section_name)
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/template/template.py:179: SyntaxWarning: invalid escape sequence \(
  mod, extra = re.search("^(.*?)(?:\((.*)\))?$", mod).groups()
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/template/template.py:201: SyntaxWarning: invalid escape sequence \d
  return re.sub(reg%"\d+", "\\1", txt)
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/utils.py:130: SyntaxWarning: invalid escape sequence \w
  reEnts = re.compile("&#?\w+;")
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/utils.py:160: SyntaxWarning: invalid escape sequence \[
  s = re.sub("\[sound:[^]]+\]", "", s)
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/utils.py:161: SyntaxWarning: invalid escape sequence \[
  s = re.sub("\[\[type:[^]]+\]\]", "", s)
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/renderers/anki/lang.py:110: SyntaxWarning: invalid escape sequence \(
  return re.sub("(^.*?)( ?\(.+?\))?$", "\\1", str)
/builddir/build/BUILD/Mnemosyne-2.6.1/mnemosyne/libmnemosyne/file_formats/anki2.py:25: SyntaxWarning: invalid escape sequence \[
  sound_re = re.compile("(?i)(\[sound:(?P<fname>[^]]+)\])")
..................................................../builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_cloze.py:398: SyntaxWarning: invalid escape sequence \m
  fact_data = {"text": """<$>[\mathbf{F}]=[q]([\mathbf{E}]+[\mathbf{v}\times\mathbf{B}]</$>"""}
/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_cloze.py:403: SyntaxWarning: invalid escape sequence \m
  fact_data = {"text": """<$$>[\mathbf{F}]=[q]([\mathbf{E}]+[\mathbf{v}\times\mathbf{B}]</$$>"""}
/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_cloze.py:408: SyntaxWarning: invalid escape sequence \m
  fact_data = {"text": """<latex>[\mathbf{F}]=[q]([\mathbf{E}]+[\mathbf{v}\times\mathbf{B}]</latex>"""}
...........................F............................/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_cuecard_wcu_import.py:51: SyntaxWarning: "is" with a literal. Did you mean "=="?
  assert last_error is ""
.............................F.........../builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_filter.py:66: SyntaxWarning: invalid escape sequence \l
  assert f.run("<latex>a\nb<\latex>", None, None) == "<latex>a\nb<\latex>"
/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_filter.py:66: SyntaxWarning: invalid escape sequence \l
  assert f.run("<latex>a\nb<\latex>", None, None) == "<latex>a\nb<\latex>"
................................................................................................................................................................................./builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_smconv_import.py:51: SyntaxWarning: "is" with a literal. Did you mean "=="?
  assert last_error is ""
................/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_supermemo_7_text_import.py:55: SyntaxWarning: "is" with a literal. Did you mean "=="?
  assert last_error is ""
.........................................
======================================================================
FAIL: test_controller.TestController.test_retain_only_child_tags
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_controller.py", line 206, in test_retain_only_child_tags
    assert c._retain_only_child_tags(["a", "b"]) == ["a", "b"]
AssertionError

======================================================================
FAIL: test_database.TestDatabase.test_tags_for_cards
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/Mnemosyne-2.6.1/tests/test_database.py", line 691, in test_tags_for_cards
    assert tag._id in [2]
AssertionError

----------------------------------------------------------------------
Ran 383 tests in 8.758s

FAILED (failures=2)


See

https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00978973-mnemosyne/
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/mnemosyne/
https://copr.fedorainfracloud.org/coprs/g/python/python3.8

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

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

Comment 4 Miro Hrončok 2019-08-14 22:24:40 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 5 Miro Hrončok 2019-08-21 16:35:23 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 6 Miro Hrončok 2019-08-21 17:29:25 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 7 Miro Hrončok 2019-09-10 18:25:55 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.