Bug 1693485

Summary: python-genshi FTBFS with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-genshiAssignee: Felix Schwarz <fschwarz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fschwarz, jeff
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-29 08:13:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
build.log from copr
none
root.log from copr
none
Full log from Copr (Python 3.8.0a4) none

Description Miro Hrončok 2019-03-28 00:14:41 UTC
Created attachment 1548753 [details]
build.log from copr

There are test failures when building python-genshi-0.7.1-1.fc31 on Python 3.8.

Mostly caused by:

AttributeError: module '_ast' has no attribute 'Str'


Full log attached.

Comment 1 Miro Hrončok 2019-03-28 00:15:26 UTC
Created attachment 1548754 [details]
root.log from copr

Comment 2 Felix Schwarz 2019-03-28 07:40:24 UTC
This is an upstream bug. Let's see if we can get a fixed version from upstream.

Comment 3 Felix Schwarz 2019-04-29 07:54:24 UTC
Miro provided a patch upstream and a new upstream release 0.7.2 was published. I'll push that version to fedora in a minute.

Comment 4 Miro Hrončok 2019-05-10 12:22:35 UTC
Created attachment 1566652 [details]
Full log from Copr (Python 3.8.0a4)

I'm sorry but a4 broke this again :(

Lot of similar to those:

======================================================================
ERROR: test_def_some_defaults (genshi.template.tests.eval.SuiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-genshi-0.7.2-1.fc31/build/lib/genshi/template/tests/eval.py", line 545, in test_def_some_defaults
    suite = Suite("""
  File "/builddir/build/BUILD/python3-python-genshi-0.7.2-1.fc31/build/lib/genshi/template/eval.py", line 93, in __init__
    self.code = _compile(node, self.source, mode=self.mode,
  File "/builddir/build/BUILD/python3-python-genshi-0.7.2-1.fc31/build/lib/genshi/template/eval.py", line 470, in _compile
    return build_code_chunk(code, filename, name, lineno)
  File "/builddir/build/BUILD/python3-python-genshi-0.7.2-1.fc31/build/lib/genshi/compat.py", line 94, in build_code_chunk
    return CodeType(0, code.co_nlocals, code.co_kwonlyargcount,
TypeError: an integer is required (got type bytes)

Will report upstream.

Comment 5 Miro Hrončok 2019-05-10 12:27:22 UTC
https://github.com/edgewall/genshi/issues/18