Bug 1698160

Summary: future-0.17.0-2.fc31 FTBFS with Python 3.8: ImportError: cannot import name 'splitattr' from 'urllib.request'
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: futureAssignee: Antonio T. (sagitter) <anto.trande>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: future-0.17.1-0.1.20190313gitc423752.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-10 12:41:37 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    

Description Miro Hrončok 2019-04-09 17:41:46 UTC
The %check of future fails on Python 3.8:

_____________ ERROR collecting tests/test_future/test_urllibnet.py _____________
ImportError while importing test module '/builddir/build/BUILD/future-0.17.0/python3/tests/test_future/test_urllibnet.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_future/test_urllibnet.py:13: in <module>
    import future.moves.urllib.request as urllib_request
build/lib/future/moves/urllib/request.py:9: in <module>
    from urllib.request import (getproxies,
E   ImportError: cannot import name 'splitattr' from 'urllib.request' (/usr/lib64/python3.8/urllib/request.py)


Full log attached.

This blocks the Python 3.8 bootstrap towards pyglet -> pybtex -> notbook.

https://bugs.python.org/issue35891
https://bugs.python.org/issue27485

Comment 3 Antonio T. (sagitter) 2019-04-09 18:13:45 UTC
Scratch build against Python38 are possible?

Comment 4 Miro Hrončok 2019-04-09 18:22:43 UTC
Copr builds are possible.

Fork https://copr.fedorainfracloud.org/coprs/g/python/python3.8/ (bottom right) and add your build.

Comment 5 Antonio T. (sagitter) 2019-04-10 12:18:58 UTC
Added your patch, issue fixed on rawhide with the release 0.17.1

Comment 6 Miro Hrončok 2019-04-10 12:41:37 UTC
Confirmed. Thanks!