Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1698160 - future-0.17.0-2.fc31 FTBFS with Python 3.8: ImportError: cannot import name 'splitattr' from 'urllib.request'
Summary: future-0.17.0-2.fc31 FTBFS with Python 3.8: ImportError: cannot import name '...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: future
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Antonio T. (sagitter)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-04-09 17:41 UTC by Miro Hrončok
Modified: 2019-04-10 12:41 UTC (History)
1 user (show)

Fixed In Version: future-0.17.1-0.1.20190313gitc423752.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-10 12:41:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github PythonCharmers python-future issues 447 0 None closed Python 3.8: ImportError: cannot import name 'splitattr' from 'urllib.request' 2020-02-15 11:09:24 UTC
Github PythonCharmers python-future pull 448 0 None closed Fix urllib.request imports for Python 3.8 compatibility 2020-02-15 11:09:28 UTC

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!


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