Bug 1716500 - python-gfm fails to build with Python 3.8
Summary: python-gfm fails to build with Python 3.8
Keywords:
Status: CLOSED DUPLICATE of bug 1736499
Alias: None
Product: Fedora
Classification: Fedora
Component: python-gfm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Thomas Moschny
QA Contact: Fedora Extras Quality Assurance
URL: https://copr.fedorainfracloud.org/cop...
Whiteboard:
Depends On:
Blocks: F32FTBFS F32FailsToInstall PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-06-03 14:38 UTC by Miro Hrončok
Modified: 2019-11-08 22:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-08 22:08:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-06-03 14:38:24 UTC
See https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-gfm/ 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-10 13:32:07 UTC
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.14Vh2s
+ umask 022
+ cd /builddir/build/BUILD
+ cd py-gfm-0.1.3
+ /usr/bin/python3 setup.py test
gfm (unittest.loader._FailedTest) ... ERROR
mdx_gfm (unittest.loader._FailedTest) ... ERROR
mdx_partial_gfm (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: gfm (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: gfm
Traceback (most recent call last):
  File "/usr/lib64/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/py-gfm-0.1.3/gfm/__init__.py", line 15, in <module>
    from gfm import spaced_link
  File "/builddir/build/BUILD/py-gfm-0.1.3/gfm/spaced_link.py", line 38, in <module>
    BRK = markdown.inlinepatterns.BRK
AttributeError: module 'markdown.inlinepatterns' has no attribute 'BRK'


======================================================================
ERROR: mdx_gfm (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: mdx_gfm
Traceback (most recent call last):
  File "/usr/lib64/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/py-gfm-0.1.3/mdx_gfm/__init__.py", line 27, in <module>
    from mdx_partial_gfm import PartialGithubFlavoredMarkdownExtension
  File "/builddir/build/BUILD/py-gfm-0.1.3/mdx_partial_gfm/__init__.py", line 30, in <module>
    from markdown.extensions.smart_strong import SmartEmphasisExtension
ModuleNotFoundError: No module named 'markdown.extensions.smart_strong'


======================================================================
ERROR: mdx_partial_gfm (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: mdx_partial_gfm
Traceback (most recent call last):
  File "/usr/lib64/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/py-gfm-0.1.3/mdx_partial_gfm/__init__.py", line 30, in <module>
    from markdown.extensions.smart_strong import SmartEmphasisExtension
ModuleNotFoundError: No module named 'markdown.extensions.smart_strong'


----------------------------------------------------------------------
Ran 3 tests in 0.002s

FAILED (errors=3)

Comment 2 Ben Cotton 2019-08-13 17:12:33 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 19:04:10 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:36 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:21 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:23 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 7 Miro Hrončok 2019-09-16 08:34:18 UTC
This issue is blocking the Python 3.8 rebuilds. If this package won't build with 3.8, it won't be installable, along with all its dependent packages, in Fedora 32.
Furthermore, as it fails to install, its dependent packages will fail to install and/or build as well.

Could you please look into this?

Comment 8 Thomas Moschny 2019-11-08 19:06:20 UTC
This is not a Python 3.8 issue, but an incompatibility with Markdown >= 3.0, see https://github.com/Zopieux/py-gfm/issues/13 , "fixed" in py-gfm by pinning the Markdown dependency to <3.0.

I'm not aware of a fix making it compatible with Markdown >= 3.0.

Comment 9 Miro Hrončok 2019-11-08 19:19:49 UTC
If this package won't build with 3.8, it won't be installable. Closing this bug would not make it so. It isn't important whether the problem si actually caused by Python 3.8 or not.

There are only 2 options here:

 - fix/workaround this somehow
 - retire the package

Comment 10 Thomas Moschny 2019-11-08 19:34:21 UTC
Ok, but it doesn't make sense to have two bugs. One of bug 1736499 or bug 1716500 should be closed as duplicate of the other.

Comment 11 Miro Hrončok 2019-11-08 22:08:48 UTC
OK. Note that if that bug remains in NEW the package will be orphaned.

*** This bug has been marked as a duplicate of bug 1736499 ***


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