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 1718390 - python3-uvloop fails to import with Python 3.8
Summary: python3-uvloop fails to import with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-uvloop
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Igor Raits
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-06-07 15:54 UTC by Petr Viktorin
Modified: 2019-07-10 15:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-10 15:13:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github MagicStack uvloop issues 251 0 None None None 2019-06-07 15:54:28 UTC

Description Petr Viktorin 2019-06-07 15:54:28 UTC
When built for Python 3.8.0b1, uvloop cannot be imported:

>>> import uvloop
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.8/site-packages/uvloop/__init__.py", line 7, in <module>
    from .loop import Loop as __BaseLoop  # NOQA
  File "uvloop/includes/stdlib.pxi", line 114, in init uvloop.loop
AttributeError: module 'sys' has no attribute 'set_coroutine_wrapper'

The function "sys.set_coroutine_wrapper", which was added provisionally to Python 3.5, and deprecated in Python 3.7, is removed in Python 3.8.

See upstream issue: https://github.com/MagicStack/uvloop/issues/251


This makes "python-sanic" (which imports uvloop during tests) fail to build for Python 3.8.

For its build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00928223-python-sanic/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Miro Hrončok 2019-06-10 11:16:13 UTC
This makes "python-ZEO" (which imports uvloop during tests) fail to build for Python 3.8.


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