Bug 1596291

Summary: accerciser fails to build against Python 3.7
Product: [Fedora] Fedora Reporter: Marcel Plch <mplch>
Component: accerciserAssignee: Kalev Lember <klember>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: klember, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: accerciser-3.22.0-7.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 21:06:46 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: 1596269    
Bug Blocks: 1565020    

Description Marcel Plch 2018-06-28 14:24:22 UTC
Description of problem:
When built against new python version, this package fails to build.
This occurs due to 'async' being used as an argument to function. Async is a keyword in 3.7.
Note that the function, where this argument is used, is imported from 'pyatspi' module, so it's package has to be fixed first.
Simple patch renaming async to asynch should be a sufficient solution.


Version-Release number of selected component (if applicable):
3.22.0-7

How reproducible:
always

Steps to Reproduce:
1. fedpkg clone accerciser
2. cd accerciser
3. fedpkg --release master  build --target=f29-python  --nowait  --srpm --scratch

Actual results:
fails to build

Expected results:
build passes correctly

Comment 1 Marcel Plch 2018-06-28 14:47:57 UTC
Note to maintainer: Please, rebuild with --target=f29-python in a side tag after the fix.

Comment 2 Miro Hrončok 2018-06-28 16:13:16 UTC
Should be fixed by changing:

    pyatspi.Registry.start(async=True, gil=False)


into:

    pyatspi.Registry.start(**{'async': True, 'gil': False})

This removes the syntax error and assuming pyatspi get's fixed in backwards compatible fashion should work.

Comment 5 Kalev Lember 2018-06-28 21:06:46 UTC
Thanks! I've merged the PR and kicked off a build.